Skip to content

Commit

Permalink
v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
qiuxiang committed Jun 8, 2020
1 parent 3ede328 commit 0741b87
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 21 deletions.
36 changes: 17 additions & 19 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@ aliases:

- &init-new-project
|
nvm install node
yarn global add react-native-cli
react-native init App --version="0.58.4"
npm i react-native-cli -g
react-native init App
cd App
yarn add react-native-amap-geolocation@next
npm i react-native-amap-geolocation@next

jobs:
include:
Expand Down Expand Up @@ -55,28 +54,27 @@ jobs:

- stage: "build test for new project"
language: android
jdk: oraclejdk8
android: *android
before_cache:
- rm ~/.gradle/caches/modules-2/modules-2.lock
cache: *android-cache
script:
- nvm install node
- *init-new-project
- react-native link
- cd android
- ./gradlew build
- ls -lh app/build/outputs/apk
- cd android && TERM=dumb ./gradlew build
- ls -lh app/build/outputs/apk/debug
- ls -lh app/build/outputs/apk/release

- stage: "build test for new project"
language: objective-c
osx_image: xcode10.1
cache: *ios-cache
script:
- brew install yarn
- *init-new-project
- cd ios
- pod install
- xcodebuild -workspace App.xcworkspace -scheme App -sdk iphonesimulator -quiet
# - stage: "build test for new project"
# language: objective-c
# osx_image: xcode10.1
# cache: *ios-cache
# script:
# - brew install yarn
# - *init-new-project
# - cd ios
# - pod install
# - xcodebuild -workspace App.xcworkspace -scheme App -sdk iphonesimulator -quiet

stages:
- name: "build test for example"
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@
"location",
"geolocation"
],
"version": "1.0.4",
"version": "1.1.0",
"author": "7c00 <[email protected]>",
"repository": {
"type": "git",
"url": "https://github.com/qiuxiang/react-native-amap-geolocation"
},
"license": "MIT",
"files": [
"react-native.config.js",
"lib/js",
"lib/ios",
"lib/android/src",
Expand All @@ -28,7 +29,6 @@
"start": "node node_modules/react-native/local-cli/cli.js start",
"reload": "adb reverse tcp:8081 tcp:8081 && adb shell input text rr",
"run-android": "node node_modules/react-native/local-cli/cli.js run-android",
"log-android": "node node_modules/react-native/local-cli/cli.js log-android",
"release-android": "node node_modules/react-native/local-cli/cli.js run-android --variant=release",
"run-ios": "node node_modules/react-native/local-cli/cli.js run-ios"
},
Expand Down

0 comments on commit 0741b87

Please sign in to comment.