@@ -2,6 +2,7 @@ apply plugin: "com.android.application"
2
2
apply plugin : " org.jetbrains.kotlin.android"
3
3
apply plugin : " com.facebook.react"
4
4
apply from : " ../../node_modules/@sentry/react-native/sentry.gradle"
5
+ apply plugin : " com.google.gms.google-services"
5
6
6
7
/**
7
8
* This is the configuration block to customize your React Native Android app.
@@ -78,27 +79,49 @@ android {
78
79
applicationId " com.walletconnect.web3wallet.rnsample"
79
80
minSdkVersion rootProject. ext. minSdkVersion
80
81
targetSdkVersion rootProject. ext. targetSdkVersion
81
- versionCode 9
82
+ versionCode 15
82
83
versionName " 1.0"
83
84
}
85
+
86
+ def secretsProperties = new Properties ()
87
+ secretsProperties. load(new FileInputStream (rootProject. file(" secrets.properties" )))
88
+
84
89
signingConfigs {
85
90
debug {
86
- storeFile file(' debug.keystore' )
87
- storePassword ' android'
88
- keyAlias ' androiddebugkey'
89
- keyPassword ' android'
91
+ storeFile file(secretsProperties[' WC_FILENAME_DEBUG' ])
92
+ storePassword secretsProperties[' WC_STORE_PASSWORD_DEBUG' ]
93
+ keyAlias secretsProperties[' WC_KEYSTORE_ALIAS_DEBUG' ]
94
+ keyPassword secretsProperties[' WC_KEY_PASSWORD_DEBUG' ]
95
+ }
96
+ internal {
97
+ storeFile file(secretsProperties[' WC_FILENAME_INTERNAL' ])
98
+ storePassword secretsProperties[' WC_STORE_PASSWORD_INTERNAL' ]
99
+ keyAlias secretsProperties[' WC_KEYSTORE_ALIAS' ]
100
+ keyPassword secretsProperties[' WC_KEY_PASSWORD_INTERNAL' ]
101
+ }
102
+ upload {
103
+ storeFile file(secretsProperties[' WC_FILENAME_UPLOAD' ])
104
+ storePassword secretsProperties[' WC_STORE_PASSWORD_UPLOAD' ]
105
+ keyAlias secretsProperties[' WC_KEYSTORE_ALIAS' ]
106
+ keyPassword secretsProperties[' WC_KEY_PASSWORD_UPLOAD' ]
90
107
}
91
108
}
92
109
buildTypes {
110
+ internal {
111
+ applicationIdSuffix " .internal"
112
+ versionNameSuffix " -internal"
113
+ signingConfig signingConfigs. internal
114
+ matchingFallbacks = [' release' ]
115
+ }
93
116
debug {
117
+ applicationIdSuffix " .debug"
118
+ versionNameSuffix " -debug"
94
119
signingConfig signingConfigs. debug
95
120
}
96
121
release {
97
- // Caution! In production, you need to generate your own keystore file.
98
- // see https://reactnative.dev/docs/signed-apk-android.
99
- signingConfig signingConfigs. debug
100
122
minifyEnabled enableProguardInReleaseBuilds
101
123
proguardFiles getDefaultProguardFile(" proguard-android.txt" ), " proguard-rules.pro"
124
+ signingConfig signingConfigs. upload
102
125
}
103
126
}
104
127
packagingOptions {
@@ -112,6 +135,9 @@ dependencies {
112
135
implementation(" com.facebook.react:react-android" )
113
136
implementation(" com.facebook.react:flipper-integration" )
114
137
138
+ // Import the Firebase BoM
139
+ implementation platform(' com.google.firebase:firebase-bom:32.7.1' )
140
+
115
141
if (hermesEnabled. toBoolean()) {
116
142
implementation(" com.facebook.react:hermes-android" )
117
143
} else {
0 commit comments