mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-02-07 07:04:44 +01:00
Compare commits
3 Commits
05123c7068
...
134c895cd4
Author | SHA1 | Date | |
---|---|---|---|
|
134c895cd4 | ||
|
ec6567b9b2 | ||
|
40fa3a1987 |
@ -2,6 +2,7 @@ steps:
|
|||||||
build:
|
build:
|
||||||
image: alvrme/alpine-android:android-33-jdk11
|
image: alvrme/alpine-android:android-33-jdk11
|
||||||
commands:
|
commands:
|
||||||
|
- apk add --no-cache python3
|
||||||
- ./gradlew :app:assembleRelease
|
- ./gradlew :app:assembleRelease
|
||||||
when:
|
when:
|
||||||
path: [ app/**, build.gradle ]
|
path: [ app/**, build.gradle ]
|
||||||
|
@ -8,6 +8,7 @@ steps:
|
|||||||
build:
|
build:
|
||||||
image: alvrme/alpine-android:android-33-jdk11
|
image: alvrme/alpine-android:android-33-jdk11
|
||||||
commands:
|
commands:
|
||||||
|
- apk add --no-cache python3
|
||||||
- ./gradlew :app:assembleNightly
|
- ./gradlew :app:assembleNightly
|
||||||
sign:
|
sign:
|
||||||
image: alvrme/alpine-android:android-33-jdk11
|
image: alvrme/alpine-android:android-33-jdk11
|
||||||
|
@ -122,7 +122,6 @@ android {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
@ -271,8 +270,34 @@ dependencies {
|
|||||||
//debugImplementation 'com.squareup.leakcanary:leakcanary-android:x.y'
|
//debugImplementation 'com.squareup.leakcanary:leakcanary-android:x.y'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NB: Android Studio can't find the imports; this does not affect the
|
||||||
|
// actual build since Gradle can find them just fine.
|
||||||
|
|
||||||
java {
|
import com.android.tools.profgen.ArtProfileKt
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
import com.android.tools.profgen.ArtProfileSerializer
|
||||||
targetCompatibility = JavaVersion.VERSION_1_8
|
import com.android.tools.profgen.DexFile
|
||||||
|
|
||||||
|
project.afterEvaluate {
|
||||||
|
tasks.each { task ->
|
||||||
|
if (task.name.startsWith("compile") && task.name.endsWith("ReleaseArtProfile")) {
|
||||||
|
task.doLast {
|
||||||
|
outputs.files.each { file ->
|
||||||
|
if (file.name.endsWith(".profm")) {
|
||||||
|
println("Sorting ${file} ...")
|
||||||
|
def version = ArtProfileSerializer.valueOf("METADATA_0_0_2")
|
||||||
|
def profile = ArtProfileKt.ArtProfile(file)
|
||||||
|
def keys = new ArrayList(profile.profileData.keySet())
|
||||||
|
def sortedData = new LinkedHashMap()
|
||||||
|
Collections.sort keys, new DexFile.Companion()
|
||||||
|
keys.each { key -> sortedData[key] = profile.profileData[key] }
|
||||||
|
new FileOutputStream(file).with {
|
||||||
|
write(version.magicBytes$profgen)
|
||||||
|
write(version.versionBytes$profgen)
|
||||||
|
version.write$profgen(it, sortedData, "")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
@ -25,10 +25,3 @@ allprojects {
|
|||||||
jcenter()
|
jcenter()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
tasks.whenTaskAdded {
|
|
||||||
if (name.contains("ArtProfile")) {
|
|
||||||
enabled = false
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user