Fork me on GitHub
#cljsrn
<
2016-08-02
>
danielbraun10:08:12

having trouble with building a no-figwheel build with re-natal

danielbraun10:08:34

seems like it's still trying to connect to the packager server

danielbraun10:08:45

working on react-native master branch

ronb11:08:02

what does it say when u run lein prod-build?

danielbraun11:08:12

i'm guessing figwheel-bridge.js needs a fix

danielbraun11:08:32

Could not get BatchedBridge, make sure yourbundle is packaged correctly

danielbraun11:08:52

prod-build works, i get the message when running the app

danielbraun11:08:37

yeah - it works with the packager running

ronb11:08:07

hmm not sure whats the problem, but it could be an incorrect line in ios/ProjectName/AppDelegate.m

ronb11:08:22

jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];

danielbraun11:08:28

but I'll check

ronb11:08:30

this line should be uncommented i think

danielbraun12:08:48

i don't the the release apk bundles my code

danielbraun12:08:52

still debugging it

savelichalex12:08:12

and what are you doing for this?

danielbraun12:08:38

lein prod-build

danielbraun12:08:46

cd android && ./gradlew assembleRelease

danielbraun12:08:05

From adb log:

danielbraun12:08:12

Unable to load script from assets: index.android.bundle

danielbraun12:08:18

java.lang.RuntimeException: Could not get BatchedBridge, make sure your bundle is packaged correctly

savelichalex12:08:06

Smth went wrong

savelichalex12:08:29

because code after prod-build doesn’t need a figwheel-bridge

danielbraun12:08:35

I think index.android.bundle is not being generated

danielbraun12:08:54

I'm in android/app/build/intermediates/assets/release

danielbraun12:08:06

and bundle ain't there

savelichalex12:08:19

for me this folder is empty too

savelichalex12:08:29

but I have apk

savelichalex12:08:29

do you have any error in assembleRelease step

danielbraun12:08:53

well, when it's running ":app:bundleReleaseJsAndAssets", which is the task that creates the bundle,

danielbraun12:08:12

Usage: cli [options] [command] Commands: start [options] starts the webserver ........

danielbraun12:08:23

it's an RN issue anyway, not re-natal/cljs

danielbraun12:08:33

I'll go ask at their channel. thanks for the help

pesterhazy17:08:43

@dabra, wait, --reset-cache true is no longer supported? why???

pesterhazy17:08:05

the RN packager keeps changing, for no apparent reason

pesterhazy17:08:23

has anyone found a way to fix https://github.com/JulianBirch/cljs-ajax/issues/141 -- incompatibility between cljs-ajax and RN on android?

coyotespike19:08:41

@pvinis: please look here https://github.com/vikeri/re-navigate and here https://github.com/weltan/navigation for examples of navigation with re-frame.

coyotespike19:08:02

I found them both quite helpful, with the second building on the first for a more substantive example.

coyotespike19:08:24

Also, we may want to start collecting examples of turning React Native components into ClojureScript. The reagent cookbook was extremely helpful for me, and a similar project, perhaps simpler in the beginning, for cljsrn would be helpful too.

pesterhazy20:08:19

Couldn't agree more

pesterhazy20:08:28

A cljsrn cookbook?