Skip to content

Commit

Permalink
Fixes .apk build
Browse files Browse the repository at this point in the history
Fixes react-native-auth0 v3 build error
update ios podfile
Configure APK build keys
  • Loading branch information
dhakalaashish committed Mar 1, 2024
1 parent 10608f8 commit ffec862
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 3 additions & 3 deletions apps/nativeapp/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: "com.android.application"
apply plugin: "com.facebook.react"
project.ext.envConfigFiles = [
staging : ".env.staging",
release: ".env.production",
release: ".env",
develop : ".env",
]
apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.gradle"
Expand Down Expand Up @@ -114,7 +114,7 @@ android {
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 4
versionName "1.2"
manifestPlaceholders = [auth0Domain: "@string/AUTH0_DOMAIN", auth0Scheme: "${applicationId}"]
manifestPlaceholders = [auth0Domain: "accounts.plant-for-the-planet.org", auth0Scheme: "${applicationId}.auth0"]
}

splits {
Expand Down Expand Up @@ -154,7 +154,7 @@ android {
}
}
flavorDimensions "env"

productFlavors {
staging {
dimension "env"
Expand Down
5 changes: 5 additions & 0 deletions apps/nativeapp/android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
# are providing them.
newArchEnabled=false

MYAPP_RELEASE_STORE_FILE=my-release-key.keystore
MYAPP_RELEASE_KEY_ALIAS=my-key-alias
MYAPP_RELEASE_STORE_PASSWORD=fire-alert
MYAPP_RELEASE_KEY_PASSWORD=fire-alert

# Use this property to enable or disable the Hermes JS engine.
# If set to false, you will be using JSC instead.
hermesEnabled=true
2 changes: 1 addition & 1 deletion apps/nativeapp/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ require_relative '../../../node_modules/react-native/scripts/react_native_pods'
require_relative '../../../node_modules/@react-native-community/cli-platform-ios/native_modules'

$RNMapboxMapsImpl = 'mapbox'
platform :ios, min_ios_version_supported
platform :ios, '13.0'
prepare_react_native_project!

# If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set.
Expand Down

0 comments on commit ffec862

Please sign in to comment.