diff --git a/android/build.gradle b/android/build.gradle index be17e59d02e7764fd2f26c006193cb77a9c299e1..de0db35f9d7c22a6d8a179f04fc39dafa1275214 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'com.android.library' android { compileSdkVersion 27 - buildToolsVersion "27.0.3" + buildToolsVersion '28.0.3' defaultConfig { minSdkVersion 19 diff --git a/example/android/build.gradle b/example/android/build.gradle index f2464c16c7efd4800b855f1afa6e1b52b164a8a4..f5195f5cf9d892ae479c61bdaa3e4366b04dbb1c 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -2,15 +2,21 @@ buildscript { repositories { + google() + mavenLocal() + mavenCentral() jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:2.2.0' + classpath 'com.android.tools.build:gradle:3.2.1' } } allprojects { repositories { + mavenLocal() + mavenCentral() + google() jcenter() maven { diff --git a/example/android/gradle/wrapper/gradle-wrapper.properties b/example/android/gradle/wrapper/gradle-wrapper.properties index 1d4f8cb2697ed13ecbbf4b08e936cc6c4882b32b..77c7721030e23d52b13c86910aa896bb4e0c391d 100644 --- a/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/example/android/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Sun Oct 09 14:30:04 IDT 2016 +#Sun Nov 04 14:31:28 IST 2018 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip diff --git a/example/android/myapplication/build.gradle b/example/android/myapplication/build.gradle index 25b480757e39b74d15073193a9ba84aaa2c11213..a0b23bcca1f5d76e0750f1d00264e2391989260a 100644 --- a/example/android/myapplication/build.gradle +++ b/example/android/myapplication/build.gradle @@ -1,22 +1,19 @@ apply plugin: 'com.android.application' android { - compileSdkVersion 23 - buildToolsVersion "25" + compileSdkVersion 26 + buildToolsVersion "28.0.3" defaultConfig { applicationId "com.wix.reactnativenotifications.app" - minSdkVersion 16 - targetSdkVersion 23 + minSdkVersion 19 + targetSdkVersion 26 versionCode 1 versionName "1.0" ndk { abiFilters "armeabi-v7a", "x86" } -// packagingOptions { -// exclude "lib/arm64-v8a/librealm-jni.so" -// } } buildTypes { release { @@ -27,12 +24,12 @@ android { } dependencies { - compile fileTree(dir: 'libs', include: ['*.jar']) +// compile fileTree(dir: 'libs', include: ['*.jar']) - compile 'com.android.support:appcompat-v7:23.4.0' - compile 'com.android.support:design:23.4.0' - compile 'com.facebook.react:react-native:+' - compile project(':react-native-notifications') + implementation 'com.android.support:appcompat-v7:26.1.0' + implementation 'com.android.support:design:26.1.0' + implementation 'com.facebook.react:react-native:+' + implementation project(':react-native-notifications') - testCompile 'junit:junit:4.12' + testImplementation'junit:junit:4.12' } diff --git a/example/package.json b/example/package.json index 348c3aa2ab5b232bdf6bf6a552e059df22a233e0..78fa0e79da212810909aeb3816a1f440f98706db 100644 --- a/example/package.json +++ b/example/package.json @@ -12,6 +12,8 @@ "react-native-notifications": "../" }, "babel": { - "presets": ["react-native-stage-0"] + "presets": [ + "react-native-stage-0" + ] } }