33 * SPDX-License-Identifier: GPL-3.0-or-later
44 */
55
6+ import com.android.build.api.dsl.ApplicationExtension
7+
68plugins {
79 alias(libs.plugins.android.application)
810 alias(libs.plugins.jetbrains.kotlin.android)
@@ -32,7 +34,7 @@ kotlin {
3234 }
3335}
3436
35- android {
37+ configure< ApplicationExtension > {
3638 compileSdk = 36
3739 namespace = " org.schabi.newpipe"
3840
@@ -42,9 +44,9 @@ android {
4244 minSdk = 21
4345 targetSdk = 35
4446
45- versionCode = System .getProperty(" versionCodeOverride" )?.toInt() ? : 1008
47+ versionCode = System .getProperty(" versionCodeOverride" )?.toInt() ? : 1009
4648
47- versionName = " 0.28.3 "
49+ versionName = " 0.28.4 "
4850 System .getProperty(" versionNameSuffix" )?.let { versionNameSuffix = it }
4951
5052 testInstrumentationRunner = " androidx.test.runner.AndroidJUnitRunner"
@@ -77,19 +79,18 @@ android {
7779 resValue(" string" , " app_name" , " NewPipe $suffix " )
7880 }
7981 isMinifyEnabled = true
80- isShrinkResources = false // disabled to fix F-Droid"s reproducible build
81- proguardFiles(getDefaultProguardFile(" proguard-android.txt" ), " proguard-rules.pro" )
82+ isShrinkResources = true
83+ proguardFiles(
84+ getDefaultProguardFile(" proguard-android-optimize.txt" ),
85+ " proguard-rules.pro"
86+ )
8287 }
8388 }
8489
8590 lint {
86- checkReleaseBuilds = false
87- // Or, if you prefer, you can continue to check for errors in release builds,
88- // but continue the build even when errors are found:
91+ lintConfig = file(" lint.xml" )
92+ // Continue the debug build even when errors are found
8993 abortOnError = false
90- // suppress false warning ("Resource IDs will be non-final in Android Gradle Plugin version
91- // 5.0, avoid using them in switch case statements"), which affects only library projects
92- disable + = " NonConstantResourceId"
9394 }
9495
9596 compileOptions {
@@ -100,7 +101,7 @@ android {
100101
101102 sourceSets {
102103 getByName(" androidTest" ) {
103- assets.srcDir( " $projectDir /schemas" )
104+ assets.directories + = " $projectDir /schemas"
104105 }
105106 }
106107
@@ -111,6 +112,7 @@ android {
111112 buildFeatures {
112113 viewBinding = true
113114 buildConfig = true
115+ resValues = true
114116 }
115117
116118 packaging {
@@ -270,7 +272,8 @@ dependencies {
270272 implementation(libs.lisawray.groupie.viewbinding)
271273
272274 // Image loading
273- implementation(libs.squareup.picasso)
275+ implementation(libs.coil.compose)
276+ implementation(libs.coil.network.okhttp)
274277
275278 // Markdown library for Android
276279 implementation(libs.noties.markwon.core)
0 commit comments