-
Notifications
You must be signed in to change notification settings - Fork 767
/
Copy pathbuild.gradle
62 lines (52 loc) · 1.93 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
apply plugin: "com.android.application"
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
project.ext.react = [
root : "../../../",
entryFile : "index.js",
cliPath : "node_modules/react-native/cli.js",
bundleAssetName: "index.bundle",
enableHermes : true,
bundleInAlpha : true,
bundleInBeta : true,
hermesFlagsDebug:['-Xes6-proxy','-output-source-map'],
hermesFlagsRelease:['-output-source-map'],
hermesCommand: "../../../node_modules/hermes-engine/%OS-BIN%/hermesc",
]
apply from: "../../../node_modules/react-native/react.gradle"
android {
ndkVersion "20.1.5948944"
compileSdkVersion androidSdkVersion
defaultConfig {
applicationId "com.wix.reactnativenotifications.app"
minSdkVersion androidMinSdkVersion
targetSdkVersion androidSdkVersion
versionCode 1
versionName "1.0"
ndk {
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
//noinspection GradleDynamicVersion
implementation "com.facebook.react:react-native:+"
def hermesPath = "../../../node_modules/hermes-engine/android/";
debugImplementation files(hermesPath + "hermes-debug.aar")
releaseImplementation files(hermesPath + "hermes-release.aar")
implementation "org.jetbrains.kotlin:$kotlinStdlib:$kotlinVersion"
implementation "androidx.appcompat:appcompat:1.0.0"
implementation project(':react-native-notifications')
}
apply plugin: 'com.google.gms.google-services'