-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from s1204IT/master
ビルドワークフローの追加&ファイルの最適化
- Loading branch information
Showing
25 changed files
with
373 additions
and
308 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
* text=auto eol=lf | ||
*.bat text eol=crlf | ||
*.png binary | ||
*.webp binary | ||
*.jar binary | ||
*.jks binary |
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,29 @@ | ||
name: 不具合の報告 | ||
description: バグや開発側が想定していない動作などの報告 | ||
labels: [bug] | ||
title: "[Bug] タイトルを入力" | ||
body: | ||
- type: textarea | ||
attributes: | ||
label: 内容の詳細 | ||
placeholder: 具体的に記述してください | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: 再現する手順 | ||
placeholder: 可能な限り具体的に記述してください | ||
validations: | ||
required: true | ||
- type: input | ||
attributes: | ||
label: モジュールのバージョン | ||
placeholder: "1.0" | ||
validations: | ||
required: true | ||
- type: input | ||
attributes: | ||
label: LINEアプリのバージョン | ||
placeholder: 14.0.1 | ||
validations: | ||
required: true |
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,11 @@ | ||
name: 機能の提案 | ||
description: 新しい機能や改善点などの提案 | ||
labels: [enhancement] | ||
title: "[Feature Request] タイトルを入力" | ||
body: | ||
- type: textarea | ||
attributes: | ||
label: 提案内容 | ||
placeholder: ここに提案を入力してください | ||
validations: | ||
required: true |
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,100 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
paths: | ||
- '.github/workflows/build.yml' | ||
- 'app/**' | ||
- 'gradle/**' | ||
- '*.gradle' | ||
- '*.properties' | ||
workflow_dispatch: | ||
inputs: | ||
release: | ||
description: 'Release' | ||
type: boolean | ||
required: true | ||
default: false | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
|
||
- name: Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.gradle/caches/ | ||
~/.gradle/wrapper/ | ||
key: ${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} | ||
|
||
- name: Set environments | ||
run: | | ||
{ | ||
echo "version=v$(grep versionName app/build.gradle | awk '{print $2}' | tr -d \")" | ||
echo "commit=$(echo ${{ github.sha }} | cut -c-7)" | ||
echo "repo=$(echo ${GITHUB_REPOSITORY#$GITHUB_REPOSITORY_OWNER/})" | ||
} >> $GITHUB_ENV | ||
- name: Check tag exists | ||
uses: mukunku/[email protected] | ||
id: check-tag | ||
with: | ||
tag: "${{ env.version }}" | ||
|
||
- name: Release check | ||
if: github.event.inputs.release == 'true' | ||
run: | | ||
if [[ "${{ secrets.STORE_FILE }}" == "" ]]; then | ||
echo -e "\nERROR!\n\nリリースするには、 署名鍵を設定する必要があります。\n\n" | ||
echo "STORE_FILE: JKS形式の署名鍵をBase64でエンコードした文字列" | ||
echo "STORE_PASSWORD: キーストアのパスワード" | ||
echo "KEY_ALIAS: 署名のエイリアス" | ||
echo "KEY_PASSWORD: 署名のパスワード" | ||
exit 1 | ||
fi | ||
if [[ "${{ steps.check-tag.outputs.exists }}" == "true" ]]; then | ||
echo -e "\nERROR!\n\n既に同じタグが存在します。\n\n" | ||
echo "build.gradle の versionName を変更してください" | ||
exit 1 | ||
fi | ||
- name: Build with Gradle | ||
run: | | ||
if [[ "${{ inputs.release }}" == "true" ]]; then | ||
echo "${{ secrets.STORE_FILE }}" | base64 -d > app/release.jks | ||
export STORE_PASSWORD="${{ secrets.STORE_PASSWORD }}" | ||
export KEY_ALIAS="${{ secrets.KEY_ALIAS }}" | ||
export KEY_PASSWORD="${{ secrets.KEY_PASSWORD }}" | ||
./gradlew aR --no-daemon | ||
else | ||
./gradlew assemble --no-daemon | ||
fi | ||
- name: Upload APK | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ env.repo }}(v${{ env.version }}@${{ env.commit }}) | ||
path: app/build/outputs/apk/**/app-*.apk | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
if: github.event.inputs.release == 'true' | ||
with: | ||
tag_name: v${{ env.version }} | ||
draft: true | ||
prerelease: false | ||
files: app/build/outputs/apk/release/app-release.apk |
This file was deleted.
Oops, something went wrong.
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,15 +1,11 @@ | ||
*.iml | ||
.gradle | ||
# Gradle | ||
/.gradle/ | ||
# Android SDK | ||
/local.properties | ||
/.idea/caches | ||
/.idea/libraries | ||
/.idea/modules.xml | ||
/.idea/workspace.xml | ||
/.idea/navEditor.xml | ||
/.idea/assetWizardSettings.xml | ||
.DS_Store | ||
/build | ||
/captures | ||
.externalNativeBuild | ||
.cxx | ||
local.properties | ||
# IntelliJ | ||
/.idea/ | ||
# Gradle Build | ||
/app/build/ | ||
# Android Studio Signing APK | ||
/app/debug/ | ||
/app/release/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
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
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,21 +1 @@ | ||
# Add project specific ProGuard rules here. | ||
# You can control the set of applied configuration files using the | ||
# proguardFiles setting in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} | ||
|
||
# Uncomment this to preserve the line number information for | ||
# debugging stack traces. | ||
#-keepattributes SourceFile,LineNumberTable | ||
|
||
# If you keep the line number information, uncomment this to | ||
# hide the original source file name. | ||
#-renamesourcefileattribute SourceFile | ||
-keep de.robv.android.xposed.** |
Oops, something went wrong.