Skip to content

Commit 54a6ce6

Browse files
authored
Merge pull request #2224 from StoDevX/up-min-android-sdk-version
Raise minimum android sdk version
2 parents 1ab9e55 + dee606e commit 54a6ce6

File tree

5 files changed

+31
-25
lines changed

5 files changed

+31
-25
lines changed

android/app/build.gradle

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -97,18 +97,14 @@ def enableSeparateBuildPerCPUArchitecture = true
9797
def enableProguardInReleaseBuilds = false
9898

9999
android {
100-
compileSdkVersion 23
101-
buildToolsVersion "26.0.1"
100+
compileSdkVersion 26
102101

103102
defaultConfig {
104103
applicationId "com.allaboutolaf"
105104
minSdkVersion 19
106-
targetSdkVersion 23
105+
targetSdkVersion 26
107106
versionCode 1
108107
versionName "1.0.0"
109-
ndk {
110-
abiFilters "armeabi-v7a", "x86"
111-
}
112108
manifestPlaceholders = [
113109
manifestApplicationId: applicationId,
114110
BUGSNAG_KEY: System.getenv("BUGSNAG_KEY") ?: "",
@@ -150,9 +146,15 @@ android {
150146
android {
151147
dexOptions {
152148
// Skip pre-dexing when running on Travis CI or when disabled via -Dpre-dex=false.
153-
preDexLibraries = preDexEnabled && !travisBuild
149+
preDexLibraries = preDexEnabled && !ciBuild
154150
}
155151
}
152+
configurations.all {
153+
resolutionStrategy.force 'com.android.support:appcompat-v7:26.1.0'
154+
resolutionStrategy.force 'com.android.support:customtabs:26.1.0'
155+
resolutionStrategy.force 'com.google.android.gms:play-services-base:11.8.0'
156+
resolutionStrategy.force 'com.google.android.gms:play-services-maps:11.8.0'
157+
}
156158
}
157159

158160
// borrowed from https://gist.github.com/gabrielemariotti/6856974
@@ -191,21 +193,21 @@ if (propFile.canRead()) {
191193

192194
dependencies {
193195
// please keep this list sorted
194-
compile project(':bugsnag-react-native')
195-
compile project(':react-native-calendar-events')
196-
compile project(':react-native-custom-tabs')
197-
compile project(':react-native-device-info')
198-
compile project(':react-native-google-analytics-bridge')
199-
compile project(':react-native-keychain')
200-
compile project(':react-native-linear-gradient')
201-
compile project(':react-native-maps')
202-
compile project(':react-native-network-info')
203-
compile project(':react-native-restart')
204-
compile project(':react-native-vector-icons')
196+
implementation project(':bugsnag-react-native')
197+
implementation project(':react-native-calendar-events')
198+
implementation project(':react-native-custom-tabs')
199+
implementation project(':react-native-device-info')
200+
implementation project(':react-native-google-analytics-bridge')
201+
implementation project(':react-native-keychain')
202+
implementation project(':react-native-linear-gradient')
203+
implementation project(':react-native-maps')
204+
implementation project(':react-native-network-info')
205+
implementation project(':react-native-restart')
206+
implementation project(':react-native-vector-icons')
205207
// this is for react-native itself
206-
compile fileTree(dir: "libs", include: ["*.jar"])
207-
compile "com.android.support:appcompat-v7:23.0.1"
208-
compile "com.facebook.react:react-native:+" // From node_modules
208+
implementation fileTree(dir: "libs", include: ["*.jar"])
209+
implementation "com.android.support:appcompat-v7:26.1.0"
210+
implementation "com.facebook.react:react-native:+" // From node_modules
209211
}
210212

211213
// Run this once to be able to run the application with BUCK

android/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,18 @@
33
buildscript {
44
repositories {
55
jcenter()
6+
google()
67
}
78
dependencies {
8-
classpath 'com.android.tools.build:gradle:2.2.3'
9+
classpath 'com.android.tools.build:gradle:3.1.0-alpha09'
910

1011
// NOTE: Do not place your application dependencies here; they belong
1112
// in the individual module build.gradle files
1213
}
1314
}
1415

1516
ext {
16-
travisBuild = System.getenv("TRAVIS") == "true"
17+
ciBuild = (System.getenv("CI") ?: "") != ""
1718
// allows for -Dpre-dex=false to be set
1819
preDexEnabled = System.getProperty("pre-dex", "true") == "true"
1920
}
@@ -30,5 +31,6 @@ allprojects {
3031
// react-native-custom-tabs requires this maven repository
3132
url "https://jitpack.io"
3233
}
34+
google()
3335
}
3436
}

android/gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ org.gradle.parallel=true
2525
org.gradle.workers.max=2
2626

2727
android.useDeprecatedNdk=true
28+
android.enableAapt2=false
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
#Tue Jan 23 18:00:48 CST 2018
12
distributionBase=GRADLE_USER_HOME
23
distributionPath=wrapper/dists
34
zipStoreBase=GRADLE_USER_HOME
45
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip

android/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
rootProject.name = 'All About Olaf'
1+
rootProject.name = 'AllAboutOlaf'
22
include ':app'
33

44
// Please keep this list in alphabetical order.

0 commit comments

Comments
 (0)