Skip to content

Commit

Permalink
Add an android build tutorial.
Browse files Browse the repository at this point in the history
  • Loading branch information
syalon committed Apr 14, 2019
1 parent ad28616 commit 8842d30
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Only need to adjust `Bundle Identifier` to your app id. Then you can run it dire

## Android Compile

Install [Android Studio](https://developer.android.com/studio)
[Click here to view](android_compile.md)

## Other

Expand Down
2 changes: 1 addition & 1 deletion README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Bitshares Mobile App 是 [Bitshares区块链](https://github.com/bitshares/bitsh
只需要调整 `Bundle Identifier` 为您的应用ID。然后直接在xcode中运行即可。

## Android编译
安装 [Android Studio](https://developer.android.com/studio/)
[点击这里查看](android_compile.md)

## 其他
配置Fabric
Expand Down
109 changes: 109 additions & 0 deletions android_compile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
# Android Test & Build & Sign

## Development Environment

* Microsoft Windows10 1809
* Mac OS X 10.8.5
* Java JDK >= 10
* Android Studio 3.1.3 - 3.2

## Download And Install Java
```
https://www.oracle.com/technetwork/java/javase/downloads/index.html
```

## Install Android Studio
```
https://developer.android.com/studio
```

## Run Android Stduio And Set Android Sdk (Android API 28)
<p>
<a href="#">
<img src="https://raw.githubusercontent.com/yoshikizh/test/master/android-c1.png" alt="" width=600 height=400>
</a>
<a href="#">
<img src="https://raw.githubusercontent.com/yoshikizh/test/master/android-setting-android-sdk.png" alt="" width=600 height=400>
</a>
</p>

## Clone Project
```
git clone https://github.com/bitshares/bitshares-mobile-app.git
```

## Open Project
```
Open the project directory bitshare-mobile-app/android
```
<p>
<a href="#">
<img src="https://raw.githubusercontent.com/yoshikizh/test/master/android-c2.png" alt="" width=600 height=400>
</a>
</p>

## Synchronize Gradle files and install dependencies. Click `File -> Sync Project With Gradle Files`
<p>
<a href="#">
<img src="https://raw.githubusercontent.com/yoshikizh/test/master/android-gradle.png" alt="" width=600 height=400>
</a>
</p>


## A. Click `Run -> Run 'app'` to Test
<p>
<a href="#">
<img src="https://raw.githubusercontent.com/yoshikizh/test/master/android-b1.png" alt="" width=600 height=400>
</a>
</p>


## B. Generate Test Apk Click `Build -> Build APK(s)`
<p>
<a href="#">
<img src="https://raw.githubusercontent.com/yoshikizh/test/master/android-b2.png" alt="" width=600 height=400>
</a>
</p>


## C. Generate Signed Apk Click `Build -> Generate Signed APK`
<p>
<a href="#">
<img src="https://raw.githubusercontent.com/yoshikizh/test/master/android-b3.png" alt="" width=600 height=400>
</a>
</p>

### Click `next`
<p>
<a href="#">
<img src="https://raw.githubusercontent.com/yoshikizh/test/master/android-b4.png" alt="" width=600 height=400>
</a>
</p>

### Click `create new` if there is no keystore
<p>
<a href="#">
<img src="https://raw.githubusercontent.com/yoshikizh/test/master/android-b5.png" alt="" width=600 height=400>
</a>
</p>

### Fill in the keystore information and click ok
<p>
<a href="#">
<img src="https://raw.githubusercontent.com/yoshikizh/test/master/android-b6.png" alt="" width=600 height=400>
</a>
</p>

### Input keystore password and next Step
<p>
<a href="#">
<img src="https://raw.githubusercontent.com/yoshikizh/test/master/android-b7.png" alt="" width=600 height=400>
</a>
</p>

### Finish
<p>
<a href="#">
<img src="https://raw.githubusercontent.com/yoshikizh/test/master/android-b8.png" alt="" width=600 height=400>
</a>
</p>

0 comments on commit 8842d30

Please sign in to comment.