-
-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The app referencing is getting huge, Android and iOS #1542
Comments
@Plamen5kov What do you think about letting the app.gradle to add defaultConfig to the platform build.gradle? Somethng like this
|
Hi, @AntonioCuevaUrraco public void onCreate(Bundle arguments) {
MultiDex.install(getTargetContext()); // this can't be reached by the user yet
super.onCreate(arguments);
...
} but i think you will be glad to hear we are making changes so that it is possible with this: NativeScript/android#364 which will enable the user to change the We already have an issue oppended: NativeScript/android#344 and we are working on it.
this adds the whole google play services library and it's a big one, although you might not need to. The solution is to get (if possible) only the parts you need like so:
You can read more here: https://developers.google.com/android/guides/setup |
Thank you @Plamen5kov I didn't know about the onCreate but the thing is that after the changes on gradle the build went thought and seams all good :-/ weird but I will have to check it out before releasing a new version in case there is some hided crash waiting for a user to click something. We have around 10 plugins and I think Fb is the fattest guy on the room I will check if I can do something about it |
@AntonioCuevaUrraco The App Store message above is "informational" only. I get the message everytime we upload a version of our hybrid app which uses several plugins but it always publishes to the store just fine. |
I got now this one:
So I had to add to build.gradle
|
@Plamen5kov I have some crash reports like this
I think it may be related to the multidex issue, What do you think? |
Hi @AntonioCuevaUrraco,
|
I have the client on 1.6.0, android 1.6.3 and iOs 1.6.0.
The thing is that I solve it by avoiding the multidex but as the app keep growing I will hit the limit again, and as I could read you made a solution that was released on 2.0. I wanted to confirm and if there is some guideline about using multidex with NS Thank you for your time @Plamen5kov I have been using this too tool to check the numbers on the dex https://github.com/mihaip/dex-method-counts and I get a result of method count: 44979 |
Hi @AntonioCuevaUrraco, |
Thank you for the working sample. I think the issue is solved now |
So Smarp is a pay customers of Zendesk and @sitefinitysteve have done a great work in collaboration with the zendesk team to make it work for NS. Hence I add it to the platform and the build reached the 65k dex limit for android.
Unable to execute dex: method ID not in [0, 0xffff]: 65536
And I have to modify the build.gradle to fix it as instructed here http://developer.android.com/intl/zh-tw/tools/building/multidex.html
In the other side xcode doesn't want to upload the app to the store anymore. At first I though it is like always their servers too overloaded but after a day of retry and retry I used the application loader and it got in but with this warning
So after all this story, Is there something I can do to reduce the number of references? I am not really sure what kind of things make the references increase as I only manage the .js layer.
Also I hope you take this into account for further releases and this thing dosn't break the android building
The text was updated successfully, but these errors were encountered: