-
Notifications
You must be signed in to change notification settings - Fork 86
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
Made App Size 24MB #174
Made App Size 24MB #174
Conversation
android/app/build.gradle
Outdated
@@ -51,36 +42,26 @@ android { | |||
|
|||
defaultConfig { | |||
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). | |||
applicationId "vdrs.sappu.lafk.learn" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why you changed package name man??
android/app/build.gradle
Outdated
// You can update the following values to match your application needs. | ||
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. | ||
minSdkVersion 21 | ||
targetSdkVersion flutter.targetSdkVersion | ||
versionCode flutterVersionCode.toInteger() | ||
versionName flutterVersionName | ||
multiDexEnabled true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does multidex enabling really needed??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope will remove it since app supports minSdk 21
@@ -1,6 +1,6 @@ | |||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why change in label??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Icon Changed Why??
@sapatevaibhav @Gaurav-Kushwaha-1225 changed icon app label and package name also this is needed or he did it by mistake ?? |
Hi @K123Ritesh, In above mentioned comment, after running But it appears shocking that even during testing the app after the default android folder was generated the app's icon didn't change and was the a\same as before. Anyways, I will make sure this time and push further commits to resolve this matter. Thank you. |
app-release.apk
wasn't being compiled after runningflutter build apk
orflutter build apk --release
command in the terminal. It was constantly giving below error.flutter create .
flutter build apk
orflutter build apk --release
commands worked and gave an .apk file of 35 MB sizeflutter build apk --split-per-abi
command also I got an .apk file of 28 MB size. I read about this command on this StackOverFlow Page 2nd Answer.black.svg
,onion.png
, etc