Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

Commit

Permalink
Add README and build configurations
Browse files Browse the repository at this point in the history
- Finally a README that is just as useless as your godess.
- Add github action configuration file "build_on_commit.yml".
- Fix gitlab CI configuration not setting NDK properly. Though
  the project's not using it, just leave the config there to
  shine the config just like explosion skill of Megumin.
  • Loading branch information
InNoobWeTrust committed Apr 25, 2020
1 parent 3a4843c commit f6c3613
Show file tree
Hide file tree
Showing 5 changed files with 97 additions and 5 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build_on_commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build on commit

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
name: Build and sign apk
runs-on: ubuntu-latest

steps:
- name: Checkout commit
uses: actions/checkout@v2
- name: Setup signing information
env:
KEY_FILE: ${{ secrets.signingKeyBase64 }}
run: echo "$KEY_FILE" | openssl base64 -d > signingKey.jks
- name: Build release 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"
- 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 }}
uses: actions/upload-artifact@v1
with:
name: artifacts${{ env.VER_CODE }}v${{ env.VER_NAME }}
path: artifacts${{ env.VER_CODE }}v${{ env.VER_NAME }}
8 changes: 4 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ before_script:
- mv tools $ANDROID_HOME/tools
# Fix gradle 3.0 problem
- mkdir --parents /root/.android && touch /root/.android/repositories.cfg
- mkdir "$ANDROID_HOME/licenses" || true
- mkdir $ANDROID_HOME/licenses || true
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
- echo y | $ANDROID_HOME/tools/bin/sdkmanager "platforms;android-${ANDROID_COMPILE_SDK}"
Expand All @@ -36,10 +36,10 @@ before_script:
- echo y | $ANDROID_HOME/tools/bin/sdkmanager "extras;google;m2repository"
- wget --quiet --output-document=android-ndk.zip http://dl.google.com/android/repository/android-ndk-r${ANDROID_NDK_VERSION}-linux-x86_64.zip
- unzip -q android-ndk.zip
- rm -fr ANDROID_NDK_HOME android-ndk.zip
- mv android-ndk-r${ANDROID_NDK_VERSION} ANDROID_NDK_HOME
- rm -fr $ANDROID_NDK_HOME android-ndk.zip
- mv android-ndk-r${ANDROID_NDK_VERSION} $ANDROID_NDK_HOME
- export ANDROID_SDK_HOME=$ANDROID_HOME
- export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$ANDROID_HOME/android-ndk
- export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$ANDROID_NDK_HOME
- chmod +x ./gradlew

stages:
Expand Down
40 changes: 40 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/InNoobWeTrust/KINTAMAnga)

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/InNoobWeTrust/KINTAMAnga)

# KINTAMAnga - a manga crawler and reader

Wonder why there is sudden lowercase in last 3 characters in the name?
Read Gintama and you will know the meaning of the first capitalized characters.

## Status

Nearly abandoned due to low interest in native Android developement.
Kotlin is great and it helps much but Android's suck.

My vision is all about Flutter or PWA.
And if PWA, hopefully can do resource-consuming things by WASM, loving Rust currently but still a noob.

## Install

Download from [release](https://github.com/InNoobWeTrust/KINTAMAnga/releases) page.

## Building

Please see [github actions for this repo and follow](./.github/workflows/)

## Contributing

Not welcoming! Kidding, you are welcome to contribute but I won't be very active on this repo anymore.

You need some knowledge about Kotlin or alternatively how to use search engines and stackoverflow.

Knowledge about Android should be good, but if you don't, just messing around until it compiles.

And no, no Java here, we don't do that here, Kotlin or quit game. I can do Java but I don't like it.

If you want to mess this repo by integrating React-native, NativeScript, Xamarin, Ionic, Qt, Beeware, Jasonelle, Love (Lua), etc... be sure to do it properly.

![tsundere rori Rin](https://vignette.wikia.nocookie.net/typemoon/images/9/90/Tumblr_lsfalnlSZN1qieicp.gif)

Flutter integration PRs are more than welcome! 😘
9 changes: 9 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ android {
vectorDrawables.useSupportLibrary = true
multiDexEnabled true
}
signingConfigs {
release {
storeFile file("../signingKey.jks")
storePassword = "$System.env.KEY_STORE_PWD"
keyAlias = "$System.env.KEY_ALIAS"
keyPassword = "$System.env.KEY_PWD"
}
}
buildTypes {
debug {
applicationIdSuffix ".debug"
Expand All @@ -37,6 +45,7 @@ android {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
}
packagingOptions {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-XX:+UseG1GC -XX:MaxGCPauseMillis=1000 -Xms512m -Xmx3g -XX:MaxPermSize=1024m -XX:ReservedCodeCacheSize=440m -XX:+UseCompressedOops -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
org.gradle.jvmargs=-XX:+UseG1GC -XX:MaxGCPauseMillis=1000 -Xms512m -Xmx1024m -XX:MaxPermSize=1024m -XX:ReservedCodeCacheSize=440m -XX:+UseCompressedOops -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
Expand Down

0 comments on commit f6c3613

Please sign in to comment.