Skip to content

Commit

Permalink
Fix build action
Browse files Browse the repository at this point in the history
  • Loading branch information
qiuxiang committed Feb 13, 2023
1 parent 3b30c68 commit 1166d3b
Show file tree
Hide file tree
Showing 27 changed files with 16 additions and 15 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,20 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: npm pack
- run: npx react-native init example
working-directory: ../
- run: cp index.js ../example/
- run: cp -r example ../example/
- run: npm i ../react-native-amap3d/react-native-amap3d-0.0.0.tgz
working-directory: ../example
- run: cp index.js example/
- run: cp -r example-app example/
- run: npm i ../react-native-amap3d-0.0.0.tgz
working-directory: example
- run: npm i @react-native-picker/picker @react-navigation/native @react-navigation/native-stack react-native-safe-area-context react-native-screens
working-directory: ../example
working-directory: example
- run: sed -i.backup -r 's/(enableSeparateBuildPerCPUArchitecture = )false/\1true/' build.gradle
working-directory: ../example/android/app
working-directory: example/android/app
- run: ./gradlew assembleRelease
working-directory: ../example/android
- uses: actions/upload-artifact@v1
working-directory: example/android
- uses: actions/upload-artifact@v3
with:
name: example.apk
path: ../example/android/app/build/outputs/apk/release/app-arm64-v8a-release.apk
path: example/android/app/build/outputs/apk/release/app-arm64-v8a-release.apk
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ build/
xcuserdata/
Pods/
lib/js/
/android/
/ios/

*.iml
*.xcworkspace
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AppRegistry } from "react-native";
import app from "./example";
import app from "./example-app";

AppRegistry.registerComponent("example", () => app);
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# react-native-amap3d [![][version-badge]][npm] [![](https://github.com/qiuxiang/react-native-amap3d/actions/workflows/build.yml/badge.svg)](https://github.com/qiuxiang/react-native-amap3d/actions/workflows/build.yml)

**注意:该项目处于消极维护状态,随缘更新**
**注意:该项目目前只维护,不加新功能**

react-native 高德地图组件,使用最新 3D SDK,支持 Android + iOS,受 [react-native-maps](https://github.com/airbnb/react-native-maps) 启发,提供功能丰富且易用的接口。

Expand Down Expand Up @@ -42,7 +42,7 @@ npm i react-native-amap3d

```js
import { AMapSdk } from "react-native-amap3d";
import { Platform } from 'react-native';
import { Platform } from "react-native";

AMapSdk.init(
Platform.select({
Expand Down Expand Up @@ -170,7 +170,7 @@ const markers = Array(1000)
### 更多示例
参考 [example](https://github.com/qiuxiang/react-native-amap3d/tree/master/example)。
参考 [example](https://github.com/qiuxiang/react-native-amap3d/tree/master/example-app)。
#### Android
Expand Down

0 comments on commit 1166d3b

Please sign in to comment.