Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
node_modules/
android/.gradle/
android/app/build/
android/app/.cxx/
ios/Pods/
ios/build/
ios/.xcode.env.local
Expand All @@ -10,6 +11,9 @@ ios/.xcode.env.local
*.p8
*.p12

# Local gradle properties with secrets
android/gradle-local.properties

# Builds
dist/

Expand Down
21 changes: 18 additions & 3 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ react {
// bundleAssetName = "MyApplication.android.bundle"
//
// The entry file for bundle generation. Default is 'index.android.js' or 'index.js'
// entryFile = file("../js/MyApplication.android.js")
entryFile = file("../../index.ts")
//
// A list of extra flags to pass to the 'bundle' commands.
// See https://github.com/react-native-community/cli/blob/main/docs/commands.md#bundle
Expand All @@ -57,7 +57,7 @@ react {
/**
* Set this to true to Run Proguard on Release builds to minify the Java bytecode.
*/
def enableProguardInReleaseBuilds = false
def enableProguardInReleaseBuilds = true

/**
* The preferred build flavor of JavaScriptCore (JSC)
Expand All @@ -73,7 +73,7 @@ def enableProguardInReleaseBuilds = false
def jscFlavor = 'io.github.react-native-community:jsc-android:2026004.+'

android {
ndkVersion rootProject.ext.ndkVersion
// ndkVersion rootProject.ext.ndkVersion // Commented out - NDK version not defined in root build.gradle
buildToolsVersion rootProject.ext.buildToolsVersion
compileSdk rootProject.ext.compileSdkVersion

Expand All @@ -92,6 +92,20 @@ android {
keyAlias 'androiddebugkey'
keyPassword 'android'
}
release {
def localPropertiesFile = rootProject.file("gradle-local.properties")
def localProperties = new Properties()
if (localPropertiesFile.exists()) {
localProperties.load(new FileInputStream(localPropertiesFile))
}

if (localProperties.getProperty('WMBR_UPLOAD_STORE_FILE')) {
storeFile file(localProperties.getProperty('WMBR_UPLOAD_STORE_FILE'))
storePassword localProperties.getProperty('WMBR_UPLOAD_STORE_PASSWORD')
keyAlias localProperties.getProperty('WMBR_UPLOAD_KEY_ALIAS')
keyPassword localProperties.getProperty('WMBR_UPLOAD_KEY_PASSWORD')
}
}
}
buildTypes {
debug {
Expand All @@ -101,6 +115,7 @@ android {
// Caution! In production, you need to generate your own keystore file.
// see https://reactnative.dev/docs/signed-apk-android.
signingConfig signingConfigs.debug
signingConfig signingConfigs.release
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ buildscript {
minSdkVersion = 24
compileSdkVersion = 35
targetSdkVersion = 35
ndkVersion = "27.1.12297006"
// ndkVersion = "27.1.12297006"
kotlinVersion = "2.1.20"
}
repositories {
Expand Down
4 changes: 2 additions & 2 deletions android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
# your application. You should enable this flag either if you want
# to write custom TurboModules/Fabric components OR use libraries that
# are providing them.
newArchEnabled=true
newArchEnabled=false

# Use this property to enable or disable the Hermes JS engine.
# If set to false, you will be using JSC instead.
hermesEnabled=true
hermesEnabled=true
Loading
Loading