mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-01-11 20:10:25 +00:00
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
|
*.p12
|
||||||
*.key
|
*.key
|
||||||
*.mobileprovision
|
*.mobileprovision
|
||||||
|
android/
|
||||||
|
ios/
|
||||||
|
|
||||||
# Metro
|
# Metro
|
||||||
.metro-health-check*
|
.metro-health-check*
|
||||||
|
|
|
||||||
|
|
@ -87,16 +87,6 @@ android {
|
||||||
compileSdk rootProject.ext.compileSdkVersion
|
compileSdk rootProject.ext.compileSdkVersion
|
||||||
|
|
||||||
namespace 'com.nuvio.app'
|
namespace 'com.nuvio.app'
|
||||||
|
|
||||||
splits {
|
|
||||||
abi {
|
|
||||||
enable true
|
|
||||||
reset()
|
|
||||||
include "armeabi-v7a", "arm64-v8a"
|
|
||||||
universalApk false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId 'com.nuvio.app'
|
applicationId 'com.nuvio.app'
|
||||||
minSdkVersion rootProject.ext.minSdkVersion
|
minSdkVersion rootProject.ext.minSdkVersion
|
||||||
|
|
@ -120,8 +110,8 @@ android {
|
||||||
// Caution! In production, you need to generate your own keystore file.
|
// Caution! In production, you need to generate your own keystore file.
|
||||||
// see https://reactnative.dev/docs/signed-apk-android.
|
// see https://reactnative.dev/docs/signed-apk-android.
|
||||||
signingConfig signingConfigs.debug
|
signingConfig signingConfigs.debug
|
||||||
shrinkResources true
|
shrinkResources (findProperty('android.enableShrinkResourcesInReleaseBuilds')?.toBoolean() ?: false)
|
||||||
minifyEnabled true
|
minifyEnabled enableProguardInReleaseBuilds
|
||||||
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
|
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
|
||||||
crunchPngs (findProperty('android.enablePngCrunchInReleaseBuilds')?.toBoolean() ?: true)
|
crunchPngs (findProperty('android.enablePngCrunchInReleaseBuilds')?.toBoolean() ?: true)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue