@norcy/react-native-toolkit 0.1.153 → 0.1.154
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/dependencies.gradle +32 -0
- package/package.json +1 -1
@@ -61,6 +61,23 @@ ext.applyNorcyCommonDependencies = { targetProject, enableHermes, jscFlavor ->
|
|
61
61
|
}
|
62
62
|
}
|
63
63
|
|
64
|
+
ext.applyNorcyBuildTypes = { targetProject, options = [:] ->
|
65
|
+
def enableProguardInReleaseBuilds = options.enableProguardInReleaseBuilds ?: false
|
66
|
+
|
67
|
+
targetProject.android {
|
68
|
+
buildTypes {
|
69
|
+
debug {
|
70
|
+
signingConfig signingConfigs.debug
|
71
|
+
}
|
72
|
+
release {
|
73
|
+
minifyEnabled enableProguardInReleaseBuilds
|
74
|
+
proguardFiles targetProject.android.getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
|
75
|
+
crunchPngs false
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
64
81
|
ext.applyNorcyCommonAndroidConfig = { targetProject ->
|
65
82
|
targetProject.android {
|
66
83
|
compileOptions {
|
@@ -97,3 +114,18 @@ ext.applyNorcyCommonAndroidConfig = { targetProject ->
|
|
97
114
|
}
|
98
115
|
}
|
99
116
|
|
117
|
+
ext.applyNorcyCommonPlugins = { targetProject, options = [:] ->
|
118
|
+
def sentryPropertiesPath = options.sentryPropertiesPath ?: "../sentry.properties"
|
119
|
+
|
120
|
+
targetProject.apply from: targetProject.file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle")
|
121
|
+
targetProject.applyNativeModulesAppBuildGradle(targetProject)
|
122
|
+
|
123
|
+
targetProject.apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
|
124
|
+
targetProject.apply from: "../../node_modules/@sentry/react-native/sentry.gradle"
|
125
|
+
|
126
|
+
targetProject.ext.sentryCli = [
|
127
|
+
logLevel: "debug",
|
128
|
+
sentryProperties: sentryPropertiesPath
|
129
|
+
]
|
130
|
+
}
|
131
|
+
|