Skip to content

Commit 56762b7

Browse files
authored
Merge pull request #2 from xianshenglu/dev
v0.3.1
2 parents 1730371 + 579d3c4 commit 56762b7

9 files changed

Lines changed: 3244 additions & 199 deletions

File tree

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Android Build ## name of the workflow
2+
3+
on:
4+
push:
5+
branches:
6+
- '!main'
7+
8+
jobs:
9+
android-build:
10+
name: Android Build
11+
runs-on: ubuntu-latest # using ubuntu latest version / or you can use a specific version
12+
13+
steps:
14+
- name: Check out Git repository # clone the repo to local ci workspace
15+
uses: actions/checkout@v2
16+
17+
- name: Set up our JDK environment # setup JDK environment: mandatory as we need to build android project
18+
uses: actions/setup-java@v1.4.3
19+
with:
20+
java-version: 1.8
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
# configure cash for gradle : will help to reduce build time
26+
- name: Cache Gradle Wrapper
27+
uses: actions/cache@v2
28+
with:
29+
path: ~/.gradle/wrapper
30+
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
31+
32+
- name: Cache Gradle Dependencies
33+
uses: actions/cache@v2
34+
with:
35+
path: ~/.gradle/caches
36+
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
37+
restore-keys: |
38+
${{ runner.os }}-gradle-caches-
39+
- name: Make Gradlew Executable
40+
run: cd android && chmod +x ./gradlew
41+
42+
- name: Generate App APK
43+
run: |
44+
cd android && ./gradlew assembleRelease --no-daemon
45+
46+
## sign generated apk
47+
- name: Sign APK
48+
id: sign_app
49+
uses: r0adkll/sign-android-release@v1
50+
with:
51+
releaseDirectory: android/app/build/outputs/apk/release
52+
signingKeyBase64: ${{ secrets.MYAPP_UPLOAD_STORE_FILE_BASE64 }}
53+
alias: ${{ secrets.MYAPP_UPLOAD_KEY_ALIAS }}
54+
keyStorePassword: ${{ secrets.MYAPP_UPLOAD_STORE_PASSWORD }}
55+
keyPassword: ${{ secrets.MYAPP_UPLOAD_KEY_PASSWORD }}
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
name: Android Build ## name of the workflow
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
android-build:
13+
name: Android Build
14+
runs-on: ubuntu-latest # using ubuntu latest version / or you can use a specific version
15+
16+
steps:
17+
- name: Check out Git repository # clone the repo to local ci workspace
18+
uses: actions/checkout@v2
19+
20+
- name: Set up our JDK environment # setup JDK environment: mandatory as we need to build android project
21+
uses: actions/setup-java@v1.4.3
22+
with:
23+
java-version: 1.8
24+
25+
- name: Install dependencies
26+
run: npm ci
27+
28+
# configure cash for gradle : will help to reduce build time
29+
- name: Cache Gradle Wrapper
30+
uses: actions/cache@v2
31+
with:
32+
path: ~/.gradle/wrapper
33+
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
34+
35+
- name: Cache Gradle Dependencies
36+
uses: actions/cache@v2
37+
with:
38+
path: ~/.gradle/caches
39+
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
40+
restore-keys: |
41+
${{ runner.os }}-gradle-caches-
42+
- name: Make Gradlew Executable
43+
run: cd android && chmod +x ./gradlew
44+
45+
- name: Generate App APK
46+
run: |
47+
cd android && ./gradlew assembleRelease --no-daemon
48+
49+
## sign generated apk
50+
- name: Sign APK
51+
id: sign_app
52+
uses: r0adkll/sign-android-release@v1
53+
with:
54+
releaseDirectory: android/app/build/outputs/apk/release
55+
signingKeyBase64: ${{ secrets.MYAPP_UPLOAD_STORE_FILE_BASE64 }}
56+
alias: ${{ secrets.MYAPP_UPLOAD_KEY_ALIAS }}
57+
keyStorePassword: ${{ secrets.MYAPP_UPLOAD_STORE_PASSWORD }}
58+
keyPassword: ${{ secrets.MYAPP_UPLOAD_KEY_PASSWORD }}
59+
60+
- name: Changelog
61+
run: |
62+
git config --local user.email "xianshenglu@qq.com"
63+
git config --local user.name "xianshenglu"
64+
npm run changelog
65+
git push --follow-tags
66+
67+
- name: 'Get Previous tag'
68+
id: previous_tag
69+
uses: "WyriHaximus/github-action-get-previous-tag@v1"
70+
with:
71+
fallback: 1.0.0
72+
73+
- name: Release
74+
uses: softprops/action-gh-release@v1
75+
with:
76+
tag_name: ${{steps.previous_tag.outputs.tag}}
77+
files: ${{steps.sign_app.outputs.signedReleaseFile}}
78+
79+
80+
81+
## Distribute app to Firebase App Distribution for testing / use google play internal track if you have a google play account
82+
# - name: upload artifact to Firebase App Distribution
83+
# uses: wzieba/Firebase-Distribution-Github-Action@v1
84+
# with:
85+
# appId: ${{secrets.ANDROID_FIREBASE_APP_ID}}
86+
# token: ${{secrets.ANDROID_FIREBASE_TOKEN}}
87+
# groups: testers
88+
# file: ${{steps.sign_app.outputs.signedReleaseFile}}

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tag-version-prefix=""

.versionrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"tag-prefix": ""
3+
}

CHANGELOG.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# 0.3.0 (2022-04-29)
2+
3+
### Bug Fixes
4+
5+
* fix hardcoded response test url ([608ebaf](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/608ebaf3021f14a5967f3811abc120bc682f2e8b))
6+
7+
8+
### Features
9+
10+
* **TestStatistics:** add totalRespond and totalDownload columns ([e98e1f1](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/e98e1f164a7f80a3f3282fbfd2ffe4db9866c1e1))
11+
* **TestStatistics:** give hide some columns option ([0a991ef](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/0a991eff74ed2415c926f258c5946b57c5d3321a))
12+
* **TestRun:** move data unit to table header ([df627fe](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/df627fe698c2e09bc8be17699e6e03c6e274bda4))
13+
* **TestStatistics:** add option to show all data ([485c37f](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/485c37f1e28fafbb85d1f7d79e934c8b6c21006b))
14+
15+
# 0.2.0 (2022-04-28)
16+
17+
### Features
18+
19+
* **TestRun:** reduce the font size ([64e72bc](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/64e72bc042ba9ae447f0bbc8b2463202fd658934))
20+
* **TestRun:** start test and download when user clicks start button ([9e5b09b](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/9e5b09bc1a3164c4f63ab65888816dc27d3e2a82))
21+
22+
23+
# 0.1.0 (2022-04-27)
24+
25+
### Bug Fixes
26+
27+
* avoid init table data when test ip count changes ([97db0d6](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/97db0d62c39056f64c8f31d818bb063f5eff7b64))
28+
* correct respond and speed sort function ([411e602](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/411e60296eef4ff9625c9925f1887bef4e113606))
29+
* fix downloadSpeed reset bug ([c2d0e99](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/c2d0e99059de59c3395003f4670b0e94f86cbf05))
30+
* fix ip sort ([8486214](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/8486214cb7df37db8c96f801192bc23f68d0cdd1))
31+
* fix TestStatistics not auto update bug ([11cb4c5](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/11cb4c5ab2031227425df5e902140d31c0a00bde))
32+
* remove button fontSize change ([09ebab3](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/09ebab309500df09731c0bfaaa27f635de0dd3fe))
33+
* remove testIpCount dev config ([599101b](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/599101b53f9c100d22a9e88356670f3f306eff45))
34+
* replace setState with callback ([b719d23](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/b719d23504f40351abeb76c20919c66743ffb387))
35+
* set smaller fontSize for TestStatistics row data ([d304e32](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/d304e3268050212d4efb2e1da830f2d2dcbec228))
36+
* set smaller fontSize in TestStatistics page ([13154a0](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/13154a070ff6ca26b40ce9f76d38980f7eed3290))
37+
* **TestRun:** correct table header labels ([7635076](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/76350768fedb9da8698d56796a3a150b26710cee))
38+
* **TestRun:** fix download error not show bug ([20759f6](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/20759f6b79dc3ed268ea2bf8d150019c410b43be))
39+
40+
41+
### Features
42+
43+
* add basic function ([2c4676e](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/2c4676e9d2ff6d3e4c5edb231a861e315f544880))
44+
* add basic Test Statistics page ([3913289](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/39132899e4729f977ec20d365acee759983aa049))
45+
* add cloudflare test url ([e50751f](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/e50751fb94361bd03cf1ec2a20f0ea9bdeb20de1))
46+
* add coCurrent count ([50abd80](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/50abd80f48f404edbe72196e70bdf9608591c86a))
47+
* add ip reset function ([a5cc005](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/a5cc00509edbeee38dada7af87ab757fbe5be517))
48+
* add localization ([0271a23](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/0271a239309557be7b1de1d58a415bdd66ff837d))
49+
* add packetLossRate column ([d7678a8](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/d7678a83a7fa6cd9f2b27e39b9751144b809ba8f))
50+
* add test url ([f3bba19](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/f3bba19b0dd9615f98c6591eae916ed53cfcccba))
51+
* add TestStatistics page ([d928d7c](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/d928d7cb2697776a6729954530a6723ff2fee56c))
52+
* allow text selection in table ([7794f08](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/7794f085d7da2f1b0d98fd6946e733e13fadc5dd))
53+
* change reset to start ([6f5cb7f](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/6f5cb7f4e95416dae4c9ef662cc85c3ff353509a))
54+
* clear test data before starting ([e4d4f3e](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/e4d4f3e5d1b143312126372584ba954038b37d22))
55+
* remove col column ([2120efd](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/2120efd499e179f718188b7751f4e911835a8309))
56+
* remove default sort option after sorting ([7aec7ed](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/7aec7ed0b1e367ed83e54252dc968570ee861737))
57+
* remove title in TestStatistics ([1f10c18](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/1f10c184287620d24b755c94c5ccb9460af80c44))
58+
* replace button with react-native-paper button ([131dec9](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/131dec9ba1adc7a90ba970698a633d0803796c9c))
59+
* **TestStatistics:** add sort function ([1d7a8ee](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/1d7a8ee68b33ae88347d6c72ba8a0079464eb3fc))
60+
* **TestStatistics:** add storage function ([6cedff7](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/6cedff7e0b75bf28e6c7409af0cd402d1a2bc36b))

README-ZH.MD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# cloudflare-ip-tester-app
22

33
[ENGLISH](./README.MD)
4+
45
### 灵感来源于
56

67
- [CloudflareSpeedTest](https://github.com/XIU2/CloudflareSpeedTest)

0 commit comments

Comments
 (0)