App size
The idea of the app was to incorporate it into the LibreMesh OS (inside the router), so the app size needed to be light. The final size is approximately 730,3 KB. This was achieved with some tricks:
- Add scripts to build.gradle
```groovy
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
- Add resConfig for the Spanish language in build.gradle
resConfigs "es"
-
Convert the icon to WebP
-
Delete unused dependencies in the build.gradle
-
Delete these dependencies (added automatically) and all use of them
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.2.1'