This repository has been archived by the owner on Jan 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Add referer header for requests to HocVienTruyenTranh
- Correctly use referer header for requests to HocVienTruyenTranh. - Migrate from kotlin synthetic to databinding. - Remove firebase crash report. - Databinding everywhere, head scratched over refactoring. - Strip dependencies for reader view. Smoother scroll on webtoon view. - Remove gc call on recyclerview's item recycled event, let it lag once only when JVM decides to collect gabage.
- Loading branch information
1 parent
f6c3613
commit 8a2e1f9
Showing
54 changed files
with
835 additions
and
1,476 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,32 +12,73 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout commit | ||
uses: actions/checkout@v2 | ||
- uses: actions/checkout@v2 | ||
- name: Create version and tag | ||
id: tag_version | ||
run: | | ||
echo "::set-output name=new_tag::v$(grep 'version=' gradle.properties | grep -oE '[0-9]+\.[0-9]+\.[0-9]+')" && | ||
echo "::set-output name=new_version::$(grep 'version=' gradle.properties | grep -oE '[0-9]+\.[0-9]+\.[0-9]+')" && | ||
echo "::set-output name=full_tag::v$(grep 'version=' gradle.properties | grep -oE '[0-9]+\.[0-9]+\.[0-9]+*')" && | ||
echo "::set-output name=snapshot_date::$(date -Iseconds)" | ||
- name: Setup signing information | ||
env: | ||
KEY_FILE: ${{ secrets.signingKeyBase64 }} | ||
run: echo "$KEY_FILE" | openssl base64 -d > signingKey.jks | ||
- name: Build release apk | ||
- name: set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Build apk | ||
env: | ||
KEY_STORE_PWD: ${{ secrets.keyStorePassword }} | ||
KEY_ALIAS: ${{ secrets.alias }} | ||
KEY_PWD: ${{ secrets.keyPassword }} | ||
uses: vgaidarji/[email protected] | ||
with: | ||
args: "./gradlew signingReport && ./gradlew :app:assembleRelease --stacktrace" | ||
run: | | ||
./gradlew signingReport && | ||
./gradlew :app:assembleRelease --stacktrace | ||
- name: Cleanup signing information | ||
run: rm signingKey.jks | ||
- name: Get version code and name | ||
run: | | ||
echo "::set-env name=VER_CODE::$(cat app/build/outputs/apk/release/output.json | tr ',' '\n' | grep versionCode | cut -d: -f2)" && \ | ||
echo "::set-env name=VER_NAME::$(cat app/build/outputs/apk/release/output.json | tr ',' '\n' | grep versionName | cut -d: -f2 | tr -d \")" | ||
- name: Copy release apk and mapping | ||
run: | | ||
mkdir -p artifacts${{ env.VER_CODE }}v${{ env.VER_NAME }} && \ | ||
cp -r app/build/outputs/* artifacts${{ env.VER_CODE }}v${{ env.VER_NAME }}/ | ||
- name: Upload artifacts ${{ env.VER_CODE }}v${{ env.VER_NAME }} | ||
run: zip -r artifacts_${{ steps.tag_version.outputs.new_tag }}.zip app/build/outputs | ||
- name: Export artifacts | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: artifacts_${{ steps.tag_version.outputs.new_tag }}.zip | ||
path: artifacts_${{ steps.tag_version.outputs.new_tag }}.zip | ||
- name: Export APK | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: artifacts${{ env.VER_CODE }}v${{ env.VER_NAME }} | ||
path: artifacts${{ env.VER_CODE }}v${{ env.VER_NAME }} | ||
name: app-release-${{ steps.tag_version.outputs.new_tag }}.apk | ||
path: app/build/outputs/apk/release/app-release.apk | ||
- name: Create a GitHub release | ||
if: ${{ github.event_name == 'push' }} | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ steps.tag_version.outputs.full_tag }} | ||
release_name: Nightly ${{ steps.tag_version.outputs.snapshot_date }} ${{ steps.tag_version.outputs.full_tag }} | ||
prerelease: true | ||
- name: Upload artifacts | ||
if: ${{ github.event_name == 'push' }} | ||
id: upload-artifacts | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./artifacts_${{ steps.tag_version.outputs.new_tag }}.zip | ||
asset_name: artifacts_${{ steps.tag_version.outputs.new_tag }}.zip | ||
asset_content_type: application/zip | ||
- name: Upload APK | ||
if: ${{ github.event_name == 'push' }} | ||
id: upload-apk | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./app/build/outputs/apk/release/app-release.apk | ||
asset_name: app-release-${{ steps.tag_version.outputs.new_tag }}.apk | ||
asset_content_type: application/zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
name: Manual release | ||
|
||
on: | ||
workflow_dispatch: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build_and_release: | ||
name: Build and release | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set version code to release | ||
run: | | ||
echo "$(grep 'version=' gradle.properties | grep -oE '[0-9]+\.[0-9]+\.[0-9]+')" |\ | ||
xargs -I % sed -i 's/^version=.*$/version=%/' gradle.properties | ||
- name: Create version and tag | ||
id: tag_version | ||
run: | | ||
echo "::set-output name=new_tag::v$(grep 'version=' gradle.properties | grep -oE '[0-9]+\.[0-9]+\.[0-9]+')" && | ||
echo "::set-output name=new_version::$(grep 'version=' gradle.properties | grep -oE '[0-9]+\.[0-9]+\.[0-9]+')" | ||
- name: Setup signing information | ||
env: | ||
KEY_FILE: ${{ secrets.signingKeyBase64 }} | ||
run: echo "$KEY_FILE" | openssl base64 -d > signingKey.jks | ||
- name: set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Build apk | ||
env: | ||
KEY_STORE_PWD: ${{ secrets.keyStorePassword }} | ||
KEY_ALIAS: ${{ secrets.alias }} | ||
KEY_PWD: ${{ secrets.keyPassword }} | ||
run: | | ||
./gradlew signingReport && | ||
./gradlew :app:assembleRelease --stacktrace | ||
- name: Cleanup signing information | ||
run: rm signingKey.jks | ||
- name: Copy release apk and mapping | ||
run: zip -r artifacts_${{ steps.tag_version.outputs.new_tag }}.zip app/build/outputs | ||
- name: Export artifacts | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: artifacts_${{ steps.tag_version.outputs.new_tag }}.zip | ||
path: artifacts_${{ steps.tag_version.outputs.new_tag }}.zip | ||
- name: Export APK | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: KINTAMAnga-${{ steps.tag_version.outputs.new_tag }}.apk | ||
path: app/build/outputs/apk/release/app-release.apk | ||
- name: Create a GitHub release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ steps.tag_version.outputs.new_tag }} | ||
release_name: Release ${{ steps.tag_version.outputs.new_tag }} | ||
prerelease: false | ||
- name: Upload artifacts | ||
id: upload-artifacts | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./artifacts_${{ steps.tag_version.outputs.new_tag }}.zip | ||
asset_name: artifacts_${{ steps.tag_version.outputs.new_tag }}.zip | ||
asset_content_type: application/zip | ||
- name: Upload APK | ||
id: upload-apk | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./app/build/outputs/apk/release/app-release.apk | ||
asset_name: KINTAMAnga-${{ steps.tag_version.outputs.new_tag }}.apk | ||
asset_content_type: application/zip | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
*.iml | ||
.gradle | ||
/local.properties | ||
/.idea | ||
.idea | ||
.settings | ||
local.properties | ||
.DS_Store | ||
/build | ||
/captures | ||
|
Oops, something went wrong.