forked from microsoft/react-native-macos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use android build-tools 26.0.2 and set compileSdk to 26 (facebook#19662)
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 facebook#19662 Differential Revision: D8398855 Pulled By: hramos fbshipit-source-id: a4066eb04cb5f947efe1f3202b638c1092b79aae
- Loading branch information
1 parent
4f0b9e2
commit 065c5b6
Showing
11 changed files
with
119 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
101 changes: 96 additions & 5 deletions
101
ReactAndroid/src/main/third-party/android/support/v4/BUCK
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:+" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters