build.gradle 1.66 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 17

    defaultConfig {
18
        applicationId "com.wix.reactnativenotifications.app"
Guy Carmeli's avatar
Guy Carmeli committed
19
        minSdkVersion 19
20
        targetSdkVersion 28
Amit Davidi's avatar
Amit Davidi committed
21 22 23 24 25 26 27 28 29 30 31 32 33
        versionCode 1
        versionName "1.0"

        ndk {
            abiFilters "armeabi-v7a", "x86"
        }
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
34 35 36 37
    compileOptions {
        sourceCompatibility 1.8
        targetCompatibility 1.8
    }
Amit Davidi's avatar
Amit Davidi committed
38 39
}

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

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

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

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

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

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