Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.3.1 #2

Merged
merged 10 commits into from
Apr 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/android_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Android Build ## name of the workflow

on:
push:
branches:
- '!main'

jobs:
android-build:
name: Android Build
runs-on: ubuntu-latest # using ubuntu latest version / or you can use a specific version

steps:
- name: Check out Git repository # clone the repo to local ci workspace
uses: actions/checkout@v2

- name: Set up our JDK environment # setup JDK environment: mandatory as we need to build android project
uses: actions/[email protected]
with:
java-version: 1.8

- name: Install dependencies
run: npm ci

# configure cash for gradle : will help to reduce build time
- name: Cache Gradle Wrapper
uses: actions/cache@v2
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}

- name: Cache Gradle Dependencies
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-caches-
- name: Make Gradlew Executable
run: cd android && chmod +x ./gradlew

- name: Generate App APK
run: |
cd android && ./gradlew assembleRelease --no-daemon

## sign generated apk
- name: Sign APK
id: sign_app
uses: r0adkll/sign-android-release@v1
with:
releaseDirectory: android/app/build/outputs/apk/release
signingKeyBase64: ${{ secrets.MYAPP_UPLOAD_STORE_FILE_BASE64 }}
alias: ${{ secrets.MYAPP_UPLOAD_KEY_ALIAS }}
keyStorePassword: ${{ secrets.MYAPP_UPLOAD_STORE_PASSWORD }}
keyPassword: ${{ secrets.MYAPP_UPLOAD_KEY_PASSWORD }}
88 changes: 88 additions & 0 deletions .github/workflows/android_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: Android Build ## name of the workflow

on:
push:
branches:
- main

permissions:
contents: write

jobs:
android-build:
name: Android Build
runs-on: ubuntu-latest # using ubuntu latest version / or you can use a specific version

steps:
- name: Check out Git repository # clone the repo to local ci workspace
uses: actions/checkout@v2

- name: Set up our JDK environment # setup JDK environment: mandatory as we need to build android project
uses: actions/[email protected]
with:
java-version: 1.8

- name: Install dependencies
run: npm ci

# configure cash for gradle : will help to reduce build time
- name: Cache Gradle Wrapper
uses: actions/cache@v2
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}

- name: Cache Gradle Dependencies
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-caches-
- name: Make Gradlew Executable
run: cd android && chmod +x ./gradlew

- name: Generate App APK
run: |
cd android && ./gradlew assembleRelease --no-daemon

## sign generated apk
- name: Sign APK
id: sign_app
uses: r0adkll/sign-android-release@v1
with:
releaseDirectory: android/app/build/outputs/apk/release
signingKeyBase64: ${{ secrets.MYAPP_UPLOAD_STORE_FILE_BASE64 }}
alias: ${{ secrets.MYAPP_UPLOAD_KEY_ALIAS }}
keyStorePassword: ${{ secrets.MYAPP_UPLOAD_STORE_PASSWORD }}
keyPassword: ${{ secrets.MYAPP_UPLOAD_KEY_PASSWORD }}

- name: Changelog
run: |
git config --local user.email "[email protected]"
git config --local user.name "xianshenglu"
npm run changelog
git push --follow-tags

- name: 'Get Previous tag'
id: previous_tag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
with:
fallback: 1.0.0

- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{steps.previous_tag.outputs.tag}}
files: ${{steps.sign_app.outputs.signedReleaseFile}}



## Distribute app to Firebase App Distribution for testing / use google play internal track if you have a google play account
# - name: upload artifact to Firebase App Distribution
# uses: wzieba/Firebase-Distribution-Github-Action@v1
# with:
# appId: ${{secrets.ANDROID_FIREBASE_APP_ID}}
# token: ${{secrets.ANDROID_FIREBASE_TOKEN}}
# groups: testers
# file: ${{steps.sign_app.outputs.signedReleaseFile}}
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tag-version-prefix=""
3 changes: 3 additions & 0 deletions .versionrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"tag-prefix": ""
}
60 changes: 60 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# 0.3.0 (2022-04-29)

### Bug Fixes

* fix hardcoded response test url ([608ebaf](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/608ebaf3021f14a5967f3811abc120bc682f2e8b))


### Features

* **TestStatistics:** add totalRespond and totalDownload columns ([e98e1f1](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/e98e1f164a7f80a3f3282fbfd2ffe4db9866c1e1))
* **TestStatistics:** give hide some columns option ([0a991ef](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/0a991eff74ed2415c926f258c5946b57c5d3321a))
* **TestRun:** move data unit to table header ([df627fe](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/df627fe698c2e09bc8be17699e6e03c6e274bda4))
* **TestStatistics:** add option to show all data ([485c37f](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/485c37f1e28fafbb85d1f7d79e934c8b6c21006b))

# 0.2.0 (2022-04-28)

### Features

* **TestRun:** reduce the font size ([64e72bc](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/64e72bc042ba9ae447f0bbc8b2463202fd658934))
* **TestRun:** start test and download when user clicks start button ([9e5b09b](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/9e5b09bc1a3164c4f63ab65888816dc27d3e2a82))


# 0.1.0 (2022-04-27)

### Bug Fixes

* avoid init table data when test ip count changes ([97db0d6](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/97db0d62c39056f64c8f31d818bb063f5eff7b64))
* correct respond and speed sort function ([411e602](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/411e60296eef4ff9625c9925f1887bef4e113606))
* fix downloadSpeed reset bug ([c2d0e99](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/c2d0e99059de59c3395003f4670b0e94f86cbf05))
* fix ip sort ([8486214](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/8486214cb7df37db8c96f801192bc23f68d0cdd1))
* fix TestStatistics not auto update bug ([11cb4c5](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/11cb4c5ab2031227425df5e902140d31c0a00bde))
* remove button fontSize change ([09ebab3](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/09ebab309500df09731c0bfaaa27f635de0dd3fe))
* remove testIpCount dev config ([599101b](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/599101b53f9c100d22a9e88356670f3f306eff45))
* replace setState with callback ([b719d23](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/b719d23504f40351abeb76c20919c66743ffb387))
* set smaller fontSize for TestStatistics row data ([d304e32](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/d304e3268050212d4efb2e1da830f2d2dcbec228))
* set smaller fontSize in TestStatistics page ([13154a0](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/13154a070ff6ca26b40ce9f76d38980f7eed3290))
* **TestRun:** correct table header labels ([7635076](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/76350768fedb9da8698d56796a3a150b26710cee))
* **TestRun:** fix download error not show bug ([20759f6](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/20759f6b79dc3ed268ea2bf8d150019c410b43be))


### Features

* add basic function ([2c4676e](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/2c4676e9d2ff6d3e4c5edb231a861e315f544880))
* add basic Test Statistics page ([3913289](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/39132899e4729f977ec20d365acee759983aa049))
* add cloudflare test url ([e50751f](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/e50751fb94361bd03cf1ec2a20f0ea9bdeb20de1))
* add coCurrent count ([50abd80](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/50abd80f48f404edbe72196e70bdf9608591c86a))
* add ip reset function ([a5cc005](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/a5cc00509edbeee38dada7af87ab757fbe5be517))
* add localization ([0271a23](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/0271a239309557be7b1de1d58a415bdd66ff837d))
* add packetLossRate column ([d7678a8](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/d7678a83a7fa6cd9f2b27e39b9751144b809ba8f))
* add test url ([f3bba19](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/f3bba19b0dd9615f98c6591eae916ed53cfcccba))
* add TestStatistics page ([d928d7c](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/d928d7cb2697776a6729954530a6723ff2fee56c))
* allow text selection in table ([7794f08](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/7794f085d7da2f1b0d98fd6946e733e13fadc5dd))
* change reset to start ([6f5cb7f](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/6f5cb7f4e95416dae4c9ef662cc85c3ff353509a))
* clear test data before starting ([e4d4f3e](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/e4d4f3e5d1b143312126372584ba954038b37d22))
* remove col column ([2120efd](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/2120efd499e179f718188b7751f4e911835a8309))
* remove default sort option after sorting ([7aec7ed](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/7aec7ed0b1e367ed83e54252dc968570ee861737))
* remove title in TestStatistics ([1f10c18](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/1f10c184287620d24b755c94c5ccb9460af80c44))
* replace button with react-native-paper button ([131dec9](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/131dec9ba1adc7a90ba970698a633d0803796c9c))
* **TestStatistics:** add sort function ([1d7a8ee](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/1d7a8ee68b33ae88347d6c72ba8a0079464eb3fc))
* **TestStatistics:** add storage function ([6cedff7](https://github.com/xianshenglu/cloudflare-ip-tester-app/commit/6cedff7e0b75bf28e6c7409af0cd402d1a2bc36b))
1 change: 1 addition & 0 deletions README-ZH.MD
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# cloudflare-ip-tester-app

[ENGLISH](./README.MD)

### 灵感来源于

- [CloudflareSpeedTest](https://github.com/XIU2/CloudflareSpeedTest)
Expand Down
Loading