build.gradle 1.5 KB
Newer Older
yogevbd's avatar
yogevbd committed
1 2 3 4 5
apply plugin: "com.android.application"

project.ext.react = [
        root     : "../../../",
        entryFile: "index.js",
yogevbd's avatar
yogevbd committed
6
        bundleAssetName: "index.bundle",
yogevbd's avatar
yogevbd committed
7 8 9 10 11
        bundleInAlpha: true,
        bundleInBeta: true
]

apply from: "../../../node_modules/react-native/react.gradle"
Amit Davidi's avatar
Amit Davidi committed
12 13

android {
14
    compileSdkVersion 28
yogevbd's avatar
yogevbd committed
15
    buildToolsVersion "28.0.3"
Amit Davidi's avatar
Amit Davidi committed
16
    defaultConfig {
17
        applicationId "com.wix.reactnativenotifications.app"
18
        minSdkVersion 16
19
        targetSdkVersion 28
Amit Davidi's avatar
Amit Davidi committed
20 21 22 23 24 25 26 27 28 29 30 31 32
        versionCode 1
        versionName "1.0"

        ndk {
            abiFilters "armeabi-v7a", "x86"
        }
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
33 34 35 36
    compileOptions {
        sourceCompatibility 1.8
        targetCompatibility 1.8
    }
37 38 39
    packagingOptions {
        pickFirst '**/libjsc.so'
        pickFirst '**/libc++_shared.so'
Guy Carmeli's avatar
Guy Carmeli committed
40 41 42
    }
}

43

yogevbd's avatar
yogevbd committed
44 45 46 47 48 49
configurations.all {
    resolutionStrategy {
        force 'org.webkit:android-jsc:r236355'
    }
}

Amit Davidi's avatar
Amit Davidi committed
50
dependencies {
51
    implementation fileTree(dir: 'libs', include: ['*.jar'])
Amit Davidi's avatar
Amit Davidi committed
52

yogevbd's avatar
yogevbd committed
53
    implementation 'com.google.firebase:firebase-core:16.0.0'
54
    implementation 'androidx.appcompat:appcompat:1.0.2'
Guy Carmeli's avatar
Guy Carmeli committed
55
    implementation 'com.facebook.react:react-native:+'
56
    implementation 'org.webkit:android-jsc-intl:+'
Guy Carmeli's avatar
Guy Carmeli committed
57
    implementation project(':react-native-notifications')
Amit Davidi's avatar
Amit Davidi committed
58

Guy Carmeli's avatar
Guy Carmeli committed
59
    testImplementation'junit:junit:4.12'
Amit Davidi's avatar
Amit Davidi committed
60
}
yogevbd's avatar
yogevbd committed
61 62

apply plugin: 'com.google.gms.google-services'