Compare commits
102
Commits
1.1a
..
e7af455803
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e7af455803 | ||
|
|
1cf43f41d3 | ||
|
|
52d2aa37fa | ||
|
|
b1a96d1003 | ||
|
|
d858795a54 | ||
|
|
dbec6ade39 | ||
|
|
937cd31bac | ||
|
|
ad03d60934 | ||
|
|
55f9e52c19 | ||
|
|
af7ebfc6fb | ||
|
|
2b3c4cea80 | ||
|
|
16bfc6cbba | ||
|
|
aa0dfa23fa | ||
|
|
4c245337bd | ||
|
|
00adc184d7 | ||
|
|
32210875c4 | ||
|
|
63a10cbd12 | ||
|
|
43cca9e874 | ||
|
|
d97c63f75f | ||
|
|
50e5e74f59 | ||
|
|
94561e2f96 | ||
|
|
23513fc8fb | ||
|
|
bea9bb0b96 | ||
|
|
0da8f01a92 | ||
|
|
ede977452d | ||
|
|
e12494e5ed | ||
|
|
1c7c66ee50 | ||
|
|
88f86c75c8 | ||
|
|
036db580f5 | ||
|
|
6dcd4a9e25 | ||
|
|
da276fb8f8 | ||
|
|
05301b7bd5 | ||
|
|
78c35c28b3 | ||
|
|
863ede58b4 | ||
|
|
7d6692b17a | ||
|
|
4f31eadbd4 | ||
|
|
56d2d2684d | ||
|
|
0668c65bfe | ||
|
|
abe3d5e958 | ||
|
|
7379e27f90 | ||
|
|
be8b297235 | ||
|
|
64ad296815 | ||
|
|
17266f3c0b | ||
|
|
0d9cae6550 | ||
|
|
41c1eb1257 | ||
|
|
4a6164ac84 | ||
|
|
aec008e7be | ||
|
|
0d76b994a2 | ||
|
|
14bfaabb11 | ||
|
|
d77c5ec391 | ||
|
|
b793ac7a6e | ||
|
|
d04e78694c | ||
|
|
d6dd4e6b96 | ||
|
|
44e5c54c77 | ||
|
|
bdb49cd085 | ||
|
|
e76aca71eb | ||
|
|
98321b4c3b | ||
|
|
b082fc44dc | ||
|
|
0776814283 | ||
|
|
3a9718d1a7 | ||
|
|
d9ef921a43 | ||
|
|
c415e8a829 | ||
|
|
daa291d5de | ||
|
|
d2987ebe1e | ||
|
|
ed32fd1183 | ||
|
|
83b1ec9c92 | ||
|
|
5e982e93ee | ||
|
|
846081536d | ||
|
|
9f2f7844f9 | ||
|
|
9966bba33c | ||
|
|
ae59b054c9 | ||
|
|
8bed6b040b | ||
|
|
d1933ec661 | ||
|
|
b40932624a | ||
|
|
6c5e727c67 | ||
|
|
6420ae2f13 | ||
|
|
91b234777d | ||
|
|
b1a646f1f2 | ||
|
|
89134681f3 | ||
|
|
3b670b8ce2 | ||
|
|
b0ba07a7fb | ||
|
|
07adda1d74 | ||
|
|
6a86d05bad | ||
|
|
dc94c465d6 | ||
|
|
950bfbb42e | ||
|
|
927ac05f03 | ||
|
|
d6d84c6892 | ||
|
|
a34c1dbb11 | ||
|
|
6df13a044b | ||
|
|
68fb0023da | ||
|
|
686982c096 | ||
|
|
84898895df | ||
|
|
472237ba8f
|
||
|
|
2ae7e1fb8c | ||
|
|
ed4d751dce | ||
|
|
b5274d2113 | ||
|
|
d7ad8ebd74 | ||
|
|
43a521de16 | ||
|
|
4cf8c497a8 | ||
|
|
fd57b5dee4 | ||
|
|
49b80dc3b9 | ||
|
|
c0e3943700 |
@@ -23,7 +23,7 @@ jobs:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- name: set up secrets
|
||||
run: |
|
||||
|
||||
+16
-12
@@ -1,9 +1,9 @@
|
||||
plugins {
|
||||
id 'com.android.application'
|
||||
id 'org.jetbrains.kotlin.android'
|
||||
id 'org.jetbrains.kotlin.plugin.serialization' version '2.2.20'
|
||||
id 'org.jetbrains.kotlin.plugin.compose' version '2.2.20'
|
||||
id 'com.mikepenz.aboutlibraries.plugin' version '12.2.4'
|
||||
id 'org.jetbrains.kotlin.plugin.serialization' version '2.2.21'
|
||||
id 'org.jetbrains.kotlin.plugin.compose' version '2.2.21'
|
||||
id 'com.mikepenz.aboutlibraries.plugin' version '13.1.0'
|
||||
}
|
||||
|
||||
|
||||
@@ -95,13 +95,17 @@ aboutLibraries {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'androidx.compose.material3:material3:1.3.2'
|
||||
implementation 'androidx.navigation:navigation-compose:2.9.4'
|
||||
implementation 'androidx.compose.material3:material3:1.4.0'
|
||||
implementation "androidx.compose.material:material:1.9.5"
|
||||
implementation 'androidx.compose.material:material-icons-extended:1.7.8'
|
||||
implementation 'androidx.navigation:navigation-compose:2.9.6'
|
||||
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs_nio:2.1.5'
|
||||
|
||||
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.9.0'
|
||||
|
||||
implementation 'androidx.preference:preference-ktx:1.2.1'
|
||||
implementation 'androidx.compose.ui:ui'
|
||||
implementation "androidx.compose.material:material:1.9.1"
|
||||
implementation "androidx.activity:activity-ktx:1.11.0"
|
||||
implementation "androidx.activity:activity-ktx:1.12.1"
|
||||
|
||||
implementation 'androidx.compose.ui:ui-tooling-preview'
|
||||
implementation 'com.google.android.material:material:1.13.0'
|
||||
@@ -110,11 +114,11 @@ dependencies {
|
||||
implementation 'com.caverock:androidsvg-aar:1.4'
|
||||
implementation 'com.github.chrisbanes:PhotoView:2.3.0'
|
||||
|
||||
implementation 'com.mikepenz:aboutlibraries:12.2.4'
|
||||
implementation 'com.mikepenz:aboutlibraries-compose-m3:12.2.4'
|
||||
implementation 'com.mikepenz:aboutlibraries-core:12.2.4'
|
||||
implementation 'com.mikepenz:aboutlibraries:13.1.0'
|
||||
implementation 'com.mikepenz:aboutlibraries-compose-m3:13.1.0'
|
||||
implementation 'com.mikepenz:aboutlibraries-core:13.1.0'
|
||||
|
||||
|
||||
implementation platform('androidx.compose:compose-bom:2025.09.00')
|
||||
debugImplementation 'androidx.compose.ui:ui-tooling:1.9.1'
|
||||
implementation platform('androidx.compose:compose-bom:2025.11.01')
|
||||
debugImplementation 'androidx.compose.ui:ui-tooling:1.9.5'
|
||||
}
|
||||
@@ -19,13 +19,15 @@ import androidx.compose.material.icons.automirrored.filled.ArrowBack
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.tooling.preview.Preview
|
||||
import androidx.compose.ui.unit.dp
|
||||
import net.helcel.beans.R
|
||||
import net.helcel.beans.activity.sub.EditPlaceScreen
|
||||
import net.helcel.beans.countries.World
|
||||
|
||||
@Preview
|
||||
@Composable
|
||||
fun EditScreen(onExit:()->Unit) {
|
||||
fun EditScreen(onExit:()->Unit = {}) {
|
||||
SysTheme {
|
||||
Scaffold(
|
||||
topBar = {
|
||||
|
||||
@@ -18,6 +18,7 @@ import androidx.compose.material.TopAppBar
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.filled.DateRange
|
||||
import androidx.compose.material.icons.filled.Edit
|
||||
import androidx.compose.material.icons.filled.Percent
|
||||
import androidx.compose.material.icons.filled.Settings
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.remember
|
||||
@@ -82,7 +83,7 @@ class MainScreen : ComponentActivity() {
|
||||
Icon(Icons.Default.Edit, contentDescription = "Edit")
|
||||
}
|
||||
IconButton(onClick = { nav.navigate("stats") }){
|
||||
Icon(Icons.Default.DateRange, contentDescription = "Stats")
|
||||
Icon(Icons.Default.Percent, contentDescription = "Stats")
|
||||
}
|
||||
IconButton(onClick = { nav.navigate("settings") }) {
|
||||
Icon(Icons.Default.Settings, contentDescription = "Settings")
|
||||
|
||||
@@ -118,9 +118,10 @@ fun settingsNav(): NavHostController {
|
||||
return navController
|
||||
}
|
||||
|
||||
@Preview
|
||||
@Composable
|
||||
fun SettingsMainScreen(onExit: ()->Unit = {}) {
|
||||
var nav: NavHostController? = null
|
||||
val nav: NavHostController = settingsNav()
|
||||
SysTheme {
|
||||
Scaffold(
|
||||
topBar = {
|
||||
@@ -128,7 +129,7 @@ fun SettingsMainScreen(onExit: ()->Unit = {}) {
|
||||
title = { Text(stringResource(R.string.action_settings)) },
|
||||
navigationIcon = {
|
||||
IconButton(onClick = {
|
||||
if(nav!=null && !nav!!.popBackStack())
|
||||
if(!nav.popBackStack())
|
||||
onExit()
|
||||
}) {
|
||||
Icon(
|
||||
@@ -141,13 +142,12 @@ fun SettingsMainScreen(onExit: ()->Unit = {}) {
|
||||
}
|
||||
) { innerPadding ->
|
||||
Box(modifier = Modifier.padding(innerPadding)) {
|
||||
nav = settingsNav()
|
||||
SettingsScreen()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Preview
|
||||
@Composable
|
||||
fun SettingsScreen(navController: NavHostController = settingsNav()) {
|
||||
val context = LocalContext.current
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||
plugins {
|
||||
id 'com.android.application' version '8.13.0' apply false
|
||||
id 'com.android.library' version '8.13.0' apply false
|
||||
id 'org.jetbrains.kotlin.android' version '2.2.20' apply false
|
||||
id 'com.android.application' version '8.13.1' apply false
|
||||
id 'com.android.library' version '8.13.1' apply false
|
||||
id 'org.jetbrains.kotlin.android' version '2.2.21' apply false
|
||||
}
|
||||
Vendored
BIN
Binary file not shown.
+2
-2
@@ -1,7 +1,7 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionSha256Sum=a17ddd85a26b6a7f5ddb71ff8b05fc5104c0202c6e64782429790c933686c806
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip
|
||||
distributionSha256Sum=72f44c9f8ebcb1af43838f45ee5c4aa9c5444898b3468ab3f4af7b6076c5bc3f
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip
|
||||
networkTimeout=10000
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
|
||||
Reference in New Issue
Block a user