-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
Summary: Android Target API Level 26 will be required starting from August 2018, it's so soon 😄.Read https://android-developers.googleblog.com/2017/12/improving-app-security-and-performance.html This PR uses android build tools 26.0.2, support library 26.1.0 (with android lifecycle) and setting compileSdkVersion to 26, but leaving minSdkVersion and targetSdkVersion intact, which will make targeting 26 easy. Circle CI: https://circleci.com/gh/dulmandakh/react-native/209 Everything will build and work just fine. [ANDROID] [ENHANCEMENT] [TOOLS] - Use android build-tools 26.0.2 and set compileSdk to 26, and use support library version 26.1.0. Closes #19662 Differential Revision: D8398855 Pulled By: hramos fbshipit-source-id: a4066eb04cb5f947efe1f3202b638c1092b79aae
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
|
||
[android] | ||
target = Google Inc.:Google APIs:23 | ||
target = android-26 | ||
|
||
[download] | ||
max_number_of_retries = 3 | ||
|
||
[maven_repositories] | ||
central = https://repo1.maven.org/maven2 | ||
google = https://maven.google.com | ||
|
||
[alias] | ||
rntester = //RNTester/android/app:app |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,102 @@ | ||
android_prebuilt_aar( | ||
android_library( | ||
name = "lib-support-v4", | ||
aar = ":lib-support-v4-binary-aar", | ||
exported_deps = [ | ||
":lib-support-v4-support-compat", | ||
":lib-support-v4-support-core-utils", | ||
":lib-support-v4-support-core-ui", | ||
":lib-support-v4-support-media-compat", | ||
":lib-support-v4-support-fragment", | ||
":android-lifecycle-runtime", | ||
":android-lifecycle-common.jar", | ||
":android-lifecycle-core.jar" | ||
], | ||
visibility = ["PUBLIC"], | ||
) | ||
|
||
prebuilt_jar( | ||
name = "android-lifecycle-common.jar", | ||
binary_jar = ":android-lifecycle-common-jar" | ||
) | ||
|
||
prebuilt_jar( | ||
name = "android-lifecycle-core.jar", | ||
binary_jar = ":android-lifecycle-core-jar" | ||
) | ||
|
||
android_prebuilt_aar( | ||
name = "android-lifecycle-runtime", | ||
aar = ":android-lifecycle-runtime-aar", | ||
) | ||
|
||
android_prebuilt_aar( | ||
name = "lib-support-v4-support-compat", | ||
aar = ":lib-support-v4-support-compat-aar", | ||
) | ||
|
||
android_prebuilt_aar( | ||
name = "lib-support-v4-support-core-utils", | ||
aar = ":lib-support-v4-support-core-utils-aar", | ||
) | ||
|
||
android_prebuilt_aar( | ||
name = "lib-support-v4-support-core-ui", | ||
aar = ":lib-support-v4-support-core-ui-aar", | ||
) | ||
|
||
android_prebuilt_aar( | ||
name = "lib-support-v4-support-media-compat", | ||
aar = ":lib-support-v4-support-media-compat-aar", | ||
) | ||
|
||
android_prebuilt_aar( | ||
name = "lib-support-v4-support-fragment", | ||
aar = ":lib-support-v4-support-fragment-aar", | ||
) | ||
|
||
remote_file( | ||
name = "android-lifecycle-runtime-aar", | ||
sha1 = "30c60a8a357ee1321ffd0c9f08ef54b24045cd10", | ||
url = "mvn:android.arch.lifecycle:runtime:aar:1.0.0" | ||
) | ||
|
||
remote_file( | ||
name = "lib-support-v4-binary-aar", | ||
sha1 = "9e8da0e4ecf9f63258c7fbd273889252cba2d0c3", | ||
url = "mvn:com.android.support:support-v4:aar:23.0.1", | ||
name = "android-lifecycle-common-jar", | ||
sha1 = "e414a4cb28434e25c4f6aa71426eb20cf4874ae9", | ||
url = "mvn:android.arch.lifecycle:common:jar:1.0.0" | ||
) | ||
|
||
remote_file( | ||
name = "android-lifecycle-core-jar", | ||
sha1 = "a2d487452376193fc8c103dd2b9bd5f2b1b44563", | ||
url = "mvn:android.arch.core:common:jar:1.0.0" | ||
) | ||
|
||
remote_file( | ||
name = "lib-support-v4-support-compat-aar", | ||
sha1 = "1e1c8ffc01d277d8f01dfd11d5d2ce3a2af4b98c", | ||
url = "mvn:com.android.support:support-compat:aar:26.1.0", | ||
) | ||
|
||
remote_file( | ||
name = "lib-support-v4-support-core-utils-aar", | ||
sha1 = "1bfaae21c4d5c5532c5e732071e9ce234cd58cff", | ||
url = "mvn:com.android.support:support-core-utils:aar:26.1.0", | ||
) | ||
|
||
remote_file( | ||
name = "lib-support-v4-support-core-ui-aar", | ||
sha1 = "e306308d54052a1ded7bf9c2f5c2fdf5152a1f22", | ||
url = "mvn:com.android.support:support-core-ui:aar:26.1.0", | ||
) | ||
|
||
remote_file( | ||
name = "lib-support-v4-support-media-compat-aar", | ||
sha1 = "09fb587f27cde19aa8f2e50c5c9ee645d9aec44d", | ||
url = "mvn:com.android.support:support-media-compat:aar:26.1.0", | ||
) | ||
|
||
remote_file( | ||
name = "lib-support-v4-support-fragment-aar", | ||
sha1 = "ddacf369bb98dd6558606558de8ddcd53895cf91", | ||
url = "mvn:com.android.support:support-fragment:aar:26.1.0", | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
dependencies { | ||
compile fileTree(dir: "libs", include: ["*.jar"]) | ||
compile "com.android.support:appcompat-v7:23.0.1" | ||
compile "com.facebook.react:react-native:0.18.+" | ||
compile "com.android.support:appcompat-v7:26.1.0" | ||
compile "com.facebook.react:react-native:+" | ||
} |
3 comments
on commit 065c5b6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you targeting API 26 and not 27? Buildtools 26.X.X is already considered outdated by Gradle Android Plugin 3.X.X. Seems weird to only target the minimum required by Google, as opposed to the recommended version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any planned changes to update minSdk?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can change it for your project as you wish. For August version or 0.57, we'll update targetSdk to 26, requirement from Play Store.
@dulmandakh Is it intentional to go 26.1.0 here? Just wondering since
buildToolsVersion
is specified as 26.0.2 above (26.0.3 in the latests version on the master branch). Note that I'm not that well versed in native Android development, just curious about the mismatch of version strings.