summaryrefslogtreecommitdiff
path: root/src/react-native-app/android/build.gradle
diff options
context:
space:
mode:
authorSaumit <justsaumit@protonmail.com>2025-09-27 02:14:26 +0530
committerSaumit <justsaumit@protonmail.com>2025-09-27 02:14:26 +0530
commit82e03978b89938219958032efb1448cc76baa181 (patch)
tree626f3e54d52ecd49be0ed3bee30abacc0453d081 /src/react-native-app/android/build.gradle
Initial snapshot - OpenTelemetry demo 2.1.3 -f
Diffstat (limited to 'src/react-native-app/android/build.gradle')
-rw-r--r--src/react-native-app/android/build.gradle41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/react-native-app/android/build.gradle b/src/react-native-app/android/build.gradle
new file mode 100644
index 0000000..932bf7b
--- /dev/null
+++ b/src/react-native-app/android/build.gradle
@@ -0,0 +1,41 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+ ext {
+ buildToolsVersion = findProperty('android.buildToolsVersion') ?: '34.0.0'
+ minSdkVersion = Integer.parseInt(findProperty('android.minSdkVersion') ?: '23')
+ compileSdkVersion = Integer.parseInt(findProperty('android.compileSdkVersion') ?: '34')
+ targetSdkVersion = Integer.parseInt(findProperty('android.targetSdkVersion') ?: '34')
+ kotlinVersion = findProperty('android.kotlinVersion') ?: '1.9.23'
+
+ ndkVersion = "26.1.10909125"
+ }
+ repositories {
+ google()
+ mavenCentral()
+ }
+ dependencies {
+ classpath('com.android.tools.build:gradle')
+ classpath('com.facebook.react:react-native-gradle-plugin')
+ classpath('org.jetbrains.kotlin:kotlin-gradle-plugin')
+ }
+}
+
+apply plugin: "com.facebook.react.rootproject"
+
+allprojects {
+ repositories {
+ maven {
+ // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
+ url(new File(['node', '--print', "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim(), '../android'))
+ }
+ maven {
+ // Android JSC is installed from npm
+ url(new File(['node', '--print', "require.resolve('jsc-android/package.json', { paths: [require.resolve('react-native/package.json')] })"].execute(null, rootDir).text.trim(), '../dist'))
+ }
+
+ google()
+ mavenCentral()
+ maven { url 'https://www.jitpack.io' }
+ }
+}