These are chat archives for scala-android/sbt-android

28th
Jul 2016
Perry
@pfn
Jul 28 2016 00:25
@seroperson I see why it's occurring... yeah, I don't have a good solution for it yet
but the fix should come from sbt-android
Daniil Sivak
@seroperson
Jul 28 2016 00:53
oh. I understood it. I'll push 'fallback' args class choosing tomorrow.
Perry
@pfn
Jul 28 2016 01:31
thanks, I'll look into a way to solve the problem of the transitive dependency going into the packaging
Wei Zhao
@fishmacs
Jul 28 2016 04:30
scala and kotlin, which has better future in android dev?
Rafal Wachol
@charafau
Jul 28 2016 04:46
if you wont spread the word about scala, probablu kotlin ;)
scala is more mature and functional
it's all about developers (or about marketing in kotlin case)
Wei Zhao
@fishmacs
Jul 28 2016 05:00
feel scala’s tool chain is more difficult, I tried very hard to setup my dev env: Intellij/sbt/sbt-android, spent many time. still stumble on problems there and here...
don’t know about kotlin's
sometimes apparently my fault, sometimes, just don't understand
Perry
@pfn
Jul 28 2016 06:13
scala toolchain is a little more difficult
the problem you ran into with IDE import was completely my fault, though :(
@fishmacs
if you want a powerful language, use scala; if you just want a better java, kotlin is suitable
oddly, @seroperson uses kotlin and sbt-android together
there's lots that kotlin can't do that scala brings to the table, e.g. the TypedViewHolder stuff that was recently added to sbt-android, not really possible with kotlin; it gets halfway there with the kotlin-android-extensions (and even then, it's not really safe)
Wei Zhao
@fishmacs
Jul 28 2016 06:41
@pfn You’ve done great job, thanks!
IDE importing problem is not a serious one :smile:
Perry
@pfn
Jul 28 2016 06:43
@jastice is working on merging my PRs to sbt-structure, that should help immensely
just squashed some old ugly behavior in the plugin \o/
Wei Zhao
@fishmacs
Jul 28 2016 06:47
These several years I always tried the tools when I have time, but every time not very successfully, except now :smile:
Perry
@pfn
Jul 28 2016 06:49
the tooling situation for kotlin is better as intellij owns both the IDE and the language, they have an incentive to make it all work well
(and the resources)
Wei Zhao
@fishmacs
Jul 28 2016 06:53
but I still stand on scala side
Perry
@pfn
Jul 28 2016 06:58
indeed, kotlin doesn't offer the features I want when developing
Wei Zhao
@fishmacs
Jul 28 2016 07:00
Yeah, the whole scala community is amazing
Perry
@pfn
Jul 28 2016 07:00
the libraries people can come up with for scala are pretty amazing
Rafal Wachol
@charafau
Jul 28 2016 07:00
but if you dont like intellij you can always use ensime ;)
Perry
@pfn
Jul 28 2016 07:01
yes, ensime works for doing android development, but you won't get any help with xml completions
Rafal Wachol
@charafau
Jul 28 2016 07:01
that's true
Perry
@pfn
Jul 28 2016 07:01
[success] Total time: 890 s, completed Jul 27, 2016 11:57:03 PM
yay, tests pass
xml completions aren't necessarily vital if you use any of the layout libs (macroid, scaloid, iota)
Wei Zhao
@fishmacs
Jul 28 2016 07:06
@pfn protify is great!
but I’m using scaloid, there always be some NoSuchMethodErrors in runtime,some scaloid methods can not be found. I’ve to comment protifySettings in build.sbt and android:run, then everything ok.
@charafau I tried ensime many times…only success this time
Not really, it also seems ok, some old versions, years ago
As IDE, intellij is better
Perry
@pfn
Jul 28 2016 07:10
@fishmacs you should be able to clean and then android:run -- but I don't know why that would occur... would need to see the overall classes that get packaged up
Wei Zhao
@fishmacs
Jul 28 2016 07:14
@pfn if I just clean and android:run, not disable protify in build.sbt, seems nothing will change no matter how I changed source code :worried:
Rafal Wachol
@charafau
Jul 28 2016 07:14
@fishmacs some people report that ensime's completion works better than intellij. Of course it needs to catch up
Wei Zhao
@fishmacs
Jul 28 2016 07:20
@charafau for example, I used robotest, ensime can’t recognize RobolectricSuite
I think robotest inject RobolectricSuite to scalatest dynamically, so ...
Rafal Wachol
@charafau
Jul 28 2016 07:25
I dont see a point in using roboelectric
unless you have login in activities
which is... bad
Wei Zhao
@fishmacs
Jul 28 2016 07:26
Why? if not robolectric, what to use?
Rafal Wachol
@charafau
Jul 28 2016 07:28
nothing
why would you like to test view ?
make your views as dummy as possible
and put all logic in preseter and model
and add test to them (i.e. with scalatest)
for integration... use espresso
android studio 2.2 preview has nice test recorder
Wei Zhao
@fishmacs
Jul 28 2016 07:31
I don’t know much, separate functional logic and view sounds a good idea
but I’m afraid there would be sth out of consider
I’m using intellij, not get the tool chain successully through AS
Rafal Wachol
@charafau
Jul 28 2016 07:34
check MVP design pattern
which is getting a lot of attention lately
Wei Zhao
@fishmacs
Jul 28 2016 07:37
@charafau thanks for the clue, I’ll do some reading...
Perry
@pfn
Jul 28 2016 07:44
@fishmacs hmm, what you describe should be impossible
Wei Zhao
@fishmacs
Jul 28 2016 07:49
@pfn Oh, I encountered this situation 2 times, this morning and last night.
I’m still not very aware what happened, maybe more experiments
11.jpg
interesting, ensime marked implicit converting lines with green dots :smile:
Daniil Sivak
@seroperson
Jul 28 2016 13:35
guys, how to make this line excluded from config?
in neat way. As I understand, I can just only override proguardConfig task, but then I need to pull proguard.txt from aars by myself.
Daniil Sivak
@seroperson
Jul 28 2016 13:42
I'm talking about release build if it matters
Niklas Klein
@Taig
Jul 28 2016 14:07
@seroperson proguardConfig -= "-dontobfuscate"
That's pretty neat, isn't it? ;p
In a more verbose way you could probabaly also express it as proguardConfig := proguardConfig.value.filterNot( _ == "-myKey" )
Daniil Sivak
@seroperson
Jul 28 2016 14:20
Don't know why I didn't think about it. Thanks.
Perry
@pfn
Jul 28 2016 15:45
@seroperson, can you squash your commits for your pr?
Daniil Sivak
@seroperson
Jul 28 2016 16:00
@pfn done
Perry
@pfn
Jul 28 2016 16:09
@seroperson thanks, I'll merge and release a new version soon
@seroperson I will release sbt-android 1.6.10 on monday probably
Perry
@pfn
Jul 28 2016 16:21
hmm, I should add an "androidTest" configuration for instrumentation tests... (so library dependencies for instrumentation tests can be added there directly...)