Merge branch 'main' into m3e-refactor
This commit is contained in:
commit
12285e5be7
8 changed files with 36 additions and 33 deletions
28
.github/workflows/android_ci.yml
vendored
28
.github/workflows/android_ci.yml
vendored
|
|
@ -13,19 +13,31 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v6.0.0
|
uses: actions/checkout@v6.0.1
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: set up JDK 21
|
- name: set up JDK 21
|
||||||
uses: actions/setup-java@v5.0.0
|
uses: actions/setup-java@v5.1.0
|
||||||
with:
|
with:
|
||||||
java-version: '21'
|
java-version: '21'
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
cache: gradle
|
cache: gradle
|
||||||
|
|
||||||
- name: Install NDK 27.0.12077973
|
# 缓存NDK
|
||||||
run: echo "y" | sudo ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --install 'ndk;27.0.12077973'
|
- name: Cache NDK
|
||||||
|
uses: actions/cache@v5.0.1
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
${{ env.ANDROID_HOME }}/ndk
|
||||||
|
key: ndk-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
||||||
|
restore-keys: |
|
||||||
|
ndk-${{ runner.os }}-
|
||||||
|
|
||||||
|
# 仅当NDK缓存未命中时才安装NDK
|
||||||
|
- name: Install NDK 28.2.13676358
|
||||||
|
if: steps.cache-ndk.outputs.cache-hit != 'true'
|
||||||
|
run: echo "y" | sudo ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --install 'ndk;28.2.13676358'
|
||||||
|
|
||||||
- name: Grant execute permission for gradlew
|
- name: Grant execute permission for gradlew
|
||||||
run: chmod +x gradlew
|
run: chmod +x gradlew
|
||||||
|
|
@ -41,12 +53,6 @@ jobs:
|
||||||
echo ${{ secrets.SIGNING_KEY }} | base64 --decode > ${{ github.workspace }}/key.jks
|
echo ${{ secrets.SIGNING_KEY }} | base64 --decode > ${{ github.workspace }}/key.jks
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# - name: Cache NDK
|
|
||||||
# uses: actions/cache@v4.2.3
|
|
||||||
# with:
|
|
||||||
# path: ${ANDROID_HOME}/ndk/27.0.12077973
|
|
||||||
# key: ndk-cache
|
|
||||||
|
|
||||||
- name: Fix Permissions for Debug Keystore Path
|
- name: Fix Permissions for Debug Keystore Path
|
||||||
if: github.ref != 'refs/heads/main'
|
if: github.ref != 'refs/heads/main'
|
||||||
run: sudo chmod -R 777 /home/runner/.config/.android
|
run: sudo chmod -R 777 /home/runner/.config/.android
|
||||||
|
|
@ -56,7 +62,7 @@ jobs:
|
||||||
|
|
||||||
- name: Upload APK
|
- name: Upload APK
|
||||||
if: success() && github.event_name != 'pull_request' && github.repository == 'Super12138/ToDo'
|
if: success() && github.event_name != 'pull_request' && github.repository == 'Super12138/ToDo'
|
||||||
uses: actions/upload-artifact@v5.0.0
|
uses: actions/upload-artifact@v6.0.0
|
||||||
with:
|
with:
|
||||||
name: Release
|
name: Release
|
||||||
path: ${{ github.workspace }}/app/build/outputs/apk/release
|
path: ${{ github.workspace }}/app/build/outputs/apk/release
|
||||||
6
.github/workflows/script_build.yml
vendored
6
.github/workflows/script_build.yml
vendored
|
|
@ -14,7 +14,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v6.0.0
|
uses: actions/checkout@v6.0.1
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
|
@ -24,7 +24,7 @@ jobs:
|
||||||
version: latest
|
version: latest
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v6.0.0
|
uses: actions/setup-node@v6.2.0
|
||||||
with:
|
with:
|
||||||
node-version: 24
|
node-version: 24
|
||||||
|
|
||||||
|
|
@ -35,7 +35,7 @@ jobs:
|
||||||
run: cd script && pnpm run build
|
run: cd script && pnpm run build
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v5.0.0
|
uses: actions/upload-artifact@v6.0.0
|
||||||
with:
|
with:
|
||||||
name: Todo Script
|
name: Todo Script
|
||||||
path: ./script/updateVersionCode.js
|
path: ./script/updateVersionCode.js
|
||||||
|
|
@ -2,7 +2,6 @@ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
alias(libs.plugins.android.application)
|
alias(libs.plugins.android.application)
|
||||||
alias(libs.plugins.kotlin.android)
|
|
||||||
alias(libs.plugins.kotlin.compose)
|
alias(libs.plugins.kotlin.compose)
|
||||||
alias(libs.plugins.kotlin.serialization)
|
alias(libs.plugins.kotlin.serialization)
|
||||||
alias(libs.plugins.ksp)
|
alias(libs.plugins.ksp)
|
||||||
|
|
@ -39,7 +38,7 @@ android {
|
||||||
applicationId = "cn.super12138.todo"
|
applicationId = "cn.super12138.todo"
|
||||||
minSdk = 24
|
minSdk = 24
|
||||||
targetSdk = 36
|
targetSdk = 36
|
||||||
versionCode = 886
|
versionCode = 923
|
||||||
versionName = "2.3.3"
|
versionName = "2.3.3"
|
||||||
|
|
||||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||||
plugins {
|
plugins {
|
||||||
alias(libs.plugins.android.application) apply false
|
alias(libs.plugins.android.application) apply false
|
||||||
alias(libs.plugins.kotlin.android) apply false
|
|
||||||
alias(libs.plugins.kotlin.compose) apply false
|
alias(libs.plugins.kotlin.compose) apply false
|
||||||
alias(libs.plugins.kotlin.serialization) apply false
|
alias(libs.plugins.kotlin.serialization) apply false
|
||||||
alias(libs.plugins.ksp) apply false
|
alias(libs.plugins.ksp) apply false
|
||||||
|
|
|
||||||
|
|
@ -5,16 +5,16 @@ splashScreen = "1.2.0"
|
||||||
lifecycleRuntimeKtx = "2.10.0"
|
lifecycleRuntimeKtx = "2.10.0"
|
||||||
datastore = "1.2.0"
|
datastore = "1.2.0"
|
||||||
# Compose
|
# Compose
|
||||||
activityCompose = "1.12.0"
|
activityCompose = "1.12.2"
|
||||||
composeBom = "2025.11.01"
|
composeBom = "2026.01.00"
|
||||||
liveData = "1.9.5"
|
liveData = "1.10.1"
|
||||||
room = "2.8.4"
|
room = "2.8.4"
|
||||||
material3 = "1.5.0-alpha09"
|
material3 = "1.5.0-alpha12"
|
||||||
adaptive = "1.2.0"
|
adaptive = "1.2.0"
|
||||||
nav3Core = "1.0.0"
|
nav3Core = "1.0.0"
|
||||||
# AboutLibraries
|
# AboutLibraries
|
||||||
aboutLibsRelease = "13.1.0"
|
aboutLibsRelease = "14.0.0-b01"
|
||||||
aboutLibsReleasePlugin = "13.1.0"
|
aboutLibsReleasePlugin = "14.0.0-b01"
|
||||||
# M3 Color
|
# M3 Color
|
||||||
m3color = "2025.4"
|
m3color = "2025.4"
|
||||||
# Capsule
|
# Capsule
|
||||||
|
|
@ -31,9 +31,9 @@ junit = "4.13.2"
|
||||||
junitVersion = "1.3.0"
|
junitVersion = "1.3.0"
|
||||||
espressoCore = "3.7.0"
|
espressoCore = "3.7.0"
|
||||||
# Plugins
|
# Plugins
|
||||||
agp = "8.13.1"
|
agp = "9.0.0"
|
||||||
kotlin = "2.2.21"
|
kotlin = "2.3.0"
|
||||||
ksp = "2.3.3"
|
ksp = "2.3.4"
|
||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
# Android X
|
# Android X
|
||||||
|
|
@ -92,7 +92,6 @@ androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-co
|
||||||
|
|
||||||
[plugins]
|
[plugins]
|
||||||
android-application = { id = "com.android.application", version.ref = "agp" }
|
android-application = { id = "com.android.application", version.ref = "agp" }
|
||||||
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
|
|
||||||
kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
|
kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
|
||||||
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
|
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
|
||||||
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
|
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
|
||||||
|
|
|
||||||
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Binary file not shown.
4
gradle/wrapper/gradle-wrapper.properties
vendored
4
gradle/wrapper/gradle-wrapper.properties
vendored
|
|
@ -1,7 +1,7 @@
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionSha256Sum=72f44c9f8ebcb1af43838f45ee5c4aa9c5444898b3468ab3f4af7b6076c5bc3f
|
distributionSha256Sum=0d585f69da091fc5b2beced877feab55a3064d43b8a1d46aeb07996b0915e0e0
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.0-bin.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
validateDistributionUrl=true
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
|
|
||||||
|
|
@ -10,15 +10,15 @@ importers:
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@types/node':
|
'@types/node':
|
||||||
specifier: ^24.6.2
|
specifier: ^24.6.2
|
||||||
version: 24.10.1
|
version: 24.10.9
|
||||||
typescript:
|
typescript:
|
||||||
specifier: ^5.9.3
|
specifier: ^5.9.3
|
||||||
version: 5.9.3
|
version: 5.9.3
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
|
|
||||||
'@types/node@24.10.1':
|
'@types/node@24.10.9':
|
||||||
resolution: {integrity: sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ==}
|
resolution: {integrity: sha512-ne4A0IpG3+2ETuREInjPNhUGis1SFjv1d5asp8MzEAGtOZeTeHVDOYqOgqfhvseqg/iXty2hjBf1zAOb7RNiNw==}
|
||||||
|
|
||||||
typescript@5.9.3:
|
typescript@5.9.3:
|
||||||
resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==}
|
resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==}
|
||||||
|
|
@ -30,7 +30,7 @@ packages:
|
||||||
|
|
||||||
snapshots:
|
snapshots:
|
||||||
|
|
||||||
'@types/node@24.10.1':
|
'@types/node@24.10.9':
|
||||||
dependencies:
|
dependencies:
|
||||||
undici-types: 7.16.0
|
undici-types: 7.16.0
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue