Skip to content

Commit c3ac0ea

Browse files
committed
release: v2.1.0
Signed-off-by: Lennoard <[email protected]>
1 parent 4fe086f commit c3ac0ea

File tree

7 files changed

+15
-32
lines changed

7 files changed

+15
-32
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ app/release/*
1010
app/build/*
1111
app/build/generated/*
1212
app/src/main/gen/*
13+
/keystore.properties

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,24 @@ A GUI application for Android <code>sysctl</code> to edit kernel variables
3030

3131
## Technologies
3232

33-
- MVVM for user params
33+
- MVI / MVVM for user params
34+
- [Jetpack Compose](https://developer.android.com/jetpack/compose) Material 3 UI
3435
- [Jetpack Data Binding](https://developer.android.com/topic/libraries/data-binding)
3536
- [Jetpack View Binding](https://developer.android.com/topic/libraries/view-binding)
3637
- Lifecycle-aware Kotlin Coroutines
38+
- Kotlin Flows
3739
- Dependency injection with [Koin](https://insert-koin.io/)
3840

3941
## Download
4042

41-
<a href='https://apt.izzysoft.de/fdroid/index/apk/com.androidvip.sysctlgui'><img alt='Get it on IzzyOnDroid' height="64" src='https://gitlab.com/IzzyOnDroid/repo/-/raw/master/assets/IzzyOnDroid.png'/></a>
43+
<a href='https://apt.izzysoft.de/fdroid/index/apk/com.androidvip.sysctlgui'><img alt='Get it on IzzyOnDroid' height="64" src='https://gitlab.com/IzzyOnDroid/repo/-/raw/master/assets/IzzyOnDroid.png'/></a>
4244
<a href='https://play.google.com/store/apps/details?id=com.androidvip.sysctlgui&pcampaignid=pcampaignidMKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1'><img alt='Get it on Google Play' height="64" src='https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png'/></a>
4345

4446
## License
4547

4648
This project is licensed under the terms of the MIT license.
4749

48-
> Copyright (c) 2019-2022 Lennoard.
50+
> Copyright (c) 2019-2023 Lennoard.
4951
>
5052
> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
5153
>

app/build.gradle.kts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import org.jetbrains.kotlin.config.KotlinCompilerVersion
21
import java.util.Properties
2+
import org.jetbrains.kotlin.config.KotlinCompilerVersion
33

44
plugins {
55
id("com.android.application")
@@ -16,8 +16,8 @@ android {
1616
applicationId = AppConfig.appId
1717
minSdk = AppConfig.minSdkVersion
1818
targetSdk = AppConfig.targetSdlVersion
19-
versionCode = 11
20-
versionName = "2.0.0"
19+
versionCode = 12
20+
versionName = "2.1.0"
2121
vectorDrawables.useSupportLibrary = true
2222
resourceConfigurations.addAll(listOf("en", "de", "pt-rBR"))
2323
javaCompileOptions {
@@ -32,9 +32,12 @@ android {
3232

3333
signingConfigs {
3434
create("release") {
35-
val localPropFile = rootProject.file("local.properties")
35+
val propFile = rootProject.file("keystore.properties")
36+
if (!propFile.exists()) {
37+
propFile.createNewFile()
38+
}
3639
val keystoreProps = Properties().apply {
37-
load(localPropFile.inputStream())
40+
load(propFile.inputStream())
3841
}
3942

4043
keyAlias = keystoreProps["keyAlias"] as? String ?: ""
Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,10 @@
11
package com.androidvip.sysctlgui.utils
22

3-
import android.content.res.ColorStateList
4-
import android.graphics.Typeface
53
import androidx.annotation.DrawableRes
64
import androidx.appcompat.widget.AppCompatImageView
7-
import androidx.appcompat.widget.AppCompatTextView
8-
import androidx.core.widget.ImageViewCompat
95
import androidx.databinding.BindingAdapter
10-
import com.androidvip.sysctlgui.R
11-
import com.google.android.material.color.MaterialColors
12-
import java.io.File
136

147
@BindingAdapter("binding:srcCompatRes")
158
fun AppCompatImageView.setImageResourceCompat(@DrawableRes res: Int) {
169
setImageResource(res)
1710
}
18-
19-
@BindingAdapter("binding:iconTintForFile")
20-
fun AppCompatImageView.setIconTintForFile(file: File) {
21-
val attr = if (file.isDirectory) R.attr.colorOnPrimaryContainer else R.attr.colorOnSurface
22-
val color = MaterialColors.getColor(this, attr)
23-
val colorStateList = ColorStateList.valueOf(color)
24-
ImageViewCompat.setImageTintList(this, colorStateList)
25-
}
26-
27-
@BindingAdapter("binding:typefaceForFile")
28-
fun AppCompatTextView.setTypefaceForFile(file: File) {
29-
val familyName = if (file.isDirectory) "sans-serif-medium" else "sans-serif"
30-
typeface = Typeface.create(familyName, Typeface.NORMAL)
31-
}

buildSrc/src/main/kotlin/AppConfig.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
object AppConfig {
2-
val devCycle = true
2+
val devCycle = false
33

44
const val appId = "com.androidvip.sysctlgui"
55
const val compileSdkVersion = 33

common/design/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ android {
1818
buildTypes {
1919
release {
2020
isMinifyEnabled = !AppConfig.devCycle
21-
isShrinkResources = !AppConfig.devCycle
2221
proguardFiles(
2322
getDefaultProguardFile("proguard-android-optimize.txt"),
2423
"proguard-rules.pro"

common/utils/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ android {
1818
buildTypes {
1919
release {
2020
isMinifyEnabled = !AppConfig.devCycle
21-
isShrinkResources = !AppConfig.devCycle
2221
proguardFiles(
2322
getDefaultProguardFile("proguard-android-optimize.txt"),
2423
"proguard-rules.pro"

0 commit comments

Comments
 (0)