-
Notifications
You must be signed in to change notification settings - Fork 177
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 #241 from Henry-ZHR/master
更新gradle wrapper & 添加CI及优化相关代码
- Loading branch information
Showing
12 changed files
with
357 additions
and
191 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,28 @@ | ||
name: Android CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Setup JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version: 17 | ||
- name: Build with Gradle | ||
run: ./gradlew app:assembleDebug app:assembleCiRelease | ||
- name: Upload outputs | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: snapshot | ||
path: app/build/outputs/ |
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 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package remix.myplayer.misc | ||
|
||
import remix.myplayer.BuildConfig | ||
|
||
object AppInfo { | ||
val prettyPrinted by lazy { | ||
""" | ||
APPLICATION_ID: ${BuildConfig.APPLICATION_ID} | ||
VERSION_CODE: ${BuildConfig.VERSION_CODE} | ||
VERSION_NAME: ${BuildConfig.VERSION_NAME} | ||
FLAVOR: ${BuildConfig.FLAVOR} | ||
BUILD_TYPE: ${BuildConfig.BUILD_TYPE} | ||
GITHUB_SHA: ${BuildConfig.GITHUB_SHA} | ||
""".trimIndent() | ||
} | ||
} |
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,25 @@ | ||
package remix.myplayer.misc | ||
|
||
import android.os.Build | ||
|
||
object SystemInfo { | ||
private val supportedAbis: Array<String> by lazy { | ||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { | ||
Build.SUPPORTED_ABIS | ||
} else { | ||
@Suppress("deprecation") | ||
arrayOf(Build.CPU_ABI, Build.CPU_ABI2) | ||
} | ||
} | ||
|
||
val prettyPrinted: String by lazy { | ||
""" | ||
DISPLAY: ${Build.DISPLAY} | ||
SUPPORTED_ABIS: ${supportedAbis.contentToString()} | ||
MANUFACTURER: ${Build.MANUFACTURER} | ||
MODEL: ${Build.MODEL} | ||
RELEASE: ${Build.VERSION.RELEASE} | ||
SDK_INT: ${Build.VERSION.SDK_INT} | ||
""".trimIndent() | ||
} | ||
} |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#Sun Mar 17 20:26:37 CST 2024 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.