@@ -2,8 +2,6 @@ apply plugin: "com.android.application"
2
2
apply plugin : " com.facebook.react"
3
3
apply plugin : " io.sentry.android.gradle"
4
4
5
- import com.android.build.OutputFile
6
-
7
5
sentry {
8
6
// Disables or enables the automatic configuration of Native Symbols
9
7
// for Sentry. This executes sentry-cli automatically so
@@ -24,8 +22,8 @@ react {
24
22
// root = file("../")
25
23
// The folder where the react-native NPM package is. Default is ../node_modules/react-native
26
24
// reactNativeDir = file("../node_modules/react-native")
27
- // The folder where the react-native Codegen package is. Default is ../node_modules/react-native- codegen
28
- // codegenDir = file("../node_modules/react-native- codegen")
25
+ // The folder where the react-native Codegen package is. Default is ../node_modules/@ react-native/ codegen
26
+ // codegenDir = file("../node_modules/@ react-native/ codegen")
29
27
// The cli.js file which is the React Native CLI entrypoint. Default is ../node_modules/react-native/cli.js
30
28
// cliFile = file("../node_modules/react-native/cli.js")
31
29
/* Variants */
@@ -71,14 +69,6 @@ project.ext.sentryCli = [
71
69
72
70
apply from : " ../../../sentry.gradle"
73
71
74
- /**
75
- * Set this to true to create four separate APKs instead of one,
76
- * one for each native architecture. This is useful if you don't
77
- * use App Bundles (https://developer.android.com/guide/app-bundle/)
78
- * and want to have separate APKs to upload to the Play Store.
79
- */
80
- def enableSeparateBuildPerCPUArchitecture = false
81
-
82
72
/**
83
73
* Set this to true to Run Proguard on Release builds to minify the Java bytecode.
84
74
*/
@@ -97,14 +87,6 @@ def enableProguardInReleaseBuilds = true
97
87
*/
98
88
def jscFlavor = ' org.webkit:android-jsc:+'
99
89
100
- /**
101
- * Architectures to build native code for.
102
- */
103
- def reactNativeArchitectures () {
104
- def value = project. getProperties(). get(" reactNativeArchitectures" )
105
- return value ? value. split(" ," ) : [" armeabi-v7a" , " x86" , " x86_64" , " arm64-v8a" ]
106
- }
107
-
108
90
android {
109
91
ndkVersion rootProject. ext. ndkVersion
110
92
@@ -119,14 +101,6 @@ android {
119
101
versionName " 1.0"
120
102
}
121
103
122
- splits {
123
- abi {
124
- reset()
125
- enable enableSeparateBuildPerCPUArchitecture
126
- universalApk false // If true, also generate a universal APK
127
- include (* reactNativeArchitectures())
128
- }
129
- }
130
104
signingConfigs {
131
105
debug {
132
106
storeFile file(' debug.keystore' )
@@ -148,23 +122,6 @@ android {
148
122
}
149
123
}
150
124
151
- // applicationVariants are e.g. debug, release
152
- applicationVariants. all { variant ->
153
- variant. outputs. each { output ->
154
- // For each separate APK per architecture, set a unique version code as described here:
155
- // https://developer.android.com/studio/build/configure-apk-splits.html
156
- // Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc.
157
- def versionCodes = [" armeabi-v7a" : 1 , " x86" : 2 , " arm64-v8a" : 3 , " x86_64" : 4 ]
158
- def abi = output. getFilter(OutputFile . ABI )
159
- if (abi != null ) { // null for the universal-debug, universal-release variants
160
- output. versionCodeOverride =
161
- defaultConfig. versionCode * 1000 + versionCodes. get(abi)
162
- }
163
-
164
- }
165
- }
166
-
167
-
168
125
}
169
126
170
127
dependencies {
0 commit comments