|
Post by charlyr on Apr 21, 2020 4:25:26 GMT
Is the aab instead of apk package format, now supported on version 7.1.4?
Thanks in advance
|
|
|
Post by n0men on Apr 21, 2020 14:35:36 GMT
At the moment, we do not support this feature. But support in the near future.
|
|
|
Post by fnllc on Sept 29, 2021 15:18:20 GMT
|
|
|
Post by Alex Epifanov on Sept 29, 2021 15:19:52 GMT
We'll add support for bundles shortly. It will be available in 7.3 and further.
|
|
|
Post by fnllc on Oct 20, 2021 10:57:06 GMT
The latest stable versions seem to have support for it now. I added:
android: build_bundle: 1
to my build.yml. However, I'm getting the following error with Rhomobile 7.4.1
[INFO] Generate initial R.java at /Users/username/Documents/MyApps/MyApp/bin/tmp/gen/com/rhomobile/rhodes rake aborted! NoMethodError: undefined method `filter' for #<Array:0x00007f89502beb58> /Users/username/GitHub/rhodes/platform/android/build/aab_builder.rb:134:in `compile_res_dir_to_flat' /Users/username/GitHub/rhodes/platform/android/build/aab_builder.rb:153:in `build_resources' /Users/username/GitHub/rhodes/platform/android/build/android.rake:2458:in `block (3 levels) in <top (required)>' /Users/username/GitHub/rhodes/Rakefile:133:in `execute' /Users/username/GitHub/rhodes/Rakefile:4610:in `invoke' /Users/username/.rvm/gems/ruby-2.3.8/gems/rake-12.3.3/exe/rake:27:in `<top (required)>' /Users/username/.rvm/gems/ruby-2.3.8/bin/ruby_executable_hooks:24:in `eval' /Users/username/.rvm/gems/ruby-2.3.8/bin/ruby_executable_hooks:24:in `<main>' Tasks: TOP => device:android:production => package:android => build:android:all => build:android:rhodes => build:android:gensourcesjava => build:android:genrjava (See full trace by running task with --trace)
|
|
|
Post by Alex Epifanov on Oct 20, 2021 15:57:07 GMT
fnllc Yes, this is a known issue. You can get latest 7.3 available, it has AAB support already. Alternatively you can upgrade your host Ruby to 2.6+ and use 7.4
|
|
|
Post by fnllc on Nov 29, 2021 16:50:08 GMT
I'm getting the following error using the lastest 7-4-Stable branch and ruby 2.6.6. Any ideas what may be wrong?
.... [INFO] Generate initial R.java at /Users/username/Documents/MyApps/MyApp/bin/tmp/gen/com/rhomobile/rhodes [INFO] $$$ RUN COMMAND = /Users/username/GitHub/rhodes/res/build-tools/aapt2/osx/aapt2 compile /Users/username/Documents/MyApps/MyApp/bin/tmp/res/mipmap-mdpi/icon.png -o /Users/username/Documents/MyApps/MyApp/bin/tmp/.bundle/flats/a68c6976-f3da-4ad3-ad86-470f58acb2a7 rake aborted! Errno::EACCES: Permission denied - /Users/username/GitHub/rhodes/res/build-tools/aapt2/osx/aapt2 /Users/nhinze/GitHub/rhodes/lib/build/jake.rb:551:in `popen' /Users/nhinze/GitHub/rhodes/lib/build/jake.rb:551:in `run2' /Users/nhinze/GitHub/rhodes/lib/build/jake.rb:579:in `run' /Users/nhinze/GitHub/rhodes/platform/android/build/aab_builder.rb:137:in `block in compile_res_dir_to_flat' /Users/nhinze/GitHub/rhodes/platform/android/build/aab_builder.rb:136:in `each' /Users/nhinze/GitHub/rhodes/platform/android/build/aab_builder.rb:136:in `compile_res_dir_to_flat' /Users/nhinze/GitHub/rhodes/platform/android/build/aab_builder.rb:153:in `build_resources' /Users/nhinze/GitHub/rhodes/platform/android/build/android.rake:2458:in `block (3 levels) in <top (required)>' /Users/nhinze/GitHub/rhodes/Rakefile:133:in `execute' /Users/nhinze/GitHub/rhodes/Rakefile:4610:in `invoke' Tasks: TOP => device:android:production => package:android => build:android:all => build:android:rhodes => build:android:gensourcesjava => build:android:genrjava (See full trace by running task with --trace)
|
|
|
Post by Alex Epifanov on Nov 29, 2021 22:45:43 GMT
fnllc my idea is that you might not have +x permission for aapt2 executable, as log suggests. can you check it?
|
|
|
Post by fnllc on Nov 30, 2021 18:30:47 GMT
These are the permissions:
iMac:osx username$ ls -l total 9952 -rw-r--r-- 1 username staff 5094216 Oct 20 06:41 aapt2
|
|
|
Post by Alex Epifanov on Nov 30, 2021 18:36:10 GMT
We have found the issue. It needs to have +x. You can set it manually or update from master, where it was fixed. The update will come in further versions.
|
|
|
Post by fnllc on Nov 30, 2021 19:16:10 GMT
I was able to generate the app bundle. However, the developer console reports the following error after upload:
Your Android App Bundle uses an upload certificate with a key that is too weak.
|
|
|
Post by Alex Epifanov on Nov 30, 2021 19:23:58 GMT
Check build.yml for the prod key used. You may need to generate and use a new one. Also check build output to see which key is actually used for bundle signature.
|
|
|
Post by fnllc on Nov 30, 2021 20:56:51 GMT
The build is using the keys in /Users/username/.rhomobile . I deleted that directory, but the build fails to complete and does not automatically generate a new set.
The docs (http://docs.tau-platform.com/en/edge/guide/build_android#building-an-android-production-version) say it would automatically generate a new set. How should I proceed?
|
|
|
Post by Alex Epifanov on Dec 1, 2021 14:41:27 GMT
What error do you get? I ran a test build and have generated certificate successfully, here is my config:
android: production:
certificate: ./prodcert
password: "123456"
alias: "rhoprod"
then I run rake device:android:production, it asks for keystore details and generates prodcert in the app folder.
Check your build output with --trace.
|
|
|
Post by fnllc on Dec 1, 2021 19:35:33 GMT
This is the error:
[INFO] Signing AAB file [INFO] $$$ RUN COMMAND = /Library/Java/JavaVirtualMachines/jdk1.8.0_291.jdk/Contents/Home/bin/jarsigner -sigalg SHA256withRSA -verbose -keystore /Users/username/Documents/MyApps/MyApp/prodcert -storepass 123456 -signedjar "/Users/username/Documents/MyApps/MyApp/bin/target/android/MyApp-bundle-signed.aab" /Users/username/Documents/MyApps/MyApp/bin/tmp/.bundle/bundle.aab rhoprod [ERROR] Error running jarsigner
build.yml:
android: production: certificate: "./prodcert" password: "123456" alias: "rhoprod"
|
|