Skip to content

Commit 42fb13f

Browse files
authored
Merge branch 'dev' into 1473_remove_duplicates_from_playlist
2 parents d5b54c8 + e0cb289 commit 42fb13f

308 files changed

Lines changed: 5309 additions & 1394 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

app/build.gradle

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
import com.android.tools.profgen.ArtProfileKt
2+
import com.android.tools.profgen.ArtProfileSerializer
3+
import com.android.tools.profgen.DexFile
4+
15
plugins {
26
id "com.android.application"
37
id "kotlin-android"
@@ -16,8 +20,8 @@ android {
1620
resValue "string", "app_name", "NewPipe"
1721
minSdk 21
1822
targetSdk 33
19-
versionCode 991
20-
versionName "0.24.1"
23+
versionCode 992
24+
versionName "0.25.0"
2125

2226
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2327

@@ -102,7 +106,7 @@ ext {
102106
androidxWorkVersion = '2.7.1'
103107

104108
icepickVersion = '3.2.0'
105-
exoPlayerVersion = '2.18.2'
109+
exoPlayerVersion = '2.18.1'
106110
googleAutoServiceVersion = '1.0.1'
107111
groupieVersion = '2.10.1'
108112
markwonVersion = '4.6.2'
@@ -179,15 +183,15 @@ sonar {
179183

180184
dependencies {
181185
/** Desugaring **/
182-
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.8'
186+
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.2'
183187

184188
/** NewPipe libraries **/
185189
// You can use a local version by uncommenting a few lines in settings.gradle
186190
// Or you can use a commit you pushed to GitHub by just replacing TeamNewPipe with your GitHub
187191
// name and the commit hash with the commit hash of the (pushed) commit you want to test
188192
// This works thanks to JitPack: https://jitpack.io/
189193
implementation 'com.github.TeamNewPipe:nanojson:1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751'
190-
implementation 'com.github.TeamNewPipe:NewPipeExtractor:2211a24b6934a8a8cdf5547ea1b52daa4cb5de6c'
194+
implementation 'com.github.TeamNewPipe:NewPipeExtractor:7e793c11aec46358ccbfd8bcfcf521105f4f093a'
191195
implementation 'com.github.TeamNewPipe:NoNonsense-FilePicker:5.0.0'
192196

193197
/** Checkstyle **/
@@ -308,3 +312,24 @@ static String getGitWorkingBranch() {
308312
return ""
309313
}
310314
}
315+
316+
project.afterEvaluate {
317+
tasks.compileReleaseArtProfile.doLast {
318+
outputs.files.each { file ->
319+
if (file.toString().endsWith(".profm")) {
320+
println("Sorting ${file} ...")
321+
def version = ArtProfileSerializer.valueOf("METADATA_0_0_2")
322+
def profile = ArtProfileKt.ArtProfile(file)
323+
def keys = new ArrayList(profile.profileData.keySet())
324+
def sortedData = new LinkedHashMap()
325+
Collections.sort keys, new DexFile.Companion()
326+
keys.each { key -> sortedData[key] = profile.profileData[key] }
327+
new FileOutputStream(file).with {
328+
write(version.magicBytes$profgen)
329+
write(version.versionBytes$profgen)
330+
version.write$profgen(it, sortedData, "")
331+
}
332+
}
333+
}
334+
}
335+
}

0 commit comments

Comments
 (0)