build.gradle 1.65 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
    }
Amit Davidi's avatar
Amit Davidi committed
37 38
}

Guy Carmeli's avatar
Guy Carmeli committed
39 40 41 42
configurations.all {
    resolutionStrategy.eachDependency { DependencyResolveDetails details ->
        def requested = details.requested
        if (requested.group == 'com.android.support') {
yogevbd's avatar
yogevbd committed
43
            details.useVersion "28.0.0"
Guy Carmeli's avatar
Guy Carmeli committed
44 45 46 47
        }
    }
}

yogevbd's avatar
yogevbd committed
48 49 50 51 52 53
configurations.all {
    resolutionStrategy {
        force 'org.webkit:android-jsc:r236355'
    }
}

Amit Davidi's avatar
Amit Davidi committed
54
dependencies {
Guy Carmeli's avatar
Guy Carmeli committed
55
//    compile fileTree(dir: 'libs', include: ['*.jar'])
Amit Davidi's avatar
Amit Davidi committed
56

yogevbd's avatar
yogevbd committed
57
    implementation 'com.google.firebase:firebase-core:16.0.0'
58 59
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support:design:28.0.0'
Guy Carmeli's avatar
Guy Carmeli committed
60 61
    implementation 'com.facebook.react:react-native:+'
    implementation project(':react-native-notifications')
Amit Davidi's avatar
Amit Davidi committed
62

Guy Carmeli's avatar
Guy Carmeli committed
63
    testImplementation'junit:junit:4.12'
Amit Davidi's avatar
Amit Davidi committed
64
}
yogevbd's avatar
yogevbd committed
65 66

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