Skip to content

Commit

Permalink
refactor: split out stuff into sub projects
Browse files Browse the repository at this point in the history
  • Loading branch information
Yash-Garg committed Jul 1, 2024
1 parent 31975a9 commit 61825ca
Show file tree
Hide file tree
Showing 76 changed files with 35 additions and 4 deletions.
File renamed without changes.
2 changes: 2 additions & 0 deletions app/build.gradle.kts → android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,6 @@ dependencies {
debugImplementation(libs.chucker)
releaseImplementation(libs.chucker.no.op)
testImplementation(libs.junit)

implementation(projects.data)
}
File renamed without changes
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.yash.keymanager.data
package dev.yash.keymanager.di

import android.content.Context
import android.content.SharedPreferences
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
29 changes: 29 additions & 0 deletions data/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
@file:Suppress("UnstableApiUsage", "DSL_SCOPE_VIOLATION")

plugins {
alias(libs.plugins.android.library)
alias(libs.plugins.kotlin.android)
}

android {
namespace = "dev.yash.keymanager.data"
compileSdk = 34

defaultConfig { minSdk = 26 }

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
}

dependencies {
implementation(libs.androidx.core.ktx)
implementation(libs.google.dagger.hilt)

implementation(libs.appauth)
implementation(libs.square.moshi)
implementation(libs.square.moshi.converter)
implementation(libs.square.moshi.metadata.reflect)
implementation(libs.square.okhttp.logging)
}
4 changes: 2 additions & 2 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

pluginManagement {
repositories {
includeBuild("build-logic")
includeBuild("spotless")
google()
mavenCentral()
gradlePluginPortal()
Expand All @@ -24,4 +24,4 @@ enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")

rootProject.name = "KeyManager"

include(":app")
include(":android", ":data")
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@file:Suppress("UnstableApiUsage")

rootProject.name = "build-logic"
rootProject.name = "spotless"

pluginManagement {
repositories {
Expand Down

0 comments on commit 61825ca

Please sign in to comment.