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

Fdroid Inclusion Policy changes #223

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
11 changes: 0 additions & 11 deletions zeapp/android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ plugins {
alias(libs.plugins.detekt.gradle)
alias(libs.plugins.dagger.hilt)
alias(libs.plugins.kotlin.kapt)
alias(libs.plugins.google.play.services)
alias(libs.plugins.firebase.appdistribution)
alias(libs.plugins.firebase.crashlytics)
alias(libs.plugins.license.report.gradle)
alias(libs.plugins.baselineprofile)
}
Expand Down Expand Up @@ -84,11 +81,6 @@ android {
"OPEN_API_TOKEN",
"\"${System.getenv("DALE2_TOKEN")}\"" ?: "\"\"",
)

firebaseAppDistribution {
releaseNotesFile = "./release-notes.txt"
groups = "testers"
}
}
create("benchmark") {
signingConfig = signingConfigs.getByName("debug")
Expand Down Expand Up @@ -185,9 +177,6 @@ dependencies {
implementation(libs.dagger.hilt)
implementation(libs.coil.compose)
implementation(libs.coil.transformations)
implementation(platform(libs.firebase))
implementation(libs.firebase.analytics)
implementation(libs.firebase.crashlytics)
implementation(libs.timber)
debugImplementation(libs.androidx.compose.ui.tooling)
debugImplementation(libs.androidx.compose.ui.test.manifest)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ private fun ZeAbout(
fontSize = 24.sp,
)
ZeText(
text = "Running on '${getPlatform()}'."
text = "Running on '${getPlatform()}'.",
)
ZeLazyColumn {
items(lines) { line ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import java.nio.ByteBuffer
import java.nio.IntBuffer
import kotlin.experimental.and


/**
* Render a composable into a bitmap.
*
Expand Down Expand Up @@ -337,4 +336,3 @@ private fun Bitmap.crop(fromX: Int, fromY: Int, targetWidth: Int, targetHeight:
canvas.drawBitmap(this, fromX.toFloat(), fromY.toFloat(), null)
return result
}

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ enum class ZeBadgeType(val rawValue: String) {
CAMERA("Camera"),
IMAGE_DRAWING("Image Drawing"),
BARCODE_TAG("BarCode Tag"),
PHRASE("Custom Phrase");
PHRASE("Custom Phrase"),
;

companion object {
fun getOrNull(type: String): ZeBadgeType? {
Expand Down Expand Up @@ -150,7 +151,7 @@ sealed class ZeConfiguration(

data class CustomPhrase(
val phrase: String,
override val bitmap: Bitmap
override val bitmap: Bitmap,
) : ZeConfiguration(ZeBadgeType.PHRASE, humanTitle = ZeBadgeType.PHRASE.rawValue, bitmap)

// TODO: Add your own pages.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ import androidx.datastore.preferences.preferencesDataStore
import dagger.hilt.android.qualifiers.ApplicationContext
import de.berlindroid.zeapp.PAGE_HEIGHT
import de.berlindroid.zeapp.PAGE_WIDTH
import de.berlindroid.zekompanion.base64
import de.berlindroid.zekompanion.debase64
import de.berlindroid.zekompanion.toBinary
import de.berlindroid.zeapp.zebits.toBitmap
import de.berlindroid.zeapp.zemodels.ZeBadgeType
import de.berlindroid.zeapp.zemodels.ZeConfiguration
import de.berlindroid.zeapp.zemodels.ZeSlot
import de.berlindroid.zeapp.zeui.pixelBuffer
import de.berlindroid.zekompanion.base64
import de.berlindroid.zekompanion.debase64
import de.berlindroid.zekompanion.toBinary
import kotlinx.coroutines.flow.first
import kotlinx.coroutines.flow.firstOrNull
import kotlinx.coroutines.flow.map
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import com.commit451.coiltransformations.CropTransformation
import de.berlindroid.zeapp.BuildConfig
import de.berlindroid.zeapp.PAGE_HEIGHT
import de.berlindroid.zeapp.PAGE_WIDTH
import de.berlindroid.zekompanion.ditherFloydSteinberg
import de.berlindroid.zeapp.zemodels.ZeConfiguration
import de.berlindroid.zeapp.zemodels.ZeEditor
import de.berlindroid.zeapp.zevm.ZeBadgeViewModel
import de.berlindroid.zekompanion.ditherFloydSteinberg
import kotlinx.coroutines.launch
import java.io.File

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ import de.berlindroid.zeapp.PAGE_WIDTH
import de.berlindroid.zeapp.R
import de.berlindroid.zeapp.zebits.isBinary
import de.berlindroid.zeapp.zebits.scaleIfNeeded
import de.berlindroid.zekompanion.threshold
import de.berlindroid.zeapp.zemodels.ZeConfiguration
import de.berlindroid.zekompanion.threshold
import kotlinx.coroutines.launch

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ fun NamePage(
if (result.didOverflowWidth) {
secondarySize /= 3.0f
}
}
},
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package de.berlindroid.zeapp.zevm

import android.graphics.Bitmap
import de.berlindroid.zeapp.R
import de.berlindroid.zekompanion.ditherFloydSteinberg
import de.berlindroid.zeapp.zemodels.ZeConfiguration
import de.berlindroid.zeapp.zeservices.ZeImageProviderService
import de.berlindroid.zeapp.zeui.pixelManipulation
import de.berlindroid.zekompanion.ditherFloydSteinberg
import javax.inject.Inject

class GetTemplateConfigurations @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import de.berlindroid.zeapp.OPENAI_API_KEY
import de.berlindroid.zeapp.R
import de.berlindroid.zekompanion.ditherFloydSteinberg
import de.berlindroid.zeapp.zebits.isBinary
import de.berlindroid.zeapp.zemodels.ZeConfiguration
import de.berlindroid.zeapp.zemodels.ZeEditor
Expand All @@ -20,6 +19,7 @@ import de.berlindroid.zeapp.zeservices.ZeContributorsService
import de.berlindroid.zeapp.zeservices.ZeImageProviderService
import de.berlindroid.zeapp.zeservices.ZePreferencesService
import de.berlindroid.zeapp.zeui.pixelManipulation
import de.berlindroid.zekompanion.ditherFloydSteinberg
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Job
import kotlinx.coroutines.delay
Expand Down
3 changes: 0 additions & 3 deletions zeapp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ plugins {
alias(libs.plugins.kotlin.kapt) apply false
alias(libs.plugins.detekt.gradle) apply false
alias(libs.plugins.dagger.hilt) apply false
alias(libs.plugins.google.play.services) apply false
alias(libs.plugins.firebase.appdistribution) apply false
alias(libs.plugins.firebase.crashlytics) apply false
alias(libs.plugins.license.report.gradle) apply false
id("com.android.test") version "8.0.2" apply false
kotlin("multiplatform").version("1.8.21").apply(false)
Expand Down
10 changes: 0 additions & 10 deletions zeapp/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ android-library = { id = "com.android.library", version.ref = "android-gradle-pl
baselineprofile = { id = "androidx.baselineprofile", version.ref = "benchmark"}
dagger-hilt = { id = "com.google.dagger.hilt.android", version.ref = "dagger-hilt" }
detekt-gradle = { id = "io.gitlab.arturbosch.detekt", version.ref = "detekt-gradle" }
firebase-appdistribution = { id = "com.google.firebase.appdistribution", version.ref = "firebase-appdistribution" }
firebase-crashlytics = { id = "com.google.firebase.crashlytics", version.ref = "firebase-crashlytics" }
google-play-services = { id = "com.google.gms.google-services", version.ref = "google-play-services" }
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
kotlin-kapt = { id = "org.jetbrains.kotlin.kapt", version.ref = "kotlin" }
ktlint-gradle = { id = "org.jlleitschuh.gradle.ktlint", version.ref = "ktlint-gradle" }
Expand All @@ -31,10 +28,6 @@ core-ktx = "1.10.1"
dagger-hilt = "2.46.1"
detekt-gradle = "1.23.0"
espresso-core = "3.5.1"
firebase = "32.2.3"
firebase-appdistribution = "4.0.0"
firebase-crashlytics = "2.9.6"
google-play-services = "4.3.15"
jSerialComm = "2.10.3"
junit = "4.13.2"
kotlin = "1.9.0"
Expand Down Expand Up @@ -69,9 +62,6 @@ core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "core-ktx
dagger-hilt = { module = "com.google.dagger:hilt-android", version.ref = "dagger-hilt" }
dagger-hilt-compiler = { module = "com.google.dagger:hilt-compiler", version.ref = "dagger-hilt" }
espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espresso-core" }
firebase = { module = "com.google.firebase:firebase-bom", version.ref = "firebase" }
firebase-analytics = { module = "com.google.firebase:firebase-analytics-ktx" }
firebase-crashlytics = { module = "com.google.firebase:firebase-crashlytics-ktx" }
jSerialComm = { module = "com.fazecast:jSerialComm", version.ref = "jSerialComm" }
junit = { group = "junit", name = "junit", version.ref = "junit" }
kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinx-coroutines-core" }
Expand Down
Loading