Update .gitignore to exclude android and ios directories; modify build.gradle to enhance resource shrinking and ProGuard settings
This commit is contained in:
parent
08af55edbb
commit
e5bcc23ba6
3 changed files with 21 additions and 12 deletions
17
.easignore
Normal file
17
.easignore
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# General cleanup
|
||||
node_modules
|
||||
.expo
|
||||
build
|
||||
dist
|
||||
*.log
|
||||
|
||||
# Native directories (if you're not customizing them)
|
||||
ios
|
||||
android
|
||||
|
||||
# Big assets (only if unused in app)
|
||||
*.mp4
|
||||
*.zip
|
||||
*.psd
|
||||
*.mov
|
||||
*.avi
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -16,6 +16,8 @@ expo-env.d.ts
|
|||
*.p12
|
||||
*.key
|
||||
*.mobileprovision
|
||||
android/
|
||||
ios/
|
||||
|
||||
# Metro
|
||||
.metro-health-check*
|
||||
|
|
|
|||
|
|
@ -87,16 +87,6 @@ android {
|
|||
compileSdk rootProject.ext.compileSdkVersion
|
||||
|
||||
namespace 'com.nuvio.app'
|
||||
|
||||
splits {
|
||||
abi {
|
||||
enable true
|
||||
reset()
|
||||
include "armeabi-v7a", "arm64-v8a"
|
||||
universalApk false
|
||||
}
|
||||
}
|
||||
|
||||
defaultConfig {
|
||||
applicationId 'com.nuvio.app'
|
||||
minSdkVersion rootProject.ext.minSdkVersion
|
||||
|
|
@ -120,8 +110,8 @@ android {
|
|||
// Caution! In production, you need to generate your own keystore file.
|
||||
// see https://reactnative.dev/docs/signed-apk-android.
|
||||
signingConfig signingConfigs.debug
|
||||
shrinkResources true
|
||||
minifyEnabled true
|
||||
shrinkResources (findProperty('android.enableShrinkResourcesInReleaseBuilds')?.toBoolean() ?: false)
|
||||
minifyEnabled enableProguardInReleaseBuilds
|
||||
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
|
||||
crunchPngs (findProperty('android.enablePngCrunchInReleaseBuilds')?.toBoolean() ?: true)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue