Skip to content

Commit 0fba091

Browse files
committed
refactor: m3
1 parent 756ee2b commit 0fba091

File tree

87 files changed

+2097
-809
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+2097
-809
lines changed

README.md

Lines changed: 36 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
1-
# Breaking Bad - Jetpack Compose
2-
<a href='https://developer.android.com'><img src='http://img.shields.io/badge/platform-android-green.svg'/></a>
3-
<a href="https://kotlinlang.org/docs/whatsnew1920.html"><img src = "https://shields.io/badge/kotlin-1.9.20-blue" /></a>
4-
<a href="https://developer.android.com/jetpack/compose/bom"><img src = "https://img.shields.io/badge/jetpack%20compose-2023.10.01-brightgreen" /></a>
5-
<a href="https://opensource.org/licenses/Apache-2.0"><img src="https://img.shields.io/badge/license-Apache%202.0-blue.svg"/></a>
6-
[![ktlint](https://img.shields.io/badge/code%20style-%E2%9D%A4-FF4081.svg)](https://ktlint.github.io/)
7-
8-
<p >
9-
<img src="/gif/0.gif" width="32%"/>
10-
<img src="/gif/1.gif" width="32%"/>
11-
<img src="/gif/2.gif" width="32%"/>
1+
<h1 align="center">Breaking Bad - Jetpack Compose</h1>
2+
3+
<p align="center">
4+
<a href='https://developer.android.com'><img src='http://img.shields.io/badge/platform-android-green.svg'/></a>
5+
<a href="https://kotlinlang.org/docs/whatsnew1920.html"><img src = "https://shields.io/badge/kotlin-1.9.23-blue" /></a>
6+
<a href="https://developer.android.com/jetpack/compose/bom"><img src = "https://img.shields.io/badge/jetpack%20compose-2024.04.00-brightgreen" /></a>
7+
<a href="https://opensource.org/licenses/Apache-2.0"><img src="https://img.shields.io/badge/license-Apache%202.0-blue.svg"/></a>
8+
</p>
9+
10+
<p align="center">
11+
<img src="/gif/0.gif" width="32%"/>
12+
<img src="/gif/1.gif" width="32%"/>
13+
<img src="/gif/2.gif" width="32%"/>
1214
</p>
1315

1416
## Tech Stack
17+
1518
- [Jetpack](https://developer.android.com/jetpack)
1619
- Compose - Define your UI programmatically with composable functions that describe its shape
1720
and data dependencies.
@@ -24,18 +27,36 @@
2427
- Clean Architecture (nowinandroid)
2528
- MVVM pattern
2629
- Kotlin Coroutines & Flows
27-
- Material Design3
30+
- Material Design 3
2831
- Single Activity
2932
- StaggeredVerticalGrid
3033
- [Gradle Version Catalog](https://docs.gradle.org/7.4/userguide/platforms.html)
3134
- [Retrofit2](https://github.com/square/retrofit)
3235
- [Coil-Compose](https://coil-kt.github.io/coil/compose)
3336
- [Timber](https://github.com/JakeWharton/timber)
3437

35-
## Multi Module ([nowinandroid](https://github.com/android/nowinandroid))
36-
![](project.dot.png)
38+
## Multi Module
39+
```
40+
├── app
41+
├── core
42+
│   ├── common
43+
│   ├── data
44+
│   ├── database
45+
│   ├── datastore
46+
│   ├── designsystem
47+
│   ├── domain
48+
│   ├── model
49+
│   └── network
50+
└── feature
51+
   ├── bottombar
52+
   ├── detail
53+
   ├── favorite
54+
   ├── list
55+
   ├── main
56+
   └── setting
57+
```
3758

38-
### If you think this reposittory is useful, please press the star button at the top. ⭐️
59+
![](project.dot.png)
3960

4061
# License
4162

app/build.gradle.kts

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,9 @@ android {
4343
}
4444

4545
dependencies {
46-
47-
implementation(project(":core:data"))
48-
implementation(project(":core:designsystem"))
49-
50-
implementation(project(":feature:list"))
51-
implementation(project(":feature:favorite"))
52-
implementation(project(":feature:detail"))
46+
implementation(project(":feature:main"))
5347

5448
implementation(libs.androidx.startup)
55-
implementation(libs.androidx.appcompat)
56-
implementation(libs.androidx.activity.compose)
57-
58-
implementation(libs.androidx.navigation.compose)
59-
implementation(libs.androidx.hilt.navigation.compose)
60-
6149
implementation(libs.androidx.compose.material3)
62-
6350
implementation(libs.timber)
6451
}

app/src/main/AndroidManifest.xml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,25 @@
55
<uses-permission android:name="android.permission.INTERNET" />
66

77
<application
8-
android:name=".app.BrBaApplication"
9-
android:allowBackup="true"
8+
android:name=".BrBaApplication"
9+
android:enableOnBackInvokedCallback="true"
1010
android:hardwareAccelerated="true"
1111
android:icon="@mipmap/ic_launcher"
1212
android:label="@string/app_name"
1313
android:largeHeap="true"
1414
android:supportsRtl="true"
15-
android:enableOnBackInvokedCallback="true"
1615
android:theme="@style/Theme.BrBaCompose">
17-
<activity
18-
android:name=".app.MainActivity"
19-
android:exported="true"
20-
android:theme="@style/Theme.BrBaCompose.NoActionBar">
21-
<intent-filter>
22-
<action android:name="android.intent.action.MAIN" />
2316

24-
<category android:name="android.intent.category.LAUNCHER" />
25-
</intent-filter>
26-
</activity>
2717
<provider
2818
android:name="androidx.startup.InitializationProvider"
2919
android:authorities="io.github.shinhyo.brba.androidx-startup"
3020
android:exported="false"
3121
tools:node="merge">
3222
<meta-data
33-
android:name="io.github.shinhyo.brba.app.initializer.TimberInitializer"
23+
android:name="io.github.shinhyo.brba.initializer.TimberInitializer"
3424
android:value="androidx.startup" />
3525
</provider>
26+
3627
</application>
3728

3829
</manifest>

app/src/main/java/io/github/shinhyo/brba/app/BrBaApplication.kt renamed to app/src/main/java/io/github/shinhyo/brba/BrBaApplication.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package io.github.shinhyo.brba.app
16+
package io.github.shinhyo.brba
1717

1818
import android.app.Application
1919
import dagger.hilt.android.HiltAndroidApp

app/src/main/java/io/github/shinhyo/brba/app/MainActivity.kt

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

app/src/main/java/io/github/shinhyo/brba/app/ui/main/MainScreen.kt

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

app/src/main/java/io/github/shinhyo/brba/app/initializer/TimberInitializer.kt renamed to app/src/main/java/io/github/shinhyo/brba/initializer/TimberInitializer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package io.github.shinhyo.brba.app.initializer
16+
package io.github.shinhyo.brba.initializer
1717

1818
import android.content.Context
1919
import androidx.startup.Initializer
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<resources>
2+
3+
<style name="Theme.BrBaCompose" parent="android:Theme.Material.NoActionBar" />
4+
5+
</resources>

app/src/main/res/values/colors.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
3-
<color name="immersive_sys_ui">#33000000</color>
43
</resources>

app/src/main/res/values/themes.xml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
<resources>
2-
<!-- Base application theme. -->
3-
<style name="Theme.BrBaCompose" parent="android:Theme.Material.Light.NoActionBar">
4-
<item name="android:statusBarColor">@color/immersive_sys_ui</item>
5-
</style>
62

7-
<style name="Theme.BrBaCompose.NoActionBar">
8-
<item name="windowActionBar">false</item>
9-
<item name="windowNoTitle">true</item>
10-
</style>
3+
<style name="Theme.BrBaCompose" parent="android:Theme.Material.Light.NoActionBar" />
114

12-
<style name="Theme.BrBaCompose.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
13-
14-
<style name="Theme.BrBaCompose.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
155
</resources>

0 commit comments

Comments
 (0)