-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from Nexters/develop
v1.0.0
- Loading branch information
Showing
250 changed files
with
8,738 additions
and
366 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[*.{kt,kts}] | ||
ij_kotlin_allow_trailing_comma=true | ||
ij_kotlin_allow_trailing_comma_on_call_site=true | ||
ktlint_function_naming_ignore_when_annotated_with=Composable, Test | ||
ktlint_standard_backing-property-naming = disabled | ||
ktlint_standard_binary-expression-wrapping = disabled | ||
ktlint_standard_chain-method-continuation = disabled | ||
ktlint_standard_class-signature = disabled | ||
ktlint_standard_condition-wrapping = disabled | ||
ktlint_standard_function-expression-body = disabled | ||
ktlint_standard_function-literal = disabled | ||
ktlint_standard_function-type-modifier-spacing = disabled | ||
ktlint_standard_multiline-loop = disabled | ||
ktlint_standard_function-signature = disabled | ||
ktlint_standard_string-template-indent = disabled | ||
ktlint_standard_multiline-expression-wrapping = disabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: PR Builder | ||
|
||
on: | ||
pull_request: | ||
branches: [ develop, main, chore/*, feat/*, test/*, fix/*, refactor/* ] | ||
|
||
jobs: | ||
build: | ||
name: PR Checker | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Gradle cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: 17 | ||
|
||
- name: Create Local Properties | ||
run: touch local.properties | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Lint Check | ||
run: ./gradlew ktlintCheck | ||
|
||
- name: debug unit test | ||
run: ./gradlew testDebugUnitTest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,80 @@ | ||
import org.jetbrains.kotlin.konan.properties.Properties | ||
|
||
plugins { | ||
alias(libs.plugins.android.application) | ||
alias(libs.plugins.kotlin.android) | ||
alias(libs.plugins.kotlin.compose) | ||
alias(libs.plugins.dobedobe.android.application) | ||
alias(libs.plugins.dobedobe.kotlinx.serialization) | ||
} | ||
|
||
val properties = | ||
Properties().apply { | ||
load(rootProject.file("local.properties").inputStream()) | ||
} | ||
|
||
android { | ||
namespace = "com.chipichipi.dobedobe" | ||
compileSdk = 35 | ||
namespace = libs.versions.applicationId.get() | ||
|
||
defaultConfig { | ||
applicationId = "com.chipichipi.dobedobe" | ||
minSdk = 26 | ||
targetSdk = 35 | ||
versionCode = 1 | ||
versionName = "1.0.0" | ||
signingConfigs { | ||
create("release") { | ||
keyAlias = properties.getProperty("KEY_ALIAS") | ||
keyPassword = properties.getProperty("KEY_PASSWORD") | ||
storeFile = file("${project.rootDir.absolutePath}/keystore/dobedobe_key.keystore") | ||
storePassword = properties.getProperty("STORE_PASSWORD") | ||
} | ||
} | ||
|
||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" | ||
defaultConfig { | ||
applicationId = libs.versions.applicationId.get() | ||
versionName = libs.versions.appVersion.get() | ||
versionCode = libs.versions.versionCode.get().toInt() | ||
} | ||
|
||
buildTypes { | ||
release { | ||
isMinifyEnabled = false | ||
isMinifyEnabled = true | ||
isShrinkResources = true | ||
proguardFiles( | ||
getDefaultProguardFile("proguard-android-optimize.txt"), | ||
"proguard-rules.pro" | ||
"proguard-rules.pro", | ||
) | ||
signingConfig = signingConfigs.getByName("release") | ||
} | ||
} | ||
compileOptions { | ||
sourceCompatibility = JavaVersion.VERSION_11 | ||
targetCompatibility = JavaVersion.VERSION_11 | ||
} | ||
kotlinOptions { | ||
jvmTarget = "11" | ||
} | ||
buildFeatures { | ||
compose = true | ||
|
||
packaging { | ||
resources.excludes.apply { | ||
add("/META-INF/{AL2.0,LGPL2.1}") | ||
add("META-INF/**") | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation(projects.feature.dashboard) | ||
implementation(projects.feature.goal) | ||
implementation(projects.feature.setting) | ||
|
||
implementation(projects.core.common) | ||
implementation(projects.core.data) | ||
implementation(projects.core.designsystem) | ||
implementation(projects.core.model) | ||
implementation(projects.core.notifications) | ||
|
||
implementation(libs.androidx.core.ktx) | ||
implementation(libs.androidx.lifecycle.runtime.ktx) | ||
implementation(libs.androidx.activity.compose) | ||
implementation(platform(libs.androidx.compose.bom)) | ||
implementation(libs.androidx.ui) | ||
implementation(libs.androidx.ui.graphics) | ||
implementation(libs.androidx.ui.tooling.preview) | ||
implementation(libs.androidx.material3) | ||
testImplementation(libs.junit) | ||
androidTestImplementation(libs.androidx.junit) | ||
androidTestImplementation(libs.androidx.espresso.core) | ||
androidTestImplementation(platform(libs.androidx.compose.bom)) | ||
androidTestImplementation(libs.androidx.ui.test.junit4) | ||
debugImplementation(libs.androidx.ui.tooling) | ||
debugImplementation(libs.androidx.ui.test.manifest) | ||
} | ||
implementation(libs.androidx.navigation.compose) | ||
implementation(libs.androidx.lifecycle.runtimeCompose) | ||
implementation(libs.androidx.lifecycle.viewModelCompose) | ||
implementation(libs.androidx.core.splashscreen) | ||
implementation(platform(libs.koin.bom)) | ||
implementation(libs.koin.android) | ||
implementation(libs.koin.androidx.compose) | ||
implementation(libs.koin.androidx.startup) | ||
testImplementation(libs.koin.test.junit5) | ||
testImplementation(libs.koin.android.test) | ||
testImplementation(libs.androidx.navigation.testing) | ||
|
||
androidTestImplementation(libs.androidx.lifecycle.runtimeTesting) | ||
androidTestImplementation(libs.androidx.navigation.testing) | ||
androidTestImplementation(libs.androidx.test.core) | ||
androidTestImplementation(libs.androidx.test.espresso.core) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions
20
app/src/main/kotlin/com/chipichipi/dobedobe/DobeDobeApplication.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.chipichipi.dobedobe | ||
|
||
import android.app.Application | ||
import com.chipichipi.dobedobe.di.appModule | ||
import org.koin.android.ext.koin.androidContext | ||
import org.koin.android.ext.koin.androidLogger | ||
import org.koin.androix.startup.KoinStartup | ||
import org.koin.core.annotation.KoinExperimentalAPI | ||
import org.koin.core.logger.Level | ||
import org.koin.dsl.koinConfiguration | ||
|
||
@OptIn(KoinExperimentalAPI::class) | ||
class DobeDobeApplication : Application(), KoinStartup { | ||
override fun onKoinStartup() = | ||
koinConfiguration { | ||
androidLogger(level = Level.DEBUG) | ||
androidContext(applicationContext) | ||
modules(appModule) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
app/src/main/kotlin/com/chipichipi/dobedobe/di/AppModule.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.chipichipi.dobedobe.di | ||
|
||
import com.chipichipi.dobedobe.core.data.di.dataModule | ||
import com.chipichipi.dobedobe.feature.dashboard.di.dashboardModule | ||
import com.chipichipi.dobedobe.feature.goal.di.goalModule | ||
import com.chipichipi.dobedobe.feature.setting.di.settingModule | ||
import com.chipichipi.dobedobe.onboarding.OnboardingViewModel | ||
import com.chipichipi.dobedobe.ui.MainViewModel | ||
import org.koin.core.module.dsl.viewModelOf | ||
import org.koin.dsl.module | ||
|
||
val featureModule = | ||
module { | ||
includes( | ||
dashboardModule, | ||
goalModule, | ||
settingModule, | ||
) | ||
} | ||
|
||
val appModule = | ||
module { | ||
includes( | ||
dataModule, | ||
featureModule, | ||
) | ||
viewModelOf(::MainViewModel) | ||
viewModelOf(::OnboardingViewModel) | ||
} |
Oops, something went wrong.