Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build & Check F-Droid version #619

Draft
wants to merge 39 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
3db97b7
Remove non-foss dependencies
lihenggui Dec 30, 2023
a1e9efb
Update version code
lihenggui Dec 30, 2023
bc25447
Remove OSS declaration in the AndroidManifest.xml
lihenggui Dec 30, 2023
6e634cd
Update badging
lihenggui Dec 30, 2023
c806b7b
dependencyGuardBaseline
lihenggui Dec 30, 2023
d7f0081
Merge branch 'main' into fdroid
lihenggui Jan 4, 2024
392a765
Merge branch 'main' into fdroid
lihenggui Jan 14, 2024
4fd280f
Update version code to 3607
lihenggui Jan 14, 2024
1de30f0
Merge branch 'main' into fdroid
lihenggui Jan 22, 2024
1056a1c
Merge branch 'main' into fdroid
lihenggui Jan 24, 2024
1906737
Update version code
lihenggui Jan 24, 2024
5d9fdc6
Merge branch 'main' into fdroid
lihenggui Feb 27, 2024
d2c5225
🤖 Updates baselines for Dependency Guard
lihenggui Feb 27, 2024
49c89a1
Merge branch 'main' into fdroid
lihenggui Mar 2, 2024
c16e47d
Merge branch 'main' into fdroid
lihenggui Mar 13, 2024
d077bec
Update the version code
lihenggui Mar 13, 2024
712d592
Merge branch 'main' into fdroid
lihenggui Apr 3, 2024
181e064
Update version code
lihenggui Apr 3, 2024
b7131cb
🤖 Updates baselines for Dependency Guard
lihenggui Apr 3, 2024
0d955e0
Merge branch 'main' into fdroid
lihenggui Apr 7, 2024
fd7884b
Upgrade version code
lihenggui Apr 7, 2024
0ad818e
Merge branch 'main' into fdroid
lihenggui May 4, 2024
084bbea
🤖 Updates baselines for Dependency Guard
lihenggui May 4, 2024
66f7df1
Update badging
lihenggui May 4, 2024
bac737b
Merge remote-tracking branch 'origin/fdroid' into fdroid
lihenggui May 4, 2024
11eb02d
Merge branch 'main' into fdroid
lihenggui Jun 1, 2024
74fde76
Bump version code to 2.0.4369
lihenggui Jun 1, 2024
c2b8ce3
🤖 Updates baselines for Dependency Guard
lihenggui Jun 1, 2024
c6067ff
Merge branch 'main' into fdroid
lihenggui Jun 2, 2024
9e92011
Bump version code
lihenggui Jun 2, 2024
ce30509
Merge branch 'main' into fdroid
lihenggui Jul 3, 2024
7c3b399
Bump version code
lihenggui Jul 3, 2024
fe34a96
🤖 Updates baselines for Dependency Guard
lihenggui Jul 3, 2024
a71190d
Merge branch 'main' into fdroid
lihenggui Sep 10, 2024
1769701
Upgrade version code
lihenggui Sep 10, 2024
0790a45
🤖 Updates baselines for Dependency Guard
lihenggui Sep 10, 2024
fbf3c16
Merge branch 'main' into fdroid
lihenggui Sep 17, 2024
99dad90
🤖 Updates baselines for Dependency Guard
lihenggui Sep 17, 2024
4853207
Bump version code
lihenggui Sep 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions app-compose/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ plugins {
alias(libs.plugins.blocker.android.application.flavors)
alias(libs.plugins.blocker.android.application.jacoco)
alias(libs.plugins.blocker.android.hilt)
alias(libs.plugins.blocker.android.application.firebase)
alias(libs.plugins.ksp)
id("kotlin-parcelize")
alias(libs.plugins.baselineprofile)
Expand All @@ -33,11 +32,8 @@ android {
namespace = "com.merxury.blocker"
defaultConfig {
applicationId = "com.merxury.blocker"
val gitCommitCount = providers.exec {
commandLine("git", "rev-list", "--count", "HEAD")
}.standardOutput.asText.get().trim()
versionCode = gitCommitCount.toIntOrNull() ?: 1
versionName = "2.0.$gitCommitCount" // X.Y.Z; X = Major, Y = minor, Z = version code
versionCode = 4839
versionName = "2.0.4839-fdroid" // X.Y.Z; X = Major, Y = minor, Z = version code

// Custom test runner to set up Hilt dependency graph
testInstrumentationRunner = "com.merxury.blocker.core.testing.BlockerTestRunner"
Expand Down
40 changes: 2 additions & 38 deletions app-compose/dependencies/marketReleaseRuntimeClasspath.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,6 @@ androidx.datastore:datastore-core-android:1.1.1
androidx.datastore:datastore-core-okio-jvm:1.1.1
androidx.datastore:datastore-core-okio:1.1.1
androidx.datastore:datastore-core:1.1.1
androidx.datastore:datastore-preferences-android:1.1.1
androidx.datastore:datastore-preferences-core-jvm:1.1.1
androidx.datastore:datastore-preferences-core:1.1.1
androidx.datastore:datastore-preferences:1.1.1
androidx.datastore:datastore:1.1.1
androidx.documentfile:documentfile:1.0.1
androidx.drawerlayout:drawerlayout:1.1.1
Expand Down Expand Up @@ -120,8 +116,6 @@ androidx.navigation:navigation-runtime:2.8.0
androidx.palette:palette-ktx:1.0.0
androidx.palette:palette:1.0.0
androidx.print:print:1.0.0
androidx.privacysandbox.ads:ads-adservices-java:1.0.0-beta05
androidx.privacysandbox.ads:ads-adservices:1.0.0-beta05
androidx.profileinstaller:profileinstaller:1.3.1
androidx.recyclerview:recyclerview:1.1.0
androidx.resourceinspection:resourceinspection-annotation:1.0.1
Expand Down Expand Up @@ -158,44 +152,15 @@ com.github.topjohnwu.libsu:nio:6.0.0
com.github.topjohnwu.libsu:service:6.0.0
com.google.accompanist:accompanist-drawablepainter:0.32.0
com.google.accompanist:accompanist-permissions:0.36.0
com.google.android.datatransport:transport-api:3.2.0
com.google.android.datatransport:transport-backend-cct:3.3.0
com.google.android.datatransport:transport-runtime:3.3.0
com.google.android.gms:play-services-ads-identifier:18.0.0
com.google.android.gms:play-services-basement:18.4.0
com.google.android.gms:play-services-measurement-api:22.1.0
com.google.android.gms:play-services-measurement-base:22.1.0
com.google.android.gms:play-services-measurement-impl:22.1.0
com.google.android.gms:play-services-measurement-sdk-api:22.1.0
com.google.android.gms:play-services-measurement-sdk:22.1.0
com.google.android.gms:play-services-measurement:22.1.0
com.google.android.gms:play-services-stats:17.0.2
com.google.android.gms:play-services-tasks:18.2.0
com.google.android.material:material:1.12.0
com.google.code.findbugs:jsr305:3.0.2
com.google.dagger:dagger-lint-aar:2.52
com.google.dagger:dagger:2.52
com.google.dagger:hilt-android:2.52
com.google.dagger:hilt-core:2.52
com.google.errorprone:error_prone_annotations:2.26.0
com.google.firebase:firebase-analytics:22.1.0
com.google.firebase:firebase-annotations:16.2.0
com.google.firebase:firebase-bom:33.3.0
com.google.firebase:firebase-common-ktx:21.0.0
com.google.firebase:firebase-common:21.0.0
com.google.firebase:firebase-components:18.0.0
com.google.firebase:firebase-config-interop:16.0.1
com.google.firebase:firebase-crashlytics:19.1.0
com.google.firebase:firebase-datatransport:19.0.0
com.google.firebase:firebase-encoders-json:18.0.1
com.google.firebase:firebase-encoders-proto:16.0.0
com.google.firebase:firebase-encoders:17.0.0
com.google.firebase:firebase-installations-interop:17.2.0
com.google.firebase:firebase-installations:18.0.0
com.google.firebase:firebase-measurement-connector:20.0.1
com.google.firebase:firebase-sessions:2.0.4
com.google.errorprone:error_prone_annotations:2.15.0
com.google.guava:failureaccess:1.0.1
com.google.guava:guava:31.1-android
com.google.guava:guava:31.0.1-jre
com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava
com.google.j2objc:j2objc-annotations:1.3
com.google.protobuf:protobuf-javalite:4.28.1
Expand Down Expand Up @@ -256,7 +221,6 @@ org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.9.0
org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.9.0
org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0
org.jetbrains.kotlinx:kotlinx-coroutines-guava:1.9.0
org.jetbrains.kotlinx:kotlinx-coroutines-play-services:1.9.0
org.jetbrains.kotlinx:kotlinx-datetime-jvm:0.6.1
org.jetbrains.kotlinx:kotlinx-datetime:0.6.1
org.jetbrains.kotlinx:kotlinx-serialization-bom:1.7.2
Expand Down
8 changes: 1 addition & 7 deletions app-compose/marketRelease-badging.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package: name='com.merxury.blocker' versionCode='4727' versionName='2.0.4727' platformBuildVersionName='14' platformBuildVersionCode='34' compileSdkVersion='34' compileSdkVersionCodename='14'
package: name='com.merxury.blocker' versionCode='4044' versionName='2.0.4044-fdroid' platformBuildVersionName='14' platformBuildVersionCode='34' compileSdkVersion='34' compileSdkVersionCodename='14'
sdkVersion:'21'
targetSdkVersion:'34'
uses-permission: name='android.permission.INTERNET'
Expand All @@ -11,10 +11,6 @@ uses-permission: name='moe.shizuku.manager.permission.API'
uses-permission: name='android.permission.QUERY_ALL_PACKAGES'
uses-permission: name='android.permission.WAKE_LOCK'
uses-permission: name='android.permission.RECEIVE_BOOT_COMPLETED'
uses-permission: name='com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE'
uses-permission: name='com.google.android.gms.permission.AD_ID'
uses-permission: name='android.permission.ACCESS_ADSERVICES_ATTRIBUTION'
uses-permission: name='android.permission.ACCESS_ADSERVICES_AD_ID'
uses-permission: name='com.merxury.blocker.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION'
application-label:'Blocker'
application-label-af:'Blocker'
Expand Down Expand Up @@ -112,8 +108,6 @@ application-icon-640:'res/mipmap-anydpi-v26/ic_launcher.xml'
application-icon-65534:'res/mipmap-anydpi-v26/ic_launcher.xml'
application: label='Blocker' icon='res/mipmap-anydpi-v26/ic_launcher.xml'
launchable-activity: name='com.merxury.blocker.MainActivity' label='' icon=''
property: name='android.adservices.AD_SERVICES_CONFIG' resource='res/xml/ga_ad_services_config.xml'
uses-library-not-required:'android.ext.adservices'
uses-library-not-required:'androidx.window.extensions'
uses-library-not-required:'androidx.window.sidecar'
feature-group: label=''
Expand Down
6 changes: 0 additions & 6 deletions build-logic/convention/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ dependencies {
compileOnly(libs.android.gradlePlugin)
compileOnly(libs.android.tools.common)
compileOnly(libs.compose.gradlePlugin)
compileOnly(libs.firebase.performance.gradlePlugin)
compileOnly(libs.firebase.crashlytics.gradlePlugin)
compileOnly(libs.kotlin.gradlePlugin)
compileOnly(libs.ksp.gradlePlugin)
compileOnly(libs.licensee.gradlePlugin)
Expand Down Expand Up @@ -96,10 +94,6 @@ gradlePlugin {
id = "blocker.android.room"
implementationClass = "AndroidRoomConventionPlugin"
}
register("firebase") {
id = "blocker.android.application.firebase"
implementationClass = "AndroidApplicationFirebaseConventionPlugin"
}
register("androidFlavors") {
id = "blocker.android.application.flavors"
implementationClass = "AndroidApplicationFlavorsConventionPlugin"
Expand Down

This file was deleted.

3 changes: 0 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ plugins {
alias(libs.plugins.hilt) apply false
alias(libs.plugins.kotlin.serialization) apply false
alias(libs.plugins.licensee) apply false
alias(libs.plugins.firebase.crashlytics) apply false
alias(libs.plugins.firebase.perf) apply false
alias(libs.plugins.gms) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.roborazzi) apply false
alias(libs.plugins.room) apply false
Expand Down
3 changes: 0 additions & 3 deletions core/analytics/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,4 @@ android {
dependencies {
implementation(libs.androidx.compose.runtime)
implementation(libs.timber)

marketImplementation(platform(libs.firebase.bom))
marketImplementation(libs.firebase.analytics)
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,14 @@

package com.merxury.blocker.core.analytics

import com.google.firebase.analytics.FirebaseAnalytics
import com.google.firebase.analytics.ktx.analytics
import com.google.firebase.ktx.Firebase
import dagger.Binds
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
internal abstract class AnalyticsModule {
@Binds
abstract fun bindsAnalyticsHelper(analyticsHelperImpl: FirebaseAnalyticsHelper): AnalyticsHelper

companion object {
@Provides
@Singleton
fun provideFirebaseAnalytics(): FirebaseAnalytics = Firebase.analytics
}
abstract fun bindsAnalyticsHelper(analyticsHelperImpl: StubAnalyticsHelper): AnalyticsHelper
}

This file was deleted.

2 changes: 1 addition & 1 deletion feature/settings/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
<action android:name="android.support.customtabs.action.CustomTabsService" />
</intent>
</queries>
</manifest>
</manifest>
19 changes: 4 additions & 15 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ appiconloader = "1.5.0"
coil = "2.7.0"
composeMarkdown = "0.5.4"
dependencyGuard = "0.5.0"
firebaseBom = "33.3.0"
firebaseCrashlyticsPlugin = "3.0.2"
firebasePerfPlugin = "1.4.2"
gmsPlugin = "4.4.2"
googleAndroidMaterial = "1.12.0"
hilt = "2.52"
hiltExt = "1.2.0"
Expand Down Expand Up @@ -66,6 +62,7 @@ xmlutil = "0.90.1"
turbine = "1.1.0"
truth = "1.4.4"
material = "1.12.0"
# Non open-source dependencies

[bundles]
androidx-compose-ui-test = ["androidx-compose-ui-test", "androidx-compose-ui-testManifest"]
Expand Down Expand Up @@ -121,12 +118,7 @@ coil-kt-compose = { group = "io.coil-kt", name = "coil-compose", version.ref = "
coil-kt-svg = { group = "io.coil-kt", name = "coil-svg", version.ref = "coil" }
compose-markdown = { group = "com.github.jeziellago", name = "compose-markdown", version.ref = "composeMarkdown" }
eclipse-jgit = { group = "org.eclipse.jgit", name = "org.eclipse.jgit", version.ref = "jgit" }
firebase-bom = { group = "com.google.firebase", name = "firebase-bom", version.ref="firebaseBom"}
firebase-analytics = { group = "com.google.firebase", name = "firebase-analytics"}
firebase-crashlytics = { group = "com.google.firebase", name = "firebase-crashlytics"}
firebase-performance = { group = "com.google.firebase", name = "firebase-perf"}
google-android-material = { group = "com.google.android.material", name = "material", version.ref = "googleAndroidMaterial" }
google-services = { module = "com.google.gms:google-services", version.ref = "gmsPlugin" }
hilt-android = { group = "com.google.dagger", name = "hilt-android", version.ref = "hilt" }
hilt-ext-work = { group = "androidx.hilt", name = "hilt-work", version.ref = "hiltExt" }
hilt-ext-compiler = { group = "androidx.hilt", name = "hilt-compiler", version.ref = "hiltExt" }
Expand Down Expand Up @@ -167,18 +159,18 @@ xmlutil-core-android = { group = "io.github.pdvrieze.xmlutil", name = "core-andr
xmlutil-serialization-android = { group = "io.github.pdvrieze.xmlutil", name = "serialization-android", version.ref = "xmlutil" }
timber = { group = "com.jakewharton.timber", name = "timber", version.ref = "timber" }
hiddenapibypass = "org.lsposed.hiddenapibypass:hiddenapibypass:4.3"
# Non open-source dependencies

# Dependencies of the included build-logic
android-gradlePlugin = { group = "com.android.tools.build", name = "gradle", version.ref = "androidGradlePlugin" }
android-tools-common = { group = "com.android.tools", name = "common", version.ref = "androidTools" }
compose-gradlePlugin = { module = "org.jetbrains.kotlin:compose-compiler-gradle-plugin", version.ref = "kotlin" }
firebase-crashlytics-gradlePlugin = { group = "com.google.firebase", name = "firebase-crashlytics-gradle", version.ref = "firebaseCrashlyticsPlugin" }
firebase-performance-gradlePlugin = { group = "com.google.firebase", name = "perf-plugin", version.ref = "firebasePerfPlugin" }
kotlin-gradlePlugin = { group = "org.jetbrains.kotlin", name = "kotlin-gradle-plugin", version.ref = "kotlin" }
ksp-gradlePlugin = { group = "com.google.devtools.ksp", name = "com.google.devtools.ksp.gradle.plugin", version.ref = "ksp" }
licensee-gradlePlugin = { group = "app.cash.licensee", name = "licensee-gradle-plugin", version.ref = "licensee" }
room-gradlePlugin = { group = "androidx.room", name = "room-gradle-plugin", version.ref = "room" }
work-testing = { group = "androidx.work", name = "work-testing", version.ref = "androidxWork" }
# Non open-source plugins

[plugins]
android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
Expand All @@ -187,9 +179,6 @@ android-test = { id = "com.android.test", version.ref = "androidGradlePlugin" }
baselineprofile = { id = "androidx.baselineprofile", version.ref = "androidxMacroBenchmark"}
compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
dependencyGuard = { id = "com.dropbox.dependency-guard", version.ref = "dependencyGuard" }
firebase-crashlytics = { id = "com.google.firebase.crashlytics", version.ref = "firebaseCrashlyticsPlugin"}
firebase-perf = { id = "com.google.firebase.firebase-perf", version.ref = "firebasePerfPlugin"}
gms = { id = "com.google.gms.google-services", version.ref = "gmsPlugin"}
hilt = { id = "com.google.dagger.hilt.android", version.ref = "hilt" }
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
Expand All @@ -200,11 +189,11 @@ module-graph = { id = "com.jraska.module.graph.assertion", version.ref = "module
protobuf = { id = "com.google.protobuf", version.ref = "protobufPlugin" }
roborazzi = { id = "io.github.takahirom.roborazzi", version.ref = "roborazzi" }
room = { id = "androidx.room", version.ref = "room" }
# Non open-source plugins

# Plugins defined by this project
blocker-android-application = { id = "blocker.android.application", version = "unspecified" }
blocker-android-application-compose = { id = "blocker.android.application.compose", version = "unspecified" }
blocker-android-application-firebase = { id = "blocker.android.application.firebase", version = "unspecified" }
blocker-android-application-flavors = { id = "blocker.android.application.flavors", version = "unspecified" }
blocker-android-application-jacoco = { id = "blocker.android.application.jacoco", version = "unspecified" }
blocker-android-feature = { id = "blocker.android.feature", version = "unspecified" }
Expand Down
Loading