I would love to run the SBT build from within IntelliJ but the targets 
don't show up.  I could use command line, but shouldn't I be able to just 
run one of the commands from within the IDE?

On Thursday, October 2, 2014 4:06:32 PM UTC-5, Daniel Skinner wrote:
>
> by this, Perry may mean install the sbt plugin in intellij and follow the 
> instructions provided by the plugin for edited the Run task to call into 
> sbt. In my past experience this works well as long as you're not running 
> sbt in the terminal pane as well.
>
> Also, as an alternative, you may want to try the android gradle scala 
> plugin. This integrates well with android studio and is fairly simple to 
> setup if you're already familiar with gradle, 
> https://github.com/saturday06/gradle-android-scala-plugin
>
> I used this on a recent client project with success but I will say that 
> builds takes 3x as long which is a big ugh. Compared to normal android 
> development with proguard, it doesn't take any longer but the biggest 
> success of the sbt plugin here is how quick you can compile, package, and 
> deploy to a test device :)
>
> On Thu, Oct 2, 2014 at 4:03 PM, Perry Nguyen <[email protected] 
> <javascript:>> wrote:
>
>> Do not build with intellij, use the sbt plugin and build with sbt.
>>
>> On Thu, Oct 2, 2014 at 1:59 PM, Daniel Skinner <[email protected] 
>> <javascript:>> wrote:
>>
>>> that is a little confusing, maybe an issue with the intellij run 
>>> configuration.
>>>
>>> Proguard is going to strip code it determines as unused before it 
>>> compiles the jvm bytecode to dalvik bytecode and packages your apk. For 
>>> various cases, you need to tell proguard to leave certain classes alone or 
>>> that certain classes missing from the final output are not important.
>>>
>>> But, it sounds like you can compile and run the program from terminal 
>>> and not from intellij. I'm afraid I can't offer any more advice here since 
>>> I actually just run sbt from the terminal pane in intellij.
>>>
>>> On Thu, Oct 2, 2014 at 3:56 PM, Benny Thompson <[email protected] 
>>> <javascript:>> wrote:
>>>
>>>> I am rather new to proguard, but that said, I never made any tweaks to 
>>>> the proguard rules that were built into the projects I ran.  I also tried 
>>>> using the android:run target and it worked as well via command line (and 
>>>> it 
>>>> actually ran in my emulator).
>>>>
>>>> Confused :/
>>>>
>>>> On Thursday, October 2, 2014 3:38:31 PM UTC-5, Daniel Skinner wrote:
>>>>>
>>>>> I'm unsure about the specific err via image you posted but sbt:compile 
>>>>> isn't going to run proguard, it's only going to generate the bytecode.
>>>>>
>>>>> You mentioned not being unfamiliar with scala or android, but didn't 
>>>>> mention anything about proguard :D Did you account for any 
>>>>> warnings/errors 
>>>>> in proguard output in your custom proguard rules?
>>>>>
>>>>> On Thu, Oct 2, 2014 at 3:31 PM, Benny Thompson <[email protected]> 
>>>>> wrote:
>>>>>
>>>>>> I am a not new to Scala and Android development, but I am new to 
>>>>>> Scala *on* Android.  I have tried creating a project from scratch 
>>>>>> using Scaloid and compiling in IntelliJ which led to a ton of proguard 
>>>>>> warnings, then a failure because of said warnings.  I then tried 
>>>>>> using android-sdk-plugin and used "gen-android" and, without 
>>>>>> modification, 
>>>>>> tried to compile in IntelliJ with the same results.  The funny thing is 
>>>>>> that if I run "sbt compile" from the project root in a terminal, all is 
>>>>>> well.  Is there something I need to change with my proguard 
>>>>>> configuration 
>>>>>> that I'm not seeing in any documentation for IDE integration?
>>>>>>
>>>>>>
>>>>>> <https://lh6.googleusercontent.com/-XSYzamtiyVc/VC22JMSQlqI/AAAAAAAAAFg/iMVM1OGiqD4/s1600/Screen%2BShot%2B2014-10-02%2Bat%2B3.31.11%2BPM.png>
>>>>>>
>>>>>>
>>>>>>  -- 
>>>>>> You received this message because you are subscribed to the Google 
>>>>>> Groups "scala-on-android" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it, 
>>>>>> send an email to [email protected].
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>>
>>>>>  -- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "scala-on-android" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to [email protected] <javascript:>.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>  -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "scala-on-android" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected] <javascript:>.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "scala-on-android" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"scala-on-android" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to