Skip to content

Commit e159170

Browse files
committed
chore: application init
1 parent 9d57066 commit e159170

8 files changed

Lines changed: 37 additions & 135 deletions

File tree

.idea/misc.xml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle.kts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ android {
3838
}
3939
buildFeatures {
4040
compose = true
41+
buildConfig = true
4142
}
4243
composeOptions {
4344
kotlinCompilerExtensionVersion = "1.4.3"
@@ -47,6 +48,24 @@ android {
4748
excludes += "/META-INF/{AL2.0,LGPL2.1}"
4849
}
4950
}
51+
52+
// flavorDimensions += "deploy"
53+
// productFlavors {
54+
// create("tb") {
55+
// dimension = "deploy"
56+
// applicationIdSuffix = ".tb"
57+
//
58+
// manifestPlaceholders["appLabel"] = "머니몽 TB"
59+
// buildConfigField("Boolean", "IS_TB", "true")
60+
// }
61+
// create("live") {
62+
// dimension = "deploy"
63+
// applicationIdSuffix = ".live"
64+
//
65+
// manifestPlaceholders["appLable"] = "머니몽"
66+
// buildConfigField("Boolean", "IS_TB", "false")
67+
// }
68+
// }
5069
}
5170

5271
dependencies {

app/src/main/AndroidManifest.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:tools="http://schemas.android.com/tools">
44

5+
<uses-permission android:name="android.permission.INTERNET" />
6+
57
<application
8+
android:name=".MoneyMongApplication"
9+
android:usesCleartextTraffic="true"
610
android:allowBackup="true"
711
android:dataExtractionRules="@xml/data_extraction_rules"
812
android:fullBackupContent="@xml/backup_rules"

app/src/main/java/com/moneymong/moneymong/MainActivity.kt

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,15 @@ import androidx.compose.material3.Surface
99
import androidx.compose.material3.Text
1010
import androidx.compose.runtime.Composable
1111
import androidx.compose.ui.Modifier
12-
import androidx.compose.ui.tooling.preview.Preview
13-
import com.moneymong.moneymong.ui.theme.MoneymongandroidTheme
14-
1512
class MainActivity : ComponentActivity() {
1613
override fun onCreate(savedInstanceState: Bundle?) {
1714
super.onCreate(savedInstanceState)
1815
setContent {
19-
MoneymongandroidTheme {
20-
// A surface container using the 'background' color from the theme
21-
Surface(
22-
modifier = Modifier.fillMaxSize(),
23-
color = MaterialTheme.colorScheme.background
24-
) {
25-
Greeting("Android")
26-
}
16+
Surface(
17+
modifier = Modifier.fillMaxSize(),
18+
color = MaterialTheme.colorScheme.background
19+
) {
20+
Greeting("Android")
2721
}
2822
}
2923
}
@@ -35,12 +29,4 @@ fun Greeting(name: String, modifier: Modifier = Modifier) {
3529
text = "Hello $name!",
3630
modifier = modifier
3731
)
38-
}
39-
40-
@Preview(showBackground = true)
41-
@Composable
42-
fun GreetingPreview() {
43-
MoneymongandroidTheme {
44-
Greeting("Android")
45-
}
4632
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package com.moneymong.moneymong
2+
3+
import android.app.Application
4+
5+
class MoneyMongApplication : Application() {
6+
override fun onCreate() {
7+
super.onCreate()
8+
}
9+
}

app/src/main/java/com/moneymong/moneymong/ui/theme/Color.kt

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

app/src/main/java/com/moneymong/moneymong/ui/theme/Theme.kt

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

app/src/main/java/com/moneymong/moneymong/ui/theme/Type.kt

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

0 commit comments

Comments
 (0)