Skip to content

Commit

Permalink
Merge pull request #149 from pknu-wap/develop_android
Browse files Browse the repository at this point in the history
Develop android
  • Loading branch information
jeongjaino authored Jun 7, 2023
2 parents f31eba2 + 452703b commit e22d958
Show file tree
Hide file tree
Showing 358 changed files with 11,629 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: deploy

on:
workflow_dispatch:

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
script: |
kill -9 $(lsof -i:8080)
cd ~/app/2023_1_WAT_BeJuRyu/backend
git pull origin develop_server
./gradlew bootJar
cd build/libs
nohup java -jar BEJURYU-0.0.1-SNAPSHOT.jar > nohup.out 2> nohup.err < /dev/null &
Empty file added .idea/.gitignore
Empty file.
9 changes: 9 additions & 0 deletions .idea/2023_1_WAT_BeJuRyu.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

57 changes: 57 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

54 changes: 54 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,60 @@
</h3>
</p>

## Android Modules 📁

```
📁android
┣ 📂app
┣ 📂core
┃ ┣ 📂data
┃ ┣ 📂domain
┃ ┣ 📂designsystem
┃ ┣ 📂model
┃ ┣ 📂network
┃ ┣ 📂common
┃ ┗ 📂datastore
┣ 📂build-logic
┃ ┗ 📂convention
┣ 📂feature
┃ ┣ 📂auth
┃ ┣ 📂setting
┃ ┣ 📂analysis
┃ ┣ 📂review
┃ ┣ 📂account
┃ ┣ 📂home
┗ ┗ 📂dictionary
```


## Android Tech Stack

- Minumum SDK 26 & Target SDK 33
- Kotlin
- Kotlin 1.8.10v
- Coroutines & Flow
- Dependency Injection
- Dagger Hilt
- Android Jetpack
- CameraX & PhotoPicker
- Navigation Component
- DataBinding & ViewBinding
- Local
- Encrypted SharedPreference
- Remote
- Retrofit2 & OkHttp3
- Kotlinx Serialization
- Firebase
- Analytics & Crashlytics
- Third Party
- Glide
- Material Components
- Timber
- ProcessPhoenix
- Lottie
- Skydoves ProgressView
- [verison_catalog](https://github.com/pknu-wap/2023_1_WAT_BeJuRyu/blob/develop_android/android/gradle/libs.version.toml)
</br>

## 🍷 Contributors 🍷

Expand Down
15 changes: 15 additions & 0 deletions android/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties
1 change: 1 addition & 0 deletions android/.idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions android/.idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 49 additions & 0 deletions android/.idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions android/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions android/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions android/app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
76 changes: 76 additions & 0 deletions android/app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
import com.android.build.gradle.internal.cxx.configure.gradleLocalProperties

plugins {
id("com.jaino.application")
id("com.jaino.hilt")
alias(libs.plugins.google.services)
alias(libs.plugins.google.firebase.crashlytics)
}

android {

namespace = "com.jaino.app"

defaultConfig {
val libs = extensions.getByType<VersionCatalogsExtension>().named("libs")
versionName = libs.findVersion("appVersion").get().requiredVersion
versionCode = checkNotNull(libs.findVersion("versionCode").get().requiredVersion).toInt()

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"

buildConfigField("String", "KAKAO_NATIVE_APP_KEY", getLocalProperty("KAKAO_NATIVE_APP_KEY"))
resValue("string", "KAKAO_NATIVE_APP_KEY", "kakao${getLocalProperty("KAKAO_NATIVE_APP_KEY")}")

}

buildTypes {
getByName("release") {
isMinifyEnabled = true
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
}

fun getLocalProperty(property: String): String {
return gradleLocalProperties(rootDir).getProperty(property)
}

dependencies {

implementation(project(":feature:auth"))
implementation(project(":feature:setting"))
implementation(project(":feature:analysis"))
implementation(project(":feature:dictionary"))
implementation(project(":feature:review"))
implementation(project(":feature:account"))
implementation(project(":feature:home"))
implementation(project(":core:common"))
implementation(project(":core:designsystem"))
implementation(libs.bundles.kotlin)
implementation(libs.bundles.androidx)
implementation(libs.androidx.splash)
implementation(libs.hilt)
kapt(libs.hilt.kapt)
implementation(libs.androidx.hilt.work)
kapt(libs.androidx.hilt.work.compiler)
implementation(libs.bundles.navigation)

// Third-Party
implementation(libs.kakao.login)
implementation(libs.kakao.share)
implementation(libs.timber)
implementation(libs.material)
implementation(platform(libs.firebase))
implementation(libs.bundles.firebase)
testImplementation(libs.junit)
androidTestImplementation(libs.androidx.test.junit)
androidTestImplementation(libs.androidx.test.espresso)
}

kapt {
correctErrorTypes = true
}

hilt {
enableAggregatingTask = true
}
Loading

0 comments on commit e22d958

Please sign in to comment.