Create android.yml
This commit is contained in:
parent
9d8f2f98e7
commit
3af5851053
|
|
@ -0,0 +1,36 @@
|
||||||
|
name: EdXposedManagerR
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
linux:
|
||||||
|
name: Build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: set up JDK 1.8
|
||||||
|
uses: actions/setup-java@v1
|
||||||
|
with:
|
||||||
|
java-version: 1.8
|
||||||
|
- uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: ~/.gradle/caches
|
||||||
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-gradle-
|
||||||
|
- name: Build
|
||||||
|
env:
|
||||||
|
KEYSTORE_PASS: ${{ secrets.KEYSTORE_PASS }}
|
||||||
|
ALIAS_NAME: ${{ secrets.ALIAS_NAME }}
|
||||||
|
ALIAS_PASS: ${{ secrets.ALIAS_PASS }}
|
||||||
|
run: |
|
||||||
|
chmod +x gradlew
|
||||||
|
./gradlew assembleRelease
|
||||||
|
- uses: actions/upload-artifact@master
|
||||||
|
name: Upload artifact
|
||||||
|
with:
|
||||||
|
name: EdXposedManagerR
|
||||||
|
path: app/build/outputs/
|
||||||
|
|
@ -24,7 +24,8 @@ android {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
compileSdkVersion 28
|
compileSdkVersion 28
|
||||||
buildToolsVersion "29.0.3"
|
//noinspection GradleDependency
|
||||||
|
buildToolsVersion "29.0.2"
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "org.meowcat.edxposed.manager"
|
applicationId "org.meowcat.edxposed.manager"
|
||||||
minSdkVersion 26
|
minSdkVersion 26
|
||||||
|
|
@ -32,6 +33,7 @@ android {
|
||||||
targetSdkVersion 27
|
targetSdkVersion 27
|
||||||
versionCode 45409
|
versionCode 45409
|
||||||
versionName "4.5.4.5"
|
versionName "4.5.4.5"
|
||||||
|
signingConfig signingConfigs.release
|
||||||
}
|
}
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
android:title="@string/primary_color"
|
android:title="@string/primary_color"
|
||||||
app:iconSpaceReserved="false" />
|
app:iconSpaceReserved="false" />
|
||||||
<org.meowcat.edxposed.manager.widget.ThemeColorPreference
|
<org.meowcat.edxposed.manager.widget.ThemeColorPreference
|
||||||
android:defaultValue="#1a73e8"
|
android:defaultValue="#e91e63"
|
||||||
android:dialogTitle="@string/accent_color"
|
android:dialogTitle="@string/accent_color"
|
||||||
android:key="accent_color"
|
android:key="accent_color"
|
||||||
android:title="@string/accent_color"
|
android:title="@string/accent_color"
|
||||||
|
|
|
||||||
19
appveyor.yml
19
appveyor.yml
|
|
@ -1,19 +0,0 @@
|
||||||
environment:
|
|
||||||
matrix:
|
|
||||||
- ANDROID_HOME: "C:\\android-sdk-windows"
|
|
||||||
install:
|
|
||||||
- cmd: >-
|
|
||||||
appveyor DownloadFile https://dl.google.com/android/repository/sdk-tools-windows-3859397.zip
|
|
||||||
|
|
||||||
7z x sdk-tools-windows-3859397.zip -oC:\android-sdk-windows > nul
|
|
||||||
|
|
||||||
yes | C:\android-sdk-windows\tools\bin\sdkmanager.bat --licenses > nul
|
|
||||||
cache:
|
|
||||||
- C:\android-sdk-windows\build-tools
|
|
||||||
- C:\android-sdk-windows\platforms
|
|
||||||
- C:\android-sdk-windows\platform-tools
|
|
||||||
build_script:
|
|
||||||
- cmd: gradlew.bat assembleRelease
|
|
||||||
artifacts:
|
|
||||||
- path: app/build/outputs/apk/
|
|
||||||
name: APK
|
|
||||||
|
|
@ -8,7 +8,7 @@ buildscript {
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:3.6.1'
|
classpath 'com.android.tools.build:gradle:3.6.1'
|
||||||
classpath 'com.google.android.gms:oss-licenses-plugin:0.10.1'
|
classpath 'com.google.android.gms:oss-licenses-plugin:0.10.2'
|
||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
// in the individual module build.gradle files
|
// in the individual module build.gradle files
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue