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.
Bump Android SDK to 28, Build Tools to 28.0.2, Gradle to 4.7, Gradle …
…Plugin to 3.2.0 (facebook#21632) Summary: This PR is bumping compileSdkVersion to 28, buildToolsVersion to 28.0.2, Gradle to 4.7, Android Gradle plugin to 3.2.0. Gradle 4.7 added support for Java 10 and 11. allow-large-files Release Notes: -------------- [ANDROID] [ENHANCEMENT] [SDK] - bump to 28 Pull Request resolved: facebook#21632 Reviewed By: mdvacca Differential Revision: D13084836 Pulled By: hramos fbshipit-source-id: e0f493881e80e87faf8c3ef1ac77044495966a49
- Loading branch information
1 parent
c45d290
commit 9d00d4d
Showing
12 changed files
with
68 additions
and
20 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,6 +1,6 @@ | ||
|
||
[android] | ||
target = android-27 | ||
target = android-28 | ||
|
||
[download] | ||
max_number_of_retries = 3 | ||
|
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 |
---|---|---|
|
@@ -23,8 +23,8 @@ LABEL maintainer="Héctor Ramos <[email protected]>" | |
|
||
# set default build arguments | ||
ARG SDK_VERSION=sdk-tools-linux-3859397.zip | ||
ARG ANDROID_BUILD_VERSION=27 | ||
ARG ANDROID_TOOLS_VERSION=27.0.3 | ||
ARG ANDROID_BUILD_VERSION=28 | ||
ARG ANDROID_TOOLS_VERSION=28.0.2 | ||
ARG BUCK_VERSION=v2018.10.29.01 | ||
ARG NDK_VERSION=17c | ||
ARG NODE_VERSION=8.10.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
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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
environment: | ||
ANDROID_HOME: "C:\\android-sdk-windows" | ||
ANDROID_NDK: "C:\\android-sdk-windows\\android-ndk-r17b" | ||
ANDROID_BUILD_VERSION: 28 | ||
ANDROID_TOOLS_VERSION: 28.0.2 | ||
|
||
GRADLE_OPTS: -Dorg.gradle.daemon=false | ||
|
||
SDK_TOOLS_URL: https://dl.google.com/android/repository/sdk-tools-windows-3859397.zip | ||
NDK_TOOLS_URL: https://dl.google.com/android/repository/android-ndk-r17c-windows-x86_64.zip | ||
|
||
matrix: | ||
- nodejs_version: 8 | ||
- nodejs_version: 10 | ||
|
||
install: | ||
# Install Android SDK Tools | ||
- mkdir "%ANDROID_HOME%" | ||
- appveyor DownloadFile "%SDK_TOOLS_URL%" -FileName "%TMP%/sdk-tools.zip" | ||
- 7z x "%TMP%/sdk-tools.zip" -o"%ANDROID_HOME%" > nul | ||
- set PATH=%PATH%;"%ANDROID_HOME%\tools\bin" | ||
|
||
- yes 2> nul | sdkmanager --licenses > nul | ||
- sdkmanager "system-images;android-19;google_apis;armeabi-v7a" | ||
- sdkmanager "platforms;android-%ANDROID_BUILD_VERSION%" | ||
- sdkmanager "build-tools;%ANDROID_TOOLS_VERSION%" | ||
- sdkmanager "add-ons;addon-google_apis-google-23" | ||
- sdkmanager "extras;android;m2repository" | ||
|
||
- appveyor DownloadFile "%NDK_TOOLS_URL%" -FileName "%TMP%/ndk.zip" | ||
- 7z x "%TMP%/ndk.zip" -o"%ANDROID_HOME%" > nul | ||
|
||
- ps: Install-Product node $env:nodejs_version | ||
- node --version | ||
- yarn --version | ||
- appveyor-retry yarn install | ||
|
||
build_script: | ||
- gradlew.bat RNTester:android:app:assembleRelease | ||
|
||
test_script: | ||
- npm test | ||
|
||
cache: | ||
- node_modules | ||
- "%LOCALAPPDATA%/Yarn" | ||
- "%USERPROFILE%/.gradle/caches" | ||
- "%USERPROFILE%/.gradle/wrapper" |
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
Binary file not shown.
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 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.7-all.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip |
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