compileSdk 34 → 35, targetSdk 34 → 35, Jvm 17 -> 25
This commit is contained in:
+20
-15
@@ -5,12 +5,12 @@ plugins {
|
|||||||
|
|
||||||
android {
|
android {
|
||||||
namespace 'acidburn.stims'
|
namespace 'acidburn.stims'
|
||||||
compileSdk 34
|
compileSdk 35
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "acidburn.stims"
|
applicationId "acidburn.stims"
|
||||||
minSdk 24
|
minSdk 24
|
||||||
targetSdk 34
|
targetSdk 35
|
||||||
versionCode 2
|
versionCode 2
|
||||||
versionName "1.1"
|
versionName "1.1"
|
||||||
|
|
||||||
@@ -28,18 +28,18 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
compileOptions {
|
compileOptions {
|
||||||
sourceCompatibility JavaVersion.VERSION_1_8
|
sourceCompatibility JavaVersion.VERSION_11
|
||||||
targetCompatibility JavaVersion.VERSION_1_8
|
targetCompatibility JavaVersion.VERSION_11
|
||||||
}
|
}
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
jvmTarget = '1.8'
|
jvmTarget = '11'
|
||||||
}
|
}
|
||||||
buildFeatures {
|
buildFeatures {
|
||||||
compose true
|
compose true
|
||||||
buildConfig true
|
buildConfig true
|
||||||
}
|
}
|
||||||
composeOptions {
|
composeOptions {
|
||||||
kotlinCompilerExtensionVersion '1.5.8'
|
kotlinCompilerExtensionVersion '1.5.15'
|
||||||
}
|
}
|
||||||
packagingOptions {
|
packagingOptions {
|
||||||
resources {
|
resources {
|
||||||
@@ -49,24 +49,29 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'androidx.core:core-ktx:1.12.0'
|
implementation 'androidx.core:core-ktx:1.15.0'
|
||||||
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.7.0'
|
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.8.7'
|
||||||
implementation 'androidx.activity:activity-compose:1.8.2'
|
implementation 'androidx.activity:activity-compose:1.10.1'
|
||||||
implementation platform('androidx.compose:compose-bom:2023.10.01')
|
implementation platform('androidx.compose:compose-bom:2025.02.00')
|
||||||
implementation 'androidx.compose.ui:ui'
|
implementation 'androidx.compose.ui:ui'
|
||||||
implementation 'androidx.compose.ui:ui-graphics'
|
implementation 'androidx.compose.ui:ui-graphics'
|
||||||
implementation 'androidx.compose.ui:ui-tooling-preview'
|
implementation 'androidx.compose.ui:ui-tooling-preview'
|
||||||
implementation 'androidx.compose.material3:material3'
|
implementation 'androidx.compose.material3:material3'
|
||||||
implementation 'androidx.compose.material:material-icons-extended'
|
implementation 'androidx.compose.material:material-icons-extended'
|
||||||
|
|
||||||
// Added for XML theme support
|
implementation 'com.google.android.material:material:1.12.0'
|
||||||
implementation 'com.google.android.material:material:1.11.0'
|
|
||||||
|
|
||||||
testImplementation 'junit:junit:4.13.2'
|
testImplementation 'junit:junit:4.13.2'
|
||||||
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
|
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
|
||||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
|
||||||
androidTestImplementation platform('androidx.compose:compose-bom:2023.10.01')
|
androidTestImplementation platform('androidx.compose:compose-bom:2025.02.00')
|
||||||
androidTestImplementation 'androidx.compose.ui:ui-test-junit4'
|
androidTestImplementation 'androidx.compose.ui:ui-test-junit4'
|
||||||
debugImplementation 'androidx.compose.ui:ui-tooling'
|
debugImplementation 'androidx.compose.ui:ui-tooling'
|
||||||
debugImplementation 'androidx.compose.ui:ui-test-manifest'
|
debugImplementation 'androidx.compose.ui:ui-test-manifest'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Alias for CI/CD systems or scripts that expect the standard Java 'testClasses' task
|
||||||
|
tasks.register("testClasses") {
|
||||||
|
// This maps to compiling the debug unit tests
|
||||||
|
dependsOn "compileDebugUnitTestSources"
|
||||||
|
}
|
||||||
|
|||||||
@@ -24,6 +24,9 @@ import androidx.compose.runtime.getValue
|
|||||||
import androidx.compose.runtime.mutableStateOf
|
import androidx.compose.runtime.mutableStateOf
|
||||||
import androidx.compose.runtime.setValue
|
import androidx.compose.runtime.setValue
|
||||||
import androidx.compose.material.icons.Icons
|
import androidx.compose.material.icons.Icons
|
||||||
|
import androidx.compose.material.icons.automirrored.filled.ArrowBack
|
||||||
|
import androidx.compose.material.icons.automirrored.filled.ArrowForward
|
||||||
|
import androidx.compose.material.icons.automirrored.filled.OpenInNew
|
||||||
import androidx.compose.material.icons.filled.ArrowBack
|
import androidx.compose.material.icons.filled.ArrowBack
|
||||||
import androidx.compose.material.icons.filled.ArrowForward
|
import androidx.compose.material.icons.filled.ArrowForward
|
||||||
import androidx.compose.material.icons.filled.Delete
|
import androidx.compose.material.icons.filled.Delete
|
||||||
@@ -291,7 +294,7 @@ fun SettingsScreen(
|
|||||||
title = { Text("Settings") },
|
title = { Text("Settings") },
|
||||||
navigationIcon = {
|
navigationIcon = {
|
||||||
IconButton(onClick = onBack) {
|
IconButton(onClick = onBack) {
|
||||||
Icon(Icons.Default.ArrowBack, contentDescription = "Back")
|
Icon(Icons.AutoMirrored.Filled.ArrowBack, contentDescription = "Back")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@@ -336,15 +339,15 @@ fun SettingsScreen(
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
Divider()
|
HorizontalDivider()
|
||||||
|
|
||||||
SettingsSectionHeader("ABOUT")
|
SettingsSectionHeader("ABOUT")
|
||||||
|
|
||||||
SettingsInfoRow(label = "Version", value = BuildConfig.VERSION_NAME)
|
SettingsInfoRow(label = "Version", value = BuildConfig.VERSION_NAME)
|
||||||
Divider(modifier = Modifier.padding(horizontal = 16.dp))
|
HorizontalDivider(modifier = Modifier.padding(horizontal = 16.dp))
|
||||||
|
|
||||||
SettingsInfoRow(label = "Author", value = "acidburnmonkey")
|
SettingsInfoRow(label = "Author", value = "acidburnmonkey")
|
||||||
Divider(modifier = Modifier.padding(horizontal = 16.dp))
|
HorizontalDivider(modifier = Modifier.padding(horizontal = 16.dp))
|
||||||
|
|
||||||
Row(
|
Row(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
@@ -363,7 +366,7 @@ fun SettingsScreen(
|
|||||||
modifier = Modifier.weight(1f)
|
modifier = Modifier.weight(1f)
|
||||||
)
|
)
|
||||||
Icon(
|
Icon(
|
||||||
imageVector = Icons.Default.OpenInNew,
|
imageVector = Icons.AutoMirrored.Filled.OpenInNew,
|
||||||
contentDescription = "Open GitHub",
|
contentDescription = "Open GitHub",
|
||||||
tint = MaterialTheme.colorScheme.onSurfaceVariant,
|
tint = MaterialTheme.colorScheme.onSurfaceVariant,
|
||||||
modifier = Modifier.size(18.dp)
|
modifier = Modifier.size(18.dp)
|
||||||
@@ -510,7 +513,7 @@ fun OverlayWarningBanner(onClick: () -> Unit) {
|
|||||||
}
|
}
|
||||||
Spacer(modifier = Modifier.width(6.dp))
|
Spacer(modifier = Modifier.width(6.dp))
|
||||||
Icon(
|
Icon(
|
||||||
imageVector = Icons.Default.ArrowForward,
|
imageVector = Icons.AutoMirrored.Filled.ArrowForward,
|
||||||
contentDescription = null,
|
contentDescription = null,
|
||||||
tint = warningColor,
|
tint = warningColor,
|
||||||
modifier = Modifier.size(16.dp)
|
modifier = Modifier.size(16.dp)
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ class StimsService : Service() {
|
|||||||
|
|
||||||
while (events.hasNextEvent()) {
|
while (events.hasNextEvent()) {
|
||||||
events.getNextEvent(event)
|
events.getNextEvent(event)
|
||||||
if (event.eventType == UsageEvents.Event.MOVE_TO_FOREGROUND) {
|
if (event.eventType == UsageEvents.Event.ACTIVITY_RESUMED) {
|
||||||
lastForegroundPackage = event.packageName
|
lastForegroundPackage = event.packageName
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 2.4 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 304 KiB |
+2
-2
@@ -5,8 +5,8 @@ buildscript {
|
|||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:8.2.2'
|
classpath 'com.android.tools.build:gradle:8.7.3'
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.22"
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.25"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
Categories:
|
Categories:
|
||||||
- System
|
- System
|
||||||
License: GPL-3.0-only
|
License: GPL-3.0-only
|
||||||
|
AuthorName: acidburnmonkey
|
||||||
|
AuthorEmail: developercontact.gnarly348@slmail.me
|
||||||
|
WebSite: https://www.gitshop.cc/
|
||||||
SourceCode: https://github.com/acidburnmonkey/stims
|
SourceCode: https://github.com/acidburnmonkey/stims
|
||||||
IssueTracker: https://github.com/acidburnmonkey/stims/issues
|
IssueTracker: https://github.com/acidburnmonkey/stims/issues
|
||||||
|
|
||||||
@@ -12,16 +15,22 @@ Repo: https://github.com/acidburnmonkey/stims
|
|||||||
Builds:
|
Builds:
|
||||||
- versionName: '1.0'
|
- versionName: '1.0'
|
||||||
versionCode: 1
|
versionCode: 1
|
||||||
commit: v1.0
|
commit: 1bb04b401623c2217eda0e8e2a1f8a251b607c72
|
||||||
gradle:
|
gradle:
|
||||||
- yes
|
- yes
|
||||||
output: app/build/outputs/apk/release/app-release-unsigned.apk
|
output: app/build/outputs/apk/release/app-release-unsigned.apk
|
||||||
|
|
||||||
- versionName: '1.1'
|
- versionName: '1.1'
|
||||||
versionCode: 2
|
versionCode: 2
|
||||||
commit: v1.1
|
commit: 908fc99342ffaa46f84ce1a67868f453e8a61372
|
||||||
|
subdir: app
|
||||||
|
sudo:
|
||||||
|
- echo "deb https://deb.debian.org/debian trixie main" > /etc/apt/sources.list.d/trixie.list
|
||||||
|
- apt-get update
|
||||||
|
- apt-get install -y -t trixie openjdk-26-jdk-headless
|
||||||
|
- update-alternatives --auto java
|
||||||
gradle:
|
gradle:
|
||||||
- yes
|
- yes
|
||||||
output: app/build/outputs/apk/release/app-release-unsigned.apk
|
|
||||||
|
|
||||||
AutoUpdateMode: Version
|
AutoUpdateMode: Version
|
||||||
UpdateCheckMode: Tags
|
UpdateCheckMode: Tags
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
android.useAndroidX=true
|
android.useAndroidX=true
|
||||||
android.enableJetifier=true
|
android.enableJetifier=true
|
||||||
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
|
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
|
||||||
|
org.gradle.java.home=/usr/lib/jvm/java-25-openjdk
|
||||||
org.gradle.configuration-cache=true
|
org.gradle.configuration-cache=true
|
||||||
|
|||||||
+3
-1
@@ -1,6 +1,8 @@
|
|||||||
|
#Sat Mar 28 00:18:44 EDT 2026
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
|
distributionSha256Sum=31c55713e40233a8303827ceb42ca48a47267a0ad4bab9177123121e71524c26
|
||||||
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|||||||
Reference in New Issue
Block a user