Skip to content

Commit bd93b08

Browse files
authored
Merge pull request #80 from LeoAndo/release-v1.0.3
Release v1.0.3
2 parents 8fb7ebd + 112d7ce commit bd93b08

21 files changed

Lines changed: 71 additions & 346 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Android CI
22

33
on:
4+
push:
45
pull_request:
56
workflow_dispatch:
67

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ Minimalist template for personal app development<br>
55
- IDE: Android Studio Electric Eel 2022.1.1
66
- Support OS version: 10.0 later
77

8+
# setup
9+
see [wiki](https://github.com/LeoAndo/AndroidAppTemplate/wiki)
10+
811
# features
912
- M3 (Custom)
1013
- added basic library (network / DI etc.)
@@ -14,7 +17,4 @@ Minimalist template for personal app development<br>
1417

1518
# capture: Android Resizable Emulator API 33
1619

17-
<img src="https://user-images.githubusercontent.com/16476224/221370788-e7929893-7519-4f6c-ae0c-6a311291492c.png" width=320 />
18-
19-
# refs
20-
https://github.com/LeoAndo/AndroidGithubSearch<br>
20+
<img src="https://user-images.githubusercontent.com/16476224/222953372-32fc783a-c7da-480f-8529-6c794779d636.png" width=320 />

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ android {
1818
applicationId "com.leoleo.androidapptemplate"
1919
minSdk 29
2020
targetSdk 33
21-
versionCode 102
22-
versionName "1.0.2"
21+
versionCode 100
22+
versionName "1.0.0"
2323

2424
testInstrumentationRunner "com.leoleo.androidapptemplate.CustomTestRunner"
2525
vectorDrawables {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
package com.leoleo.androidapptemplate
22
/*
3-
Tests for Composable functions that use the android library are placed here.
3+
UITestやAndroid Platform APIに依存するクラスのテストはここに書く
44
*/

app/src/main/java/com/leoleo/androidapptemplate/ui/compact/CompactMainScreen.kt

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ import androidx.compose.foundation.layout.Arrangement
44
import androidx.compose.foundation.layout.Column
55
import androidx.compose.foundation.layout.fillMaxSize
66
import androidx.compose.foundation.layout.padding
7-
import androidx.compose.material3.Button
8-
import androidx.compose.material3.Text
7+
import androidx.compose.material3.*
98
import androidx.compose.runtime.Composable
109
import androidx.compose.runtime.getValue
1110
import androidx.compose.runtime.mutableStateOf
@@ -18,7 +17,7 @@ import androidx.compose.ui.res.stringResource
1817
import androidx.compose.ui.unit.dp
1918
import com.leoleo.androidapptemplate.R
2019
import com.leoleo.androidapptemplate.ui.component.AppSurface
21-
import com.leoleo.androidapptemplate.ui.preview.PreviewFoldableDevice
20+
import com.leoleo.androidapptemplate.ui.preview.PreviewPhoneDevice
2221

2322
@Composable
2423
fun CompactMainScreen() {
@@ -30,20 +29,26 @@ fun CompactMainScreen() {
3029
CompactMainScreenStateless(modifier, count, onClick = { count++ })
3130
}
3231

32+
@OptIn(ExperimentalMaterial3Api::class)
3333
@Composable
3434
private fun CompactMainScreenStateless(modifier: Modifier, count: Int, onClick: () -> Unit) {
35-
Column(
36-
modifier = modifier,
37-
verticalArrangement = Arrangement.Center,
38-
horizontalAlignment = Alignment.CenterHorizontally
39-
) {
40-
Button(onClick = { onClick() }) {
41-
Text(text = "CompactMainScreen: $count")
42-
}
43-
}
35+
Scaffold(
36+
floatingActionButton = {
37+
FloatingActionButton(onClick = { onClick() }) {
38+
Text(text = "+")
39+
}
40+
}, content = { padding ->
41+
Column(
42+
modifier = modifier.padding(padding),
43+
verticalArrangement = Arrangement.Center,
44+
horizontalAlignment = Alignment.CenterHorizontally
45+
) {
46+
Text(text = "CompactMainScreen: $count")
47+
}
48+
})
4449
}
4550

46-
@PreviewFoldableDevice
51+
@PreviewPhoneDevice
4752
@Composable
4853
private fun Prev_CompactMainScreen() {
4954
val modifier = Modifier

app/src/main/java/com/leoleo/androidapptemplate/ui/component/AppAlertDialog.kt

Lines changed: 0 additions & 124 deletions
This file was deleted.

app/src/main/java/com/leoleo/androidapptemplate/ui/component/AppError.kt

Lines changed: 0 additions & 44 deletions
This file was deleted.

app/src/main/java/com/leoleo/androidapptemplate/ui/component/AppLoading.kt

Lines changed: 0 additions & 27 deletions
This file was deleted.

app/src/main/java/com/leoleo/androidapptemplate/ui/component/NetworkImage.kt

Lines changed: 0 additions & 84 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package com.leoleo.androidapptemplate.ui.component
2+
/*
3+
Composeの共通コンポーネントはここに配置する
4+
*/

0 commit comments

Comments
 (0)