Compare commits

..

No commits in common. "ae5b401f4e7291f4c6421f489df27df24c552875" and "cc8d2bf67863ccbc56e19608a14704081907a819" have entirely different histories.

4 changed files with 23 additions and 42 deletions

View File

@ -63,33 +63,15 @@ jobs:
- name: Gradle Build
env:
BUILD_PLUGIN: none
GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dorg.gradle.workers.max=2 -Dorg.gradle.jvmargs=-Xmx2g"
run: |
echo "sdk.dir=${ANDROID_HOME}" > local.properties
echo "ndk.dir=${ANDROID_HOME}/ndk/25.0.8775105" >> local.properties
echo "${{ secrets.LOCAL_PROPERTIES }}" >> local.properties
export LOCAL_PROPERTIES=$(base64 -w 0 local.properties)
echo "${LOCAL_PROPERTIES}"
# echo "clean gradle build"
# ./gradlew clean --no-daemon
echo "start init aciton"
export LOCAL_PROPERTIES="${{ secrets.LOCAL_PROPERTIES }}"
./run init action gradle
echo "start build app"
./gradlew app:assembleOssRelease \
--no-daemon \
--stacktrace \
--info \
--console=plain \
--warning-mode=all \
--max-workers=2
./gradlew app:assembleOssRelease
APK=$(find app/build/outputs/apk -name '*arm64-v8a*.apk')
APK=$(dirname $APK)
echo "APK=$APK" >> $GITHUB_ENV
echo "Build completed. APK directory: $APK"
- uses: actions/upload-artifact@v4
with:
name: APKs

View File

@ -179,7 +179,7 @@ fun Project.setupAppCommon() {
if (keystorePwd != null) {
signingConfigs {
create("release") {
storeFile = rootProject.file("test_key.jks")
storeFile = rootProject.file("release.keystore")
storePassword = keystorePwd
keyAlias = alias
keyPassword = pwd

View File

@ -1,26 +1,25 @@
# Android 相关配置
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
# AndroidX package structure to make it clearer which packages are bundled with the
# Android operating system, and which are packaged with your app's APK
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true
# Kotlin 配置
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official
# Gradle 性能优化配置
# Gradle parallel build
org.gradle.parallel=true
org.gradle.caching=true
org.gradle.daemon=false
org.gradle.configureondemand=true
# JVM 参数优化
org.gradle.jvmargs=-Xmx2g \
-XX:+UseParallelGC \
-XX:MaxMetaspaceSize=512m \
-XX:+HeapDumpOnOutOfMemoryError \
-Dfile.encoding=UTF-8 \
-XX:+UseCompressedOops \
-XX:+OptimizeStringConcat \
-XX:MetaspaceSize=256m \
-XX:MaxGCPauseMillis=200
# 可选:设置最大工作线程数
org.gradle.workers.max=2
org.gradle.jvmargs=-Xmx4g -XX:+UseParallelGC -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

Binary file not shown.