Skip to content

Commit f40b828

Browse files
committed
🔧 Update all example app gradle configs
1 parent e8f3eec commit f40b828

File tree

5 files changed

+11
-17
lines changed

5 files changed

+11
-17
lines changed

example/android/app/build.gradle

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,12 @@ def enableSeparateBuildPerCPUArchitecture = false
9494
def enableProguardInReleaseBuilds = false
9595

9696
android {
97-
compileSdkVersion 23
98-
buildToolsVersion "23.0.1"
97+
compileSdkVersion 26
9998

10099
defaultConfig {
101100
applicationId "com.immutablelistviewexample"
102101
minSdkVersion 16
103-
targetSdkVersion 22
102+
targetSdkVersion 26
104103
versionCode 1
105104
versionName "1.0"
106105
ndk {
@@ -137,9 +136,9 @@ android {
137136
}
138137

139138
dependencies {
140-
compile fileTree(dir: "libs", include: ["*.jar"])
141-
compile "com.android.support:appcompat-v7:23.0.1"
142-
compile "com.facebook.react:react-native:+" // From node_modules
139+
implementation fileTree(dir: "libs", include: ["*.jar"])
140+
implementation "com.android.support:appcompat-v7:26.1.0"
141+
implementation "com.facebook.react:react-native:+" // From node_modules
143142
}
144143

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

example/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.immutablelistviewexample"
3-
android:versionCode="1"
4-
android:versionName="1.0">
2+
package="com.immutablelistviewexample">
53

64
<uses-permission android:name="android.permission.INTERNET" />
75
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
86

9-
<uses-sdk
10-
android:minSdkVersion="16"
11-
android:targetSdkVersion="22" />
12-
137
<application
148
android:name=".MainApplication"
159
android:allowBackup="true"

example/android/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
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.4.1'
910

1011
// NOTE: Do not place your application dependencies here; they belong
1112
// in the individual module build.gradle files
@@ -20,5 +21,6 @@ allprojects {
2021
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
2122
url "$rootDir/../node_modules/react-native/android"
2223
}
24+
google()
2325
}
2426
}

example/android/gradle.properties

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,3 @@
1616
# This option should only be used with decoupled projects. More details, visit
1717
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
1818
# org.gradle.parallel=true
19-
20-
android.useDeprecatedNdk=true
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
#Tue Jun 04 16:14:17 EDT 2019
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-5.1.1-all.zip

0 commit comments

Comments
 (0)