Clojurians
#cljsrn
<
2016-02-26
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

andrewboltachev18:02:28

Hi. I have an app (initially created with re-natal), which I'v built with lein prod-build and then added signed key (all according to RN's instructions) and ran cd android && ./gradlew assembleRelease. Then installed it with ./adb install <the-path>/app-release.apk My app is installed now, but when I run, I first see white screen, then black and then "App was stopped". Here's ./adb logcat http://dpaste.com/3Z1JCGC I see a lot of messages about React. How can I make it work?

drapanjanas20:02:53

@andrewboltachev: did you try running it after lein prod-build on a device or simulator? Did it work?

andrewboltachev20:02:37

@drapanjanas: 1) In Genymotion it's fine 2) There's problem running on device: I have only GT-I8262 with Android 4.1.2, which's USB socket is almost broken (unstable). I'm using tcpip (WiFi) to connect the device, but adb reverse as I understand supports Android >= 5.0, and it doesn't seem to work. When I install debug ver., it opens and displays red error screen with "Reload JS" button at the bottom

andrewboltachev21:02:39

@drapanjanas: Ah sorry, (1) and (2) not after lein prod-build

drapanjanas21:02:34

Then probably there is something wrong happens when the app is compiled into index.android.js with :optimizations :simple what interface are you using? om.next?

drapanjanas21:02:22

um, so after lein prod-build it did not work? or you have not tried?

andrewboltachev21:02:10

Skipping device '192.168.150.8:5555' for 'app:debug': Unknown API Level

andrewboltachev21:02:25

well, that's on 4.1.2 phone

drapanjanas21:02:59

Hm, dunno what that is, I have tried some time ago doing the signed apk (of generated hello world reagent app) and it worked on my Galaxy S5 without any problems

andrewboltachev21:02:03

Genymotion said me `An error occured while deploying the file. INSTALL_FAILED_UPDATE_INCOMPATIBLE`

andrewboltachev21:02:32

when just dropping APK onto it

drapanjanas21:02:08

but, I’ve tried only the reagent version, not Om Next

andrewboltachev21:02:24

uhm, interesting

andrewboltachev21:02:32

WARNING - name React is not defined

drapanjanas21:02:15

warning only about om externs, that should not cause such problems, I think

andrewboltachev21:02:32

also we might go for alpha31 or what's the last version now

drapanjanas21:02:33

Well, I can only suggest experimenting, try generating just ReactNative app with react-native init and check if that works on your device… then try unmodified re-natal app and so on...

andrewboltachev21:02:23

react-native Hello world app works well

andrewboltachev21:02:08

btw, shouldn't we add to re-natal a way to attach signing quickly?

andrewboltachev21:02:48

i.e. to modify the android/app/build.gradle file

drapanjanas21:02:26

yep could be a good thing to add such command

drapanjanas21:02:36

can you try generating new re-natal app and make same thing to that sample app?

drapanjanas21:02:01

if that does not work feel free to create an issue in github

andrewboltachev22:02:48

and that's 4.1.2, which certainly makes me happy.

andrewboltachev22:02:02

so for my target app, I'll try to go all the way down and figure out what causes the crash

andrewboltachev22:02:45

'cause that might tell something