File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # [ React Native] ( https://facebook.github.io/react-native/ ) · ; [ ![ Circle CI Status] ( https://circleci.com/gh/facebook/react-native.svg?style=shield )] ( https://circleci.com/gh/facebook/react-native ) [ ![ npm version] ( https://badge.fury.io/js/react-native.svg )] ( https://badge.fury.io/js/react-native ) [ ![ PRs Welcome] ( https://img.shields.io/badge/PRs-welcome-brightgreen.svg )] ( CONTRIBUTING.md#pull-requests )
1+ # [ React Native] ( https://facebook.github.io/react-native/ ) · ; [ ![ Circle CI Status] ( https://circleci.com/gh/facebook/react-native.svg?style=shield )] ( https://circleci.com/gh/facebook/react-native ) [ ![ Build status ] ( https://ci.appveyor.com/api/projects/status/github/facebook/react-native?branch=master&svg=true )] ( https://ci.appveyor.com/project/facebok/react-native/branch/master ) [ ![ npm version] ( https://badge.fury.io/js/react-native.svg )] ( https://badge.fury.io/js/react-native ) [ ![ PRs Welcome] ( https://img.shields.io/badge/PRs-welcome-brightgreen.svg )] ( CONTRIBUTING.md#pull-requests )
22
33Learn once, write anywhere: Build mobile apps with React.
44
Original file line number Diff line number Diff line change 1+ environment :
2+ ANDROID_HOME : " C:\\ android-sdk-windows"
3+ ANDROID_NDK : " C:\\ android-sdk-windows\\ android-ndk-r10e"
4+ ANDROID_BUILD_VERSION : 26
5+ ANDROID_TOOLS_VERSION : 26.0.3
6+
7+ GRADLE_OPTS : -Dorg.gradle.daemon=false
8+
9+ SDK_TOOLS_URL : https://dl.google.com/android/repository/sdk-tools-windows-3859397.zip
10+ NDK_TOOLS_URL : https://dl.google.com/android/repository/android-ndk-r10e-windows-x86_64.zip
11+
12+ matrix :
13+ - nodejs_version : 8
14+ - nodejs_version : 10
15+
16+ install :
17+ # Install Android SDK Tools
18+ - mkdir "%ANDROID_HOME%"
19+ - appveyor DownloadFile "%SDK_TOOLS_URL%" -FileName "%TMP%/sdk-tools.zip"
20+ - 7z x "%TMP%/sdk-tools.zip" -o"%ANDROID_HOME%" > nul
21+ - set PATH=%PATH%;"%ANDROID_HOME%\tools\bin"
22+
23+ - yes 2> nul | sdkmanager --licenses > nul
24+ - sdkmanager "system-images;android-19;google_apis;armeabi-v7a"
25+ - sdkmanager "platforms;android-%ANDROID_BUILD_VERSION%"
26+ - sdkmanager "build-tools;%ANDROID_TOOLS_VERSION%"
27+ - sdkmanager "add-ons;addon-google_apis-google-23"
28+ - sdkmanager "extras;android;m2repository"
29+
30+ - appveyor DownloadFile "%NDK_TOOLS_URL%" -FileName "%TMP%/ndk.zip"
31+ - 7z x "%TMP%/ndk.zip" -o"%ANDROID_HOME%" > nul
32+
33+ - ps : Install-Product node $env:nodejs_version
34+ - node --version
35+ - npm --version
36+ - appveyor-retry npm install
37+
38+ build_script :
39+ - gradlew.bat RNTester:android:app:assembleRelease
40+
41+ test_script :
42+ - npm test
You can’t perform that action at this time.
0 commit comments