diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-02 13:31:30 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-02 13:31:30 +0100 |
| commit | f78754e26c6274f997bbfe0798f47aa86f8f8133 (patch) | |
| tree | b232000eafbb4b143a63b66e2930a1064b59a494 /sentry-stub | |
| parent | 5972d8bb6ab2369e298be0e6641d92ab8f1b2f7a (diff) | |
| download | HardenedPass-f78754e26c6274f997bbfe0798f47aa86f8f8133.tar.gz HardenedPass-f78754e26c6274f997bbfe0798f47aa86f8f8133.zip | |
build: drop the nonFree flavor, Sentry and Play Services
The fork targets GrapheneOS and ships only FOSS builds. The nonFree
flavor added Sentry crash reporting, wired to upstream's Sentry project,
and Play Services SMS one-time-code autofill, which needs Google's
servers. Neither is wanted, so remove the flavor dimension entirely:
- Delete app/src/nonFree, the SentryPlugin, the sentry-stub module, the
Sentry and Play Services catalog entries, and the Sentry scope setup
in Application.
- Move the free AutofillSmsActivity stub into main; it keeps the SMS
OTP feature off exactly as the free build did. A ponytail note marks
the FillOtpFromSms paths for later removal.
- SlimTests no longer needs to skip a nonFree variant.
- Workflows and docs use :app:assembleDebug / :app:assembleRelease. A
bare assembleRelease would also verify library modules in release
mode, where ui:compose fails on a pre-existing AppCompat attribute
reference the old flavored task never touched.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'sentry-stub')
| -rw-r--r-- | sentry-stub/build.gradle.kts | 5 | ||||
| -rw-r--r-- | sentry-stub/lint-baseline.xml | 4 | ||||
| -rw-r--r-- | sentry-stub/src/main/kotlin/io/sentry/Scope.kt | 16 | ||||
| -rw-r--r-- | sentry-stub/src/main/kotlin/io/sentry/Sentry.kt | 13 | ||||
| -rw-r--r-- | sentry-stub/src/main/kotlin/io/sentry/protocol/User.kt | 17 |
5 files changed, 0 insertions, 55 deletions
diff --git a/sentry-stub/build.gradle.kts b/sentry-stub/build.gradle.kts deleted file mode 100644 index 0a1cdfea..00000000 --- a/sentry-stub/build.gradle.kts +++ /dev/null @@ -1,5 +0,0 @@ -/* - * Copyright © 2014-2024 The Android Password Store Authors. All Rights Reserved. - * SPDX-License-Identifier: GPL-3.0-only - */ -plugins { id("com.github.android-password-store.kotlin-jvm-library") } diff --git a/sentry-stub/lint-baseline.xml b/sentry-stub/lint-baseline.xml deleted file mode 100644 index 2c8fe410..00000000 --- a/sentry-stub/lint-baseline.xml +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<issues format="6" by="lint 8.6.0" type="baseline" client="gradle" dependencies="false" name="AGP (8.6.0)" variant="all" version="8.6.0"> - -</issues> diff --git a/sentry-stub/src/main/kotlin/io/sentry/Scope.kt b/sentry-stub/src/main/kotlin/io/sentry/Scope.kt deleted file mode 100644 index 256496cd..00000000 --- a/sentry-stub/src/main/kotlin/io/sentry/Scope.kt +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Copyright © 2014-2024 The Android Password Store Authors. All Rights Reserved. - * SPDX-License-Identifier: GPL-3.0-only - */ - -@file:Suppress("Unused", "UNUSED_PARAMETER") - -package io.sentry - -import io.sentry.protocol.User - -public class Scope { - public var user: User? = null - - public fun setTag(tag: String, value: String) {} -} diff --git a/sentry-stub/src/main/kotlin/io/sentry/Sentry.kt b/sentry-stub/src/main/kotlin/io/sentry/Sentry.kt deleted file mode 100644 index 103766a8..00000000 --- a/sentry-stub/src/main/kotlin/io/sentry/Sentry.kt +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Copyright © 2014-2024 The Android Password Store Authors. All Rights Reserved. - * SPDX-License-Identifier: GPL-3.0-only - */ - -@file:Suppress("Unused", "UNUSED_PARAMETER") - -package io.sentry - -/** Stubs for the Sentry SDK */ -public object Sentry { - public fun configureScope(callback: (Scope) -> Unit) {} -} diff --git a/sentry-stub/src/main/kotlin/io/sentry/protocol/User.kt b/sentry-stub/src/main/kotlin/io/sentry/protocol/User.kt deleted file mode 100644 index 318ab8cf..00000000 --- a/sentry-stub/src/main/kotlin/io/sentry/protocol/User.kt +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright © 2014-2024 The Android Password Store Authors. All Rights Reserved. - * SPDX-License-Identifier: GPL-3.0-only - */ - -@file:Suppress("Unused", "UNUSED_PARAMETER") - -package io.sentry.protocol - -public data class User( - public var email: String? = null, - public var id: String? = null, - public var username: String? = null, - public var ipAddress: String? = null, - public var data: Map<String?, String>? = null, - public var unknown: Map<String?, String>? = null, -) |
