From 254539e064075c9bfb26131f90af7056d843e518 Mon Sep 17 00:00:00 2001 From: Guy Carmeli Date: Sun, 4 Nov 2018 14:50:21 +0200 Subject: [PATCH] Update example app Update gradle files, nothing fancy. --- android/build.gradle | 2 +- example/android/build.gradle | 8 ++++++- .../gradle/wrapper/gradle-wrapper.properties | 4 ++-- example/android/myapplication/build.gradle | 23 ++++++++----------- example/package.json | 4 +++- 5 files changed, 23 insertions(+), 18 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index be17e59..de0db35 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 f2464c1..f5195f5 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 1d4f8cb..77c7721 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 25b4807..a0b23bc 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 348c3aa..78fa0e7 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" + ] } } -- 2.26.2