deprecate ant
This commit is contained in:
parent
d00dc82b55
commit
b371b16bf6
15
Makefile
Normal file
15
Makefile
Normal 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
|
10
README.md
10
README.md
@ -54,20 +54,14 @@ Building
|
|||||||
========
|
========
|
||||||
To build you will need:
|
To build you will need:
|
||||||
|
|
||||||
* A Java compiler compatible with Java 1.7
|
* A Java compiler compatible with Java 1.8
|
||||||
* The Android SDK with platform 24 (Nougat) installed
|
* The Android SDK with platform 26 installed
|
||||||
|
|
||||||
Building from command-line #1
|
Building from command-line #1
|
||||||
--------------------------
|
--------------------------
|
||||||
* `gradle build` to build the APK
|
* `gradle build` to build the APK
|
||||||
* Optional: `gradle installDebug` to install the APK to a connected device
|
* 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
|
Building with Android Studio
|
||||||
---------------------
|
---------------------
|
||||||
You can also build with Android Studio by importing this project into it.
|
You can also build with Android Studio by importing this project into it.
|
||||||
|
28
app/build.gradle
Normal file
28
app/build.gradle
Normal 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
Loading…
x
Reference in New Issue
Block a user