feat: alpha version
6
.github/workflows/beta.yml
vendored
|
@ -42,19 +42,19 @@ jobs:
|
||||||
run: chmod +x ./gradlew
|
run: chmod +x ./gradlew
|
||||||
|
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: ./gradlew assembleDebug -Pandroid.injected.signing.store.file=$GITHUB_WORKSPACE/key.keystore -Pandroid.injected.signing.store.password=${{ secrets.KEYSTORE_PASSWORD }} -Pandroid.injected.signing.key.alias=${{ secrets.KEY_ALIAS }} -Pandroid.injected.signing.key.password=${{ secrets.KEY_PASSWORD }}
|
run: ./gradlew assembleAlpha -Pandroid.injected.signing.store.file=$GITHUB_WORKSPACE/key.keystore -Pandroid.injected.signing.store.password=${{ secrets.KEYSTORE_PASSWORD }} -Pandroid.injected.signing.key.alias=${{ secrets.KEY_ALIAS }} -Pandroid.injected.signing.key.password=${{ secrets.KEY_PASSWORD }}
|
||||||
|
|
||||||
- name: Upload a Build Artifact
|
- name: Upload a Build Artifact
|
||||||
uses: actions/upload-artifact@v3.0.0
|
uses: actions/upload-artifact@v3.0.0
|
||||||
with:
|
with:
|
||||||
name: Dantotsu
|
name: Dantotsu
|
||||||
path: "app/build/outputs/apk/debug/app-debug.apk"
|
path: "app/build/outputs/apk/alpha/app-alpha.apk"
|
||||||
|
|
||||||
- name: Upload APK to Discord
|
- name: Upload APK to Discord
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
contentbody=$( jq -Rsa . <<< "${{ github.event.head_commit.message }}" )
|
contentbody=$( jq -Rsa . <<< "${{ github.event.head_commit.message }}" )
|
||||||
curl -F "payload_json={\"content\":\" Debug-Build: <@719439449423085569> **${{ env.VERSION }}**\n\n${contentbody:1:-1}\"}" -F "dantotsu_debug=@app/build/outputs/apk/debug/app-debug.apk" ${{ secrets.DISCORD_WEBHOOK }}
|
curl -F "payload_json={\"content\":\" Alpha-Build: <@719439449423085569> **${{ env.VERSION }}**\n\n${contentbody:1:-1}\"}" -F "dantotsu_debug=@app/build/outputs/apk/debug/app-debug.apk" ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
|
|
||||||
- name: Delete Old Pre-Releases
|
- name: Delete Old Pre-Releases
|
||||||
id: delete-pre-releases
|
id: delete-pre-releases
|
||||||
|
|
20
app/alpha/output-metadata.json
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"artifactType": {
|
||||||
|
"type": "APK",
|
||||||
|
"kind": "Directory"
|
||||||
|
},
|
||||||
|
"applicationId": "ani.dantotsu.alpha",
|
||||||
|
"variantName": "alpha",
|
||||||
|
"elements": [
|
||||||
|
{
|
||||||
|
"type": "SINGLE",
|
||||||
|
"filters": [],
|
||||||
|
"attributes": [],
|
||||||
|
"versionCode": 28450261,
|
||||||
|
"versionName": "2.1.0-alpha01",
|
||||||
|
"outputFile": "app-alpha.apk"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"elementType": "File"
|
||||||
|
}
|
|
@ -21,13 +21,20 @@ android {
|
||||||
minSdk 23
|
minSdk 23
|
||||||
targetSdk 34
|
targetSdk 34
|
||||||
versionCode ((System.currentTimeMillis() / 60000).toInteger())
|
versionCode ((System.currentTimeMillis() / 60000).toInteger())
|
||||||
versionName "2.1.0-beta01-iv1"
|
versionName "2.1.0"
|
||||||
signingConfig signingConfigs.debug
|
signingConfig signingConfigs.debug
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
|
alpha {
|
||||||
|
applicationIdSuffix ".alpha"
|
||||||
|
versionNameSuffix "-alpha01"
|
||||||
|
manifestPlaceholders = [icon_placeholder: "@mipmap/ic_launcher_alpha", icon_placeholder_round: "@mipmap/ic_launcher_alpha_round"]
|
||||||
|
debuggable System.getenv("CI") == null
|
||||||
|
}
|
||||||
debug {
|
debug {
|
||||||
applicationIdSuffix ".beta"
|
applicationIdSuffix ".beta"
|
||||||
|
versionNameSuffix "-beta01"
|
||||||
manifestPlaceholders = [icon_placeholder: "@mipmap/ic_launcher_beta", icon_placeholder_round: "@mipmap/ic_launcher_beta_round"]
|
manifestPlaceholders = [icon_placeholder: "@mipmap/ic_launcher_beta", icon_placeholder_round: "@mipmap/ic_launcher_beta_round"]
|
||||||
debuggable System.getenv("CI") == null
|
debuggable System.getenv("CI") == null
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,6 +43,25 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"client_info": {
|
||||||
|
"mobilesdk_app_id": "1:1039200814590:android:40e14720ee97917e1aacaf",
|
||||||
|
"android_client_info": {
|
||||||
|
"package_name": "ani.dantotsu.alpha"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"oauth_client": [],
|
||||||
|
"api_key": [
|
||||||
|
{
|
||||||
|
"current_key": "AIzaSyCiXo_q4S2ofA5oCztsoLnlDqJi3GtTJjY"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"services": {
|
||||||
|
"appinvite_service": {
|
||||||
|
"other_platform_oauth_client": []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"client_info": {
|
"client_info": {
|
||||||
"mobilesdk_app_id": "1:1039200814590:android:40e14720ee97917e1aacaf",
|
"mobilesdk_app_id": "1:1039200814590:android:40e14720ee97917e1aacaf",
|
||||||
|
|
4
app/src/alpha/res/values/strings.xml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<string name="app_name">Dantotsu α</string>
|
||||||
|
</resources>
|
BIN
app/src/main/ic_launcher_alpha-playstore.png
Normal file
After Width: | Height: | Size: 16 KiB |
25
app/src/main/res/drawable/ic_launcher_alpha_background.xml
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="108dp"
|
||||||
|
android:height="108dp"
|
||||||
|
android:viewportWidth="768"
|
||||||
|
android:viewportHeight="768">
|
||||||
|
<group>
|
||||||
|
<clip-path
|
||||||
|
android:pathData="M125.71,125.71h516.58v516.58h-516.58z"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M123.53,128.02h512v511.96h-512z"
|
||||||
|
android:fillColor="#e5d8a4"/>
|
||||||
|
<path
|
||||||
|
android:pathData="m117.58,129.49v335.26c23.32,3.7 47.23,5.63 71.58,5.63 211.59,0 389.34,-144.9 439.43,-340.89H117.58Z"
|
||||||
|
android:fillColor="#ff9f00"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M384,384m-172.26,0a172.26,172.26 0,1 1,344.52 0a172.26,172.26 0,1 1,-344.52 0"
|
||||||
|
android:fillColor="#f0ca67"/>
|
||||||
|
<path
|
||||||
|
android:pathData="m384,211.74c-95.13,0 -172.26,77.12 -172.26,172.26 0,24.51 5.13,47.83 14.37,68.93 89.21,-7.3 172.93,-33.96 246.97,-75.77 24.85,-18.81 47.7,-40.12 68.18,-63.56 -26.92,-60.04 -87.2,-101.86 -157.25,-101.86Z"
|
||||||
|
android:fillColor="#ffa900"/>
|
||||||
|
<path
|
||||||
|
android:pathData="m534.81,128.01c-35.57,189.07 -201.56,332.12 -400.97,332.12 -3.45,0 -6.89,-0.06 -10.31,-0.14v5.75c40.23,10.46 82.43,16.05 125.93,16.05 155.6,0 294.55,-71.23 386.07,-182.84V128.02h-100.72z"
|
||||||
|
android:fillColor="#ffb400"/>
|
||||||
|
</group>
|
||||||
|
</vector>
|
22
app/src/main/res/drawable/ic_launcher_alpha_foreground.xml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="108dp"
|
||||||
|
android:height="108dp"
|
||||||
|
android:viewportWidth="768"
|
||||||
|
android:viewportHeight="768">
|
||||||
|
<group>
|
||||||
|
<clip-path
|
||||||
|
android:pathData="M642.29,125.71l-516.58,0l-0,516.58l516.58,0z"/>
|
||||||
|
<path
|
||||||
|
android:pathData="m723.74,128c-0,46.25 -37.49,83.74 -83.74,83.74l-256,0c-95.13,0 -172.26,77.12 -172.26,172.26l-0,0c-0,95.13 77.12,172.26 172.26,172.26L640,556.26c46.24,0 83.72,37.47 83.74,83.71L0,639.97L0,128Z"
|
||||||
|
android:strokeWidth="0"
|
||||||
|
android:fillColor="#1f1f30"/>
|
||||||
|
<path
|
||||||
|
android:pathData="m286.18,384l-0,0c-0,54.03 43.8,97.82 97.82,97.82L768,481.82L768,286.18l-384,0c-54.02,0 -97.82,43.8 -97.82,97.82z"
|
||||||
|
android:strokeWidth="0"
|
||||||
|
android:fillColor="#1f1f30"/>
|
||||||
|
<path
|
||||||
|
android:pathData="m431.99,366.7 l-76.02,-43.89c-13.32,-7.69 -29.96,1.92 -29.96,17.3l-0,87.78c-0,15.38 16.65,24.99 29.96,17.3l76.02,-43.89c13.32,-7.69 13.32,-26.91 -0,-34.6z"
|
||||||
|
android:strokeWidth="0"
|
||||||
|
android:fillColor="#efe7ff"/>
|
||||||
|
</group>
|
||||||
|
</vector>
|
5
app/src/main/res/mipmap-anydpi-v26/ic_launcher_alpha.xml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<background android:drawable="@drawable/ic_launcher_alpha_background"/>
|
||||||
|
<foreground android:drawable="@drawable/ic_launcher_alpha_foreground"/>
|
||||||
|
</adaptive-icon>
|
|
@ -0,0 +1,5 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<background android:drawable="@drawable/ic_launcher_alpha_background"/>
|
||||||
|
<foreground android:drawable="@drawable/ic_launcher_alpha_foreground"/>
|
||||||
|
</adaptive-icon>
|
BIN
app/src/main/res/mipmap-hdpi/ic_launcher_alpha.webp
Normal file
After Width: | Height: | Size: 3 KiB |
BIN
app/src/main/res/mipmap-hdpi/ic_launcher_alpha_round.webp
Normal file
After Width: | Height: | Size: 3 KiB |
BIN
app/src/main/res/mipmap-mdpi/ic_launcher_alpha.webp
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
app/src/main/res/mipmap-mdpi/ic_launcher_alpha_round.webp
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
app/src/main/res/mipmap-xhdpi/ic_launcher_alpha.webp
Normal file
After Width: | Height: | Size: 4 KiB |
BIN
app/src/main/res/mipmap-xhdpi/ic_launcher_alpha_round.webp
Normal file
After Width: | Height: | Size: 4 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/ic_launcher_alpha.webp
Normal file
After Width: | Height: | Size: 5.9 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/ic_launcher_alpha_round.webp
Normal file
After Width: | Height: | Size: 5.9 KiB |
BIN
app/src/main/res/mipmap-xxxhdpi/ic_launcher_alpha.webp
Normal file
After Width: | Height: | Size: 8.1 KiB |
BIN
app/src/main/res/mipmap-xxxhdpi/ic_launcher_alpha_round.webp
Normal file
After Width: | Height: | Size: 8.1 KiB |