Skip to content

Commit

Permalink
ci: Android CI (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
aistra0528 authored Oct 13, 2022
1 parent 7a06bc0 commit b0e66e0
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 7 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Android CI

on:
push:
branches:
- master
paths-ignore:
- '**.md'
pull_request:
branches:
- master
paths-ignore:
- '**.md'

jobs:
build:
runs-on: ubuntu-latest
if: ${{ !startsWith(github.event.head_commit.message, '[skip ci]') && github.repository_owner == 'aistra0528' }}
steps:
- uses: actions/checkout@v3
- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew assembleDebug
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.0
with:
name: app-debug.apk
path: app/build/outputs/apk/debug/*.apk
retention-days: 7
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

# 雹 Hail

[![Android CI status](https://github.com/aistra0528/Hail/workflows/Android%20CI/badge.svg)](https://github.com/aistra0528/Hail/actions)
[![Downloads](https://img.shields.io/github/downloads/aistra0528/Hail/total.svg)](https://github.com/aistra0528/Hail/releases)
[![License](https://img.shields.io/github/license/aistra0528/Hail)](LICENSE)

雹是一款用于冻结 Android 应用的自由软件,您可自由享用所有功能。

[<img src="coolapk-badge.png" alt="Get it on CoolApk" height="80">](https://www.coolapk.com/apk/com.aistra.hail)
Expand All @@ -10,7 +14,8 @@

酷安版签名与 [GitHub Releases](https://github.com/aistra0528/Hail/releases) 一致,F-Droid 版由 F-Droid 签名。

Google Play 版为 [@purofle](https://github.com/purofle)[Fork](https://github.com/purofle/Hail),由 Google 签名。
Google Play 版为 [@purofle](https://github.com/purofle)[Fork](https://github.com/purofle/Hail),由
Google 签名。

<img src="fastlane/metadata/android/zh-CN/images/phoneScreenshots/1.png" width="32%" /> <img src="fastlane/metadata/android/zh-CN/images/phoneScreenshots/2.png" width="32%" /> <img src="fastlane/metadata/android/zh-CN/images/phoneScreenshots/3.png" width="32%" />

Expand Down
11 changes: 9 additions & 2 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,22 @@

# Hail 雹

[![Android CI status](https://github.com/aistra0528/Hail/workflows/Android%20CI/badge.svg)](https://github.com/aistra0528/Hail/actions)
[![Downloads](https://img.shields.io/github/downloads/aistra0528/Hail/total.svg)](https://github.com/aistra0528/Hail/releases)
[![License](https://img.shields.io/github/license/aistra0528/Hail)](LICENSE)

Hail is a free software to freeze Android apps. Enjoy all features freely!

[<img src="coolapk-badge.png" alt="Get it on CoolApk" height="80">](https://www.coolapk.com/apk/com.aistra.hail)
[<img src="https://fdroid.gitlab.io/artwork/badge/get-it-on.png" alt="Get it on F-Droid" height="80">](https://f-droid.org/packages/com.aistra.hail/)
[<img src="https://play.google.com/intl/en_us/badges/images/generic/en-play-badge.png" alt="Get it on Google Play" height="80">](https://play.google.com/store/apps/details?id=com.aistra.hail)

CoolApk releases are signed the same as [GitHub Releases](https://github.com/aistra0528/Hail/releases), and F-Droid releases are signed by F-Droid.
CoolApk releases are signed the same
as [GitHub Releases](https://github.com/aistra0528/Hail/releases), and F-Droid releases are signed
by F-Droid.

Google Play releases are the [Fork](https://github.com/purofle/Hail) by [@purofle](https://github.com/purofle), signed by Google.
Google Play releases are the [Fork](https://github.com/purofle/Hail)
by [@purofle](https://github.com/purofle), signed by Google.

<img src="fastlane/metadata/android/en-US/images/phoneScreenshots/1.png" width="32%" /> <img src="fastlane/metadata/android/en-US/images/phoneScreenshots/2.png" width="32%" /> <img src="fastlane/metadata/android/en-US/images/phoneScreenshots/3.png" width="32%" />

Expand Down
8 changes: 4 additions & 4 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@ android {
versionName = "0.10.0"
resourceConfigurations += arrayOf("en", "es", "it", "ja-rJP", "ru", "zh-rCN", "zh-rTW")
}
signingConfigs {
create("release") {
val signing = if (file("../signing.properties").exists()) {
signingConfigs.create("release") {
val props = Properties().apply { load(file("../signing.properties").reader()) }
storeFile = file(props.getProperty("storeFile"))
storePassword = props.getProperty("storePassword")
keyAlias = props.getProperty("keyAlias")
keyPassword = props.getProperty("keyPassword")
}
}
} else signingConfigs.getByName("debug")
buildTypes {
debug {
applicationIdSuffix = ".debug"
}
release {
isMinifyEnabled = true
isShrinkResources = true
signingConfig = signingConfigs.getByName("release")
signingConfig = signing
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
Expand Down
4 changes: 4 additions & 0 deletions signing.properties.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
storeFile=filename.keystore
storePassword=password
keyAlias=alias
keyPassword=password

0 comments on commit b0e66e0

Please sign in to comment.