Skip to content

Commit

Permalink
Reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
syxc committed Jul 4, 2024
1 parent b517add commit 2fb5a43
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="108dp"
Expand Down
1 change: 1 addition & 0 deletions androidApp/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">kmp-app</string>
</resources>
1 change: 1 addition & 0 deletions androidApp/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme" parent="android:style/Theme.Material.Light.NoActionBar" />
</resources>
7 changes: 0 additions & 7 deletions androidApp/src/main/res/xml/data_extraction_rules.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>

<!--
Sample data extraction rules file; uncomment and customize as necessary.
See https://developer.android.com/about/versions/12/backup-restore#xml-changes
for details.
-->

<data-extraction-rules>
<cloud-backup>
<exclude domain="root" />
Expand Down
3 changes: 0 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ kotlin.mpp.androidGradlePluginCompatibility.nowarn=true
# https://kotl.in/issue
kotlin.apple.xcodeCompatibility.nowarn=true

# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official

# Android
android.useAndroidX=true
android.enableJetifier=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ import app.cash.redwood.schema.Widget
interface Schema

@Widget(2)
data class Text(
@Property(1) val text: String?
)
data class Text(@Property(1) val text: String?)

@Widget(3)
data class Button(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@ import com.jithub.app.shared.redwood.compose.Button
import com.jithub.app.shared.redwood.compose.Text

@Composable
fun Counter(
modifier: Modifier = Modifier,
value: Int = 0,
labels: StringList? = StringList(listOf())
) {
fun Counter(modifier: Modifier = Modifier, value: Int = 0, labels: StringList? = StringList(listOf())) {
var count by rememberSaveable { mutableIntStateOf(value) }
Column(
width = Constraint.Fill,
Expand Down

0 comments on commit 2fb5a43

Please sign in to comment.