react-native-appmetrica/android/build.gradle

66 lines
1.7 KiB
Groovy
Raw Normal View History

2020-06-08 22:14:06 +03:00
buildscript {
if (project == rootProject) {
repositories {
google()
2022-05-04 07:22:54 +03:00
mavenCentral()
2020-06-08 22:14:06 +03:00
jcenter()
}
2022-05-04 07:22:54 +03:00
2020-06-08 22:14:06 +03:00
dependencies {
2022-05-04 07:22:54 +03:00
classpath 'com.android.tools.build:gradle:3.5.3'
2020-06-08 22:14:06 +03:00
}
}
}
apply plugin: 'com.android.library'
2022-05-04 07:22:54 +03:00
def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}
2020-06-08 22:14:06 +03:00
android {
2022-05-04 07:22:54 +03:00
compileSdkVersion safeExtGet('AwesomeModule_compileSdkVersion', 29)
2020-06-08 22:14:06 +03:00
defaultConfig {
2022-05-04 07:22:54 +03:00
minSdkVersion safeExtGet('AwesomeModule_minSdkVersion', 16)
targetSdkVersion safeExtGet('AwesomeModule_targetSdkVersion', 29)
2020-06-08 22:14:06 +03:00
versionCode 1
versionName "1.0"
2022-05-04 07:22:54 +03:00
}
buildTypes {
release {
minifyEnabled false
}
2020-06-08 22:14:06 +03:00
}
lintOptions {
2022-05-04 07:22:54 +03:00
disable 'GradleCompatible'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
2020-06-08 22:14:06 +03:00
}
}
repositories {
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
2022-05-04 07:22:54 +03:00
url("$rootDir/../node_modules/react-native/android")
2020-06-08 22:14:06 +03:00
}
google()
2022-05-04 07:22:54 +03:00
mavenCentral()
2020-06-08 22:14:06 +03:00
jcenter()
}
dependencies {
//noinspection GradleDynamicVersion
2022-05-04 07:22:54 +03:00
implementation "com.facebook.react:react-native:+" // From node_modules
implementation 'com.yandex.android:mobmetricalib:4.2.0'
implementation "com.yandex.android:mobmetricapushlib:2.1.1"
2021-02-15 10:59:08 +03:00
implementation "com.android.support:support-compat:28.0.0"
2020-06-08 22:14:06 +03:00
implementation 'com.android.installreferrer:installreferrer:1.1.2'
2022-05-04 07:22:54 +03:00
implementation "com.google.firebase:firebase-messaging:22.0.0"
2021-01-21 11:23:32 +03:00
implementation "com.google.android.gms:play-services-base:17.5.0"
2020-06-08 22:14:06 +03:00
}