Migration to Android plugin for gradle 3.0

travis has already updated, requiring local changes according to https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html

No need to "iterate" through a single item

Remove unused manifest parameter for Apache legacy
This commit is contained in:
TwistedUmbrella 2018-04-02 12:40:56 -04:00
parent b58aaac5c0
commit b46eeb6474
5 changed files with 9 additions and 14 deletions

View File

@ -47,7 +47,7 @@ script:
before_deploy:
- cd ../../
- mkdir -p artifacts/$GIT_BUILD/
- cp shell/android-studio/app/build/outputs/apk/app-debug.apk artifacts/$GIT_BUILD/reicast-android-debug-$GIT_HASH.apk
- cp shell/android-studio/app/build/outputs/apk/debug/app-debug.apk artifacts/$GIT_BUILD/reicast-android-debug-$GIT_HASH.apk
deploy:
provider: s3
access_key_id: AKIAJR5J3OHAQUP5BHHQ

View File

@ -45,10 +45,7 @@ afterEvaluate {
standardOutput = hashtag
}
hashtag = hashtag.toString().trim()
v.outputs.each { output ->
output.outputFile = new File(output.outputFile.parent,
"reicast-android-" + hashtag.substring(0,7) + ".apk")
}
v.outputs[0].outputFileName = "reicast-android-" + hashtag.substring(0,7) + ".apk"
file('src/main/assets/build').text = hashtag
}
}
@ -63,4 +60,4 @@ dependencies {
exclude module: 'junit'
}
compile fileTree(include: ['*.jar'], dir: 'libs')
}
}

View File

@ -49,10 +49,6 @@
<meta-data
android:name="xperiaplayoptimized_content"
android:resource="@drawable/ic_xperia_play" />
<uses-library
android:name="org.apache.http.legacy"
android:required="false" />
<activity
android:name=".MainActivity"
@ -135,4 +131,4 @@
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" />
</application>
</manifest>
</manifest>

View File

@ -2,14 +2,16 @@
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.android.tools.build:gradle:3.1.0'
}
}
allprojects {
repositories {
jcenter()
google()
}
}

View File

@ -1,6 +1,6 @@
#Mon Dec 25 16:10:23 CET 2017
#Mon Apr 02 06:06:44 EDT 2018
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip