deprecate ant

This commit is contained in:
Adrian Ulrich 2018-02-11 14:29:48 +01:00
parent d00dc82b55
commit b371b16bf6
435 changed files with 49 additions and 177 deletions

15
Makefile Normal file
View File

@ -0,0 +1,15 @@
.PHONY: debug build release clean
default:
debug: build
adb install -r ./app/build/outputs/apk/app-debug.apk
build:
ssh qemu '. .bash_aliases && cd /hostfs/vanilla && ./gradlew build -x lintVitalRelease -x lint'
release: clean
ssh qemu '. .bash_aliases && cd /hostfs/vanilla && ./gradlew assembleRelease && cd ./app/build/outputs/apk && zipalign -v -p 4 app-release-unsigned.apk aligned.apk && /home/adrian/Android/build-tools/26.0.1/apksigner sign -ks /hostfs/.android.keystore --out final.apk aligned.apk'
clean:
rm -rf ./app/build/outputs

View File

@ -54,19 +54,13 @@ Building
========
To build you will need:
* A Java compiler compatible with Java 1.7
* The Android SDK with platform 24 (Nougat) installed
* A Java compiler compatible with Java 1.8
* The Android SDK with platform 26 installed
Building from command-line #1
--------------------------
* `gradle build` to build the APK
* Optional: `gradle installDebug` to install the APK to a connected device
Building from command-line #2
--------------------------
* `android update project --path .` to generate local.properties
* `ant debug` to build the APK at bin/VanillaMusic-debug.apk
* Optional: `ant installd` to install the APK to a connected device
Building with Android Studio
---------------------

28
app/build.gradle Normal file
View File

@ -0,0 +1,28 @@
apply plugin: 'com.android.application'
android {
lintOptions {
disable 'MissingTranslation'
disable 'ExtraTranslation'
}
compileSdkVersion 26
buildToolsVersion "26.0.1"
defaultConfig {
applicationId "ch.blinkenlights.android.vanilla"
minSdkVersion 15
targetSdkVersion 26
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
lintOptions {
abortOnError false
}
}

Some files were not shown because too many files have changed in this diff Show More