build.gradle 1.59 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
        versionCode 1
        versionName "1.0"

        ndk {
            abiFilters "armeabi-v7a", "x86"
        }
26
        missingDimensionStrategy "RNNotifications.reactNativeVersion", "reactNative60"
Amit Davidi's avatar
Amit Davidi committed
27 28 29 30 31 32 33
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
34 35 36 37
    compileOptions {
        sourceCompatibility 1.8
        targetCompatibility 1.8
    }
38 39 40
    packagingOptions {
        pickFirst '**/libjsc.so'
        pickFirst '**/libc++_shared.so'
Guy Carmeli's avatar
Guy Carmeli committed
41 42 43
    }
}

44

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

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

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

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

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