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

14th
Aug 2016
Perry
@pfn
Aug 14 2016 14:40
that's not how you keep scala signature
-keep class scala.reflect.ScalaSignature
jhegedus42
@jhegedus42
Aug 14 2016 14:58
thanks !
Perry
@pfn
Aug 14 2016 14:59
you don't have to spam 3 places for an answer...
jhegedus42
@jhegedus42
Aug 14 2016 15:00
why is it spam ?
its relevant
Perry
@pfn
Aug 14 2016 15:01
shotgun approach is irritating
especially for people that watch all 3 forums
jhegedus42
@jhegedus42
Aug 14 2016 15:01
yeah
but not everybody watches all 3
Perry
@pfn
Aug 14 2016 15:02
but you might turn off the person who is watching all 3 from helping
jhegedus42
@jhegedus42
Aug 14 2016 15:02
and i understand that this testing issue is not very interesting to you
so i thought that i try to find someone who might be interested in this
Perry
@pfn
Aug 14 2016 15:03
the problem you posted wasn't a testing issue
it was purely a proguard issue
jhegedus42
@jhegedus42
Aug 14 2016 15:04
aham
ok, right
i see
Perry
@pfn
Aug 14 2016 15:30
and I never said I won't help, but basically not interested in solving it without you pointing out problems you're encountering
I told you about tools to help in that regard, dexdump and javap
jhegedus42
@jhegedus42
Aug 14 2016 15:31
ahh
i understand
i must be p
aranoid a little bit
Perry
@pfn
Aug 14 2016 15:33
and yeah, don't fixate on tests
you'll get far less work done
jhegedus42
@jhegedus42
Aug 14 2016 15:34
yeah, that's one of my other mindset problems - i can get hooked easyú
easily on one subject
Perry
@pfn
Aug 14 2016 15:34
especially since android studio 2.2 has a test recorder for espresso, writing your own tests is mostly irrelevant
jhegedus42
@jhegedus42
Aug 14 2016 15:35
hmm
but for db stuff, testing is useful, or not?
slick
thats pretty side effectful place
Perry
@pfn
Aug 14 2016 15:37
I don't expect slick to work on android
jhegedus42
@jhegedus42
Aug 14 2016 15:37
ohh
Perry
@pfn
Aug 14 2016 15:37
and you can write slick jvm tests
jhegedus42
@jhegedus42
Aug 14 2016 15:37
true
has anyone tried slick on android ?
i think slick 2 works
this is part of the reason why i wanna test it
coz its pretty untested yet on android
will reflection be an issue?
Perry
@pfn
Aug 14 2016 15:39
reflection is always an issue
jhegedus42
@jhegedus42
Aug 14 2016 15:39
hmmm
Perry
@pfn
Aug 14 2016 15:40
that's what makes proguard a pain in a
jhegedus42
@jhegedus42
Aug 14 2016 15:40
it seems so
Perry
@pfn
Aug 14 2016 15:40
the ass
jhegedus42
@jhegedus42
Aug 14 2016 15:40
crap
Perry
@pfn
Aug 14 2016 15:40
use libraries that don't use reflection
scala is excellent in that regard
jhegedus42
@jhegedus42
Aug 14 2016 15:40
hmm
Perry
@pfn
Aug 14 2016 15:41
there is rarely a need for reflection
jhegedus42
@jhegedus42
Aug 14 2016 15:41
what is good for persistence?
Perry
@pfn
Aug 14 2016 15:42
I always write sql by hand
jhegedus42
@jhegedus42
Aug 14 2016 15:42
i see
hardcore
Perry
@pfn
Aug 14 2016 15:44
not really
and database on android is relatively trivial
you shouldn't be writing complex relational applications on device
jhegedus42
@jhegedus42
Aug 14 2016 15:44
yeah
Perry
@pfn
Aug 14 2016 15:44
it doesn't really make sense
jhegedus42
@jhegedus42
Aug 14 2016 15:44
true
keep it simple
Perry
@pfn
Aug 14 2016 15:47
you could, but sqlite is hardly suitable
jhegedus42
@jhegedus42
Aug 14 2016 15:48
what is the reason you think slick will not work on android ?
reflection?
macros?
Perry
@pfn
Aug 14 2016 15:49
macros are no problem for android
jhegedus42
@jhegedus42
Aug 14 2016 15:49
ok
Perry
@pfn
Aug 14 2016 15:50
mostly the lack of a quality jdbc driver
there's sqldroid, but I have no idea how well it works
jhegedus42
@jhegedus42
Aug 14 2016 15:50
hmmm
i see
interesting
that makes sense
Perry
@pfn
Aug 14 2016 15:59
also, slick doesn't follow pure functional concepts
stuff that is lighter or more pure may behave better
@fishmacs has tried quill
then there's a lot of talk about doobie
jhegedus42
@jhegedus42
Aug 14 2016 16:00
ok, thanks i have a look
yeah this looks pretty nice indeed https://github.com/getquill/quill
doobie also needs jdbc - so it seems at least
Perry
@pfn
Aug 14 2016 16:05
yeah, any of those would need to use sqldroid
no one has written any scala abstractions directly for android
jhegedus42
@jhegedus42
Aug 14 2016 16:05
but quill seems to be good
or even quill needs jdbc ?
Perry
@pfn
Aug 14 2016 16:07
everything does, unless it's written explicitly for android
jhegedus42
@jhegedus42
Aug 14 2016 16:08
i see
Perry
@pfn
Aug 14 2016 16:08
and as far as I know, nothing in Scala for db abstraction has been written for android
jhegedus42
@jhegedus42
Aug 14 2016 16:08
ok
and the sqlite jdbc driver is crap....
Perry
@pfn
Aug 14 2016 16:09
dunno its quality
jhegedus42
@jhegedus42
Aug 14 2016 16:14
so what is ormlite using ?
Perry
@pfn
Aug 14 2016 16:16
android api directly
anything written specifically for android does not use jdbc
jhegedus42
@jhegedus42
Aug 14 2016 16:16
hmm ok
jhegedus42
@jhegedus42
Aug 14 2016 16:34
Timm Schäuble
@tymm
Aug 14 2016 18:51
Is there a trick to activate optimization for proguard? proguardOptions -= "-dontoptimize" seems to not do the trick (i'm trying to remove logging with proguard).
Niklas Klein
@Taig
Aug 14 2016 19:15
Try proguardConfig -= "-dontoptimize"
Timm Schäuble
@tymm
Aug 14 2016 19:28
That worked. Thanks.