Skip to content

Commit

Permalink
Merge pull request #4 from lemoncloud-io/feature/raine-build
Browse files Browse the repository at this point in the history
프로젝트 네이밍 및 구조 수정
  • Loading branch information
raine-lemon authored Aug 27, 2024
2 parents fe4d3cc + f98d8a9 commit 3fb2815
Show file tree
Hide file tree
Showing 36 changed files with 45 additions and 48 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@

| module | description |
|------------------------------|---------------------------|
| lemon-core-ui:architecture | mvi 기반 architecture 인터페이스 |
| lemon-core-android:component | android component 유틸리티 |
| android-component | android component 유틸리티 |
| ui-architecture | mvi 기반 architecture 인터페이스 |
| util-compose (Not Implement) | compose 유틸리티 |

### UI-Architecture

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ plugins {
}

android {
namespace = "io.lemon.android.core.ui.architecture"
namespace = "io.lemon.core.android.component"
group = "io.lemon.core"
}
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.remon.android.core.android.component.intent
package io.lemon.core.android.component.intent

import android.content.Context
import android.content.Intent
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.remon.android.core.android.component.intent
package io.lemon.core.android.component.intent

import android.content.Context
import android.content.Intent
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.remon.android.core.android.component.intent
package io.lemon.core.android.component.intent

import android.app.PendingIntent
import android.content.Context
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.remon.android.core.android.component.launcher
package io.lemon.core.android.component.launcher

import android.app.Activity
import android.app.Service
Expand All @@ -7,7 +7,7 @@ import android.content.Intent
import android.content.Intent.FLAG_ACTIVITY_CLEAR_TOP
import android.content.Intent.FLAG_ACTIVITY_NO_HISTORY
import android.content.Intent.FLAG_ACTIVITY_SINGLE_TOP
import io.remon.android.core.android.component.intent.IntentBuilder
import io.lemon.core.android.component.intent.IntentBuilder
import kotlin.reflect.KClass

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package io.remon.android.core.android.component.launcher
package io.lemon.core.android.component.launcher

import android.app.Service
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import io.remon.android.core.android.component.intent.IntentBuilder
import io.lemon.core.android.component.intent.IntentBuilder
import kotlin.reflect.KClass

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package io.remon.android.core.android.component.launcher
package io.lemon.core.android.component.launcher

import android.app.Service
import android.content.Context
import android.content.Intent
import android.os.Build
import io.remon.android.core.android.component.intent.IntentBuilder
import io.lemon.core.android.component.intent.IntentBuilder
import kotlin.reflect.KClass

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ internal object Config {
ZonedDateTime.now().format(DateTimeFormatter.ofPattern("yyyyMMddHH")).toInt()

// You must change app package path and it.
const val APPLICATION_ID = "io.lemon.android.core"
const val APPLICATION_ID = "io.lemon.core"

val JAVA_VERSION = JavaVersion.VERSION_17
val JVM_TARGET = JvmTarget.JVM_17
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package io.lemon.android.buildSystem.extensions

import com.android.build.api.dsl.CommonExtension
import io.lemon.android.buildSystem.Config
import io.lemon.android.buildSystem.Config.JAVA_VERSION


Expand All @@ -20,16 +19,11 @@ internal fun extensionAndroid(
targetCompatibility = JAVA_VERSION // The lowest Java version that a android can run
}

configureFlavor(
commonExtension = this,
flavorList = Config.Flavor.FLAVOR_LIST,
)

packaging {
resources {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
}
}

}
}
}
1 change: 0 additions & 1 deletion lemon-core-ui/architecture/.gitignore

This file was deleted.

5 changes: 0 additions & 5 deletions lemon-core-ui/architecture/consumer-rules.pro

This file was deleted.

2 changes: 1 addition & 1 deletion sample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ android {
namespace = "io.lemon.android.core"
}
dependencies {
implementation(project(":lemon-core-ui:architecture"))
implementation(project(":ui-architecture"))
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.lemon.android.core.home.data

import io.lemon.android.core.ui.architecture.BaseEffect
import io.lemon.core.ui.architecture.BaseEffect

sealed interface HomeEffect : BaseEffect {
data class ShowSnackbar(val message: String) : HomeEffect
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.lemon.android.core.home.data

import io.lemon.android.core.ui.architecture.BaseError
import io.lemon.core.ui.architecture.BaseError

data class HomeError(
override val message: String,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.lemon.android.core.home.data

import io.lemon.android.core.ui.architecture.BaseEvent
import io.lemon.core.ui.architecture.BaseEvent

sealed interface HomeEvent : BaseEvent {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.lemon.android.core.home.data

import io.lemon.android.core.ui.architecture.BaseState
import io.lemon.core.ui.architecture.BaseState

data class HomeState(
override val isLoading: Boolean = false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.lemon.android.core.home.data

import io.lemon.android.core.ui.architecture.Config
import io.lemon.android.core.ui.architecture.BaseViewModel
import io.lemon.core.ui.architecture.Config
import io.lemon.core.ui.architecture.BaseViewModel

class HomeViewModel : BaseViewModel<HomeState, HomeEvent, HomeEffect, HomeError>() {

Expand Down
4 changes: 2 additions & 2 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ dependencyResolutionManagement {
}

include(":sample")
include(":lemon-core-ui:architecture")
include(":lemon-core-android:component")
include(":android-component")
include(":ui-architecture")
1 change: 1 addition & 0 deletions ui-architecture/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/architecture/build
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ sample 프로젝트 참고

### Architecture

![ui-architecture](./assets/ui-architecture.jpeg)
![ui-architecture](assets/ui-architecture.jpeg)

Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ plugins {
}

android {
namespace = "io.lemon.android.core.android.component"
namespace = "io.lemon.core.ui.architecture"
group = "io.lemon.core"
}
5 changes: 5 additions & 0 deletions ui-architecture/consumer-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-dontwarn io.lemon.core.ui.architecture.BaseEffect
-dontwarn io.lemon.core.ui.architecture.BaseEvent
-dontwarn io.lemon.core.ui.architecture.BaseState
-dontwarn io.lemon.core.ui.architecture.BaseError
-dontwarn io.lemon.core.ui.architecture.BaseViewModel
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.lemon.android.core.ui.architecture
package io.lemon.core.ui.architecture

/**
* [BaseEffect]
Expand All @@ -13,4 +13,4 @@ package io.lemon.android.core.ui.architecture
*
* @author raine@lemoncloud.io
*/
interface BaseEffect
interface BaseEffect
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.lemon.android.core.ui.architecture
package io.lemon.core.ui.architecture

import android.util.Log

Expand Down Expand Up @@ -34,4 +34,4 @@ interface BaseError {
.trimIndent()
)
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.lemon.android.core.ui.architecture
package io.lemon.core.ui.architecture

/**
* [BaseEvent]
Expand All @@ -13,4 +13,4 @@ package io.lemon.android.core.ui.architecture
*
* @author raine@lemoncloud.io
**/
interface BaseEvent
interface BaseEvent
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.lemon.android.core.ui.architecture
package io.lemon.core.ui.architecture

/**
* [BaseState]
Expand All @@ -16,4 +16,4 @@ package io.lemon.android.core.ui.architecture
*/
interface BaseState{
val isLoading : Boolean
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.lemon.android.core.ui.architecture
package io.lemon.core.ui.architecture

import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.lemon.android.core.ui.architecture
package io.lemon.core.ui.architecture

import kotlinx.coroutines.channels.BufferOverflow
import kotlinx.coroutines.channels.Channel.Factory.RENDEZVOUS
Expand All @@ -21,4 +21,4 @@ data class Config<EVENT>(
val eventCapacity: Int = RENDEZVOUS,
val eventOnBufferOverflow: BufferOverflow = BufferOverflow.DROP_OLDEST,
val eventOnUndeliveredElement: ((EVENT) -> Unit)? = null
)
)

0 comments on commit 3fb2815

Please sign in to comment.