diff --git a/app/.gitignore b/android/.gitignore similarity index 100% rename from app/.gitignore rename to android/.gitignore diff --git a/app/build.gradle.kts b/android/build.gradle.kts similarity index 99% rename from app/build.gradle.kts rename to android/build.gradle.kts index fbaa623..8f1adc9 100644 --- a/app/build.gradle.kts +++ b/android/build.gradle.kts @@ -134,4 +134,6 @@ dependencies { debugImplementation(libs.chucker) releaseImplementation(libs.chucker.no.op) testImplementation(libs.junit) + + implementation(projects.data) } diff --git a/app/ic_launcher-playstore.png b/android/ic_launcher-playstore.png similarity index 100% rename from app/ic_launcher-playstore.png rename to android/ic_launcher-playstore.png diff --git a/app/proguard-rules.pro b/android/proguard-rules.pro similarity index 100% rename from app/proguard-rules.pro rename to android/proguard-rules.pro diff --git a/app/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml similarity index 100% rename from app/src/main/AndroidManifest.xml rename to android/src/main/AndroidManifest.xml diff --git a/app/src/main/kotlin/dev/yash/keymanager/KeyManagerApplication.kt b/android/src/main/kotlin/dev/yash/keymanager/KeyManagerApplication.kt similarity index 100% rename from app/src/main/kotlin/dev/yash/keymanager/KeyManagerApplication.kt rename to android/src/main/kotlin/dev/yash/keymanager/KeyManagerApplication.kt diff --git a/app/src/main/kotlin/dev/yash/keymanager/MainActivity.kt b/android/src/main/kotlin/dev/yash/keymanager/MainActivity.kt similarity index 100% rename from app/src/main/kotlin/dev/yash/keymanager/MainActivity.kt rename to android/src/main/kotlin/dev/yash/keymanager/MainActivity.kt diff --git a/app/src/main/kotlin/dev/yash/keymanager/data/AppModule.kt b/android/src/main/kotlin/dev/yash/keymanager/di/AppModule.kt similarity index 98% rename from app/src/main/kotlin/dev/yash/keymanager/data/AppModule.kt rename to android/src/main/kotlin/dev/yash/keymanager/di/AppModule.kt index ce58cfc..078afbf 100644 --- a/app/src/main/kotlin/dev/yash/keymanager/data/AppModule.kt +++ b/android/src/main/kotlin/dev/yash/keymanager/di/AppModule.kt @@ -1,4 +1,4 @@ -package dev.yash.keymanager.data +package dev.yash.keymanager.di import android.content.Context import android.content.SharedPreferences diff --git a/app/src/main/kotlin/dev/yash/keymanager/paging/GithubPagingSource.kt b/android/src/main/kotlin/dev/yash/keymanager/paging/GithubPagingSource.kt similarity index 100% rename from app/src/main/kotlin/dev/yash/keymanager/paging/GithubPagingSource.kt rename to android/src/main/kotlin/dev/yash/keymanager/paging/GithubPagingSource.kt diff --git a/app/src/main/kotlin/dev/yash/keymanager/ui/KeyManagerApp.kt b/android/src/main/kotlin/dev/yash/keymanager/ui/KeyManagerApp.kt similarity index 100% rename from app/src/main/kotlin/dev/yash/keymanager/ui/KeyManagerApp.kt rename to android/src/main/kotlin/dev/yash/keymanager/ui/KeyManagerApp.kt diff --git a/app/src/main/kotlin/dev/yash/keymanager/ui/auth/AuthScreen.kt b/android/src/main/kotlin/dev/yash/keymanager/ui/auth/AuthScreen.kt similarity index 100% rename from app/src/main/kotlin/dev/yash/keymanager/ui/auth/AuthScreen.kt rename to android/src/main/kotlin/dev/yash/keymanager/ui/auth/AuthScreen.kt diff --git a/app/src/main/kotlin/dev/yash/keymanager/ui/auth/AuthState.kt b/android/src/main/kotlin/dev/yash/keymanager/ui/auth/AuthState.kt similarity index 100% rename from app/src/main/kotlin/dev/yash/keymanager/ui/auth/AuthState.kt rename to android/src/main/kotlin/dev/yash/keymanager/ui/auth/AuthState.kt diff --git a/app/src/main/kotlin/dev/yash/keymanager/ui/auth/AuthViewModel.kt b/android/src/main/kotlin/dev/yash/keymanager/ui/auth/AuthViewModel.kt similarity index 100% rename from app/src/main/kotlin/dev/yash/keymanager/ui/auth/AuthViewModel.kt rename to android/src/main/kotlin/dev/yash/keymanager/ui/auth/AuthViewModel.kt diff --git a/app/src/main/kotlin/dev/yash/keymanager/ui/common/CustomOutlinedTextField.kt b/android/src/main/kotlin/dev/yash/keymanager/ui/common/CustomOutlinedTextField.kt similarity index 100% rename from app/src/main/kotlin/dev/yash/keymanager/ui/common/CustomOutlinedTextField.kt rename to android/src/main/kotlin/dev/yash/keymanager/ui/common/CustomOutlinedTextField.kt diff --git a/app/src/main/kotlin/dev/yash/keymanager/ui/common/DialogWithTextField.kt b/android/src/main/kotlin/dev/yash/keymanager/ui/common/DialogWithTextField.kt similarity index 100% rename from app/src/main/kotlin/dev/yash/keymanager/ui/common/DialogWithTextField.kt rename to android/src/main/kotlin/dev/yash/keymanager/ui/common/DialogWithTextField.kt diff --git a/app/src/main/kotlin/dev/yash/keymanager/ui/common/KeyDialogWithTextField.kt b/android/src/main/kotlin/dev/yash/keymanager/ui/common/KeyDialogWithTextField.kt similarity index 100% rename from app/src/main/kotlin/dev/yash/keymanager/ui/common/KeyDialogWithTextField.kt rename to android/src/main/kotlin/dev/yash/keymanager/ui/common/KeyDialogWithTextField.kt diff --git a/app/src/main/kotlin/dev/yash/keymanager/ui/common/LoadError.kt b/android/src/main/kotlin/dev/yash/keymanager/ui/common/LoadError.kt similarity index 100% rename from app/src/main/kotlin/dev/yash/keymanager/ui/common/LoadError.kt rename to android/src/main/kotlin/dev/yash/keymanager/ui/common/LoadError.kt diff --git a/app/src/main/kotlin/dev/yash/keymanager/ui/ext.kt b/android/src/main/kotlin/dev/yash/keymanager/ui/ext.kt similarity index 100% rename from app/src/main/kotlin/dev/yash/keymanager/ui/ext.kt rename to android/src/main/kotlin/dev/yash/keymanager/ui/ext.kt diff --git a/app/src/main/kotlin/dev/yash/keymanager/ui/home/HomeNavGraph.kt b/android/src/main/kotlin/dev/yash/keymanager/ui/home/HomeNavGraph.kt similarity index 100% rename from app/src/main/kotlin/dev/yash/keymanager/ui/home/HomeNavGraph.kt rename to android/src/main/kotlin/dev/yash/keymanager/ui/home/HomeNavGraph.kt diff --git a/app/src/main/kotlin/dev/yash/keymanager/ui/home/HomeScreen.kt b/android/src/main/kotlin/dev/yash/keymanager/ui/home/HomeScreen.kt similarity index 100% rename from app/src/main/kotlin/dev/yash/keymanager/ui/home/HomeScreen.kt rename to android/src/main/kotlin/dev/yash/keymanager/ui/home/HomeScreen.kt diff --git a/app/src/main/kotlin/dev/yash/keymanager/ui/home/HomeViewModel.kt b/android/src/main/kotlin/dev/yash/keymanager/ui/home/HomeViewModel.kt similarity index 100% rename from app/src/main/kotlin/dev/yash/keymanager/ui/home/HomeViewModel.kt rename to android/src/main/kotlin/dev/yash/keymanager/ui/home/HomeViewModel.kt diff --git a/app/src/main/kotlin/dev/yash/keymanager/ui/keys/GpgKeyListScreen.kt b/android/src/main/kotlin/dev/yash/keymanager/ui/keys/GpgKeyListScreen.kt similarity index 100% rename from app/src/main/kotlin/dev/yash/keymanager/ui/keys/GpgKeyListScreen.kt rename to android/src/main/kotlin/dev/yash/keymanager/ui/keys/GpgKeyListScreen.kt diff --git a/app/src/main/kotlin/dev/yash/keymanager/ui/keys/KeyDetailsScreen.kt b/android/src/main/kotlin/dev/yash/keymanager/ui/keys/KeyDetailsScreen.kt similarity index 100% rename from app/src/main/kotlin/dev/yash/keymanager/ui/keys/KeyDetailsScreen.kt rename to android/src/main/kotlin/dev/yash/keymanager/ui/keys/KeyDetailsScreen.kt diff --git a/app/src/main/kotlin/dev/yash/keymanager/ui/keys/SshKeyListScreen.kt b/android/src/main/kotlin/dev/yash/keymanager/ui/keys/SshKeyListScreen.kt similarity index 100% rename from app/src/main/kotlin/dev/yash/keymanager/ui/keys/SshKeyListScreen.kt rename to android/src/main/kotlin/dev/yash/keymanager/ui/keys/SshKeyListScreen.kt diff --git a/app/src/main/kotlin/dev/yash/keymanager/ui/theme/Color.kt b/android/src/main/kotlin/dev/yash/keymanager/ui/theme/Color.kt similarity index 100% rename from app/src/main/kotlin/dev/yash/keymanager/ui/theme/Color.kt rename to android/src/main/kotlin/dev/yash/keymanager/ui/theme/Color.kt diff --git a/app/src/main/kotlin/dev/yash/keymanager/ui/theme/Theme.kt b/android/src/main/kotlin/dev/yash/keymanager/ui/theme/Theme.kt similarity index 100% rename from app/src/main/kotlin/dev/yash/keymanager/ui/theme/Theme.kt rename to android/src/main/kotlin/dev/yash/keymanager/ui/theme/Theme.kt diff --git a/app/src/main/kotlin/dev/yash/keymanager/ui/theme/Type.kt b/android/src/main/kotlin/dev/yash/keymanager/ui/theme/Type.kt similarity index 100% rename from app/src/main/kotlin/dev/yash/keymanager/ui/theme/Type.kt rename to android/src/main/kotlin/dev/yash/keymanager/ui/theme/Type.kt diff --git a/app/src/main/res/drawable/ic_github.xml b/android/src/main/res/drawable/ic_github.xml similarity index 100% rename from app/src/main/res/drawable/ic_github.xml rename to android/src/main/res/drawable/ic_github.xml diff --git a/app/src/main/res/drawable/ic_key.xml b/android/src/main/res/drawable/ic_key.xml similarity index 100% rename from app/src/main/res/drawable/ic_key.xml rename to android/src/main/res/drawable/ic_key.xml diff --git a/app/src/main/res/drawable/key_inset.xml b/android/src/main/res/drawable/key_inset.xml similarity index 100% rename from app/src/main/res/drawable/key_inset.xml rename to android/src/main/res/drawable/key_inset.xml diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/android/src/main/res/mipmap-anydpi-v26/ic_launcher.xml similarity index 100% rename from app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml rename to android/src/main/res/mipmap-anydpi-v26/ic_launcher.xml diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/src/main/res/mipmap-hdpi/ic_launcher.png similarity index 100% rename from app/src/main/res/mipmap-hdpi/ic_launcher.png rename to android/src/main/res/mipmap-hdpi/ic_launcher.png diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_background.png b/android/src/main/res/mipmap-hdpi/ic_launcher_background.png similarity index 100% rename from app/src/main/res/mipmap-hdpi/ic_launcher_background.png rename to android/src/main/res/mipmap-hdpi/ic_launcher_background.png diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png b/android/src/main/res/mipmap-hdpi/ic_launcher_foreground.png similarity index 100% rename from app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png rename to android/src/main/res/mipmap-hdpi/ic_launcher_foreground.png diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.png b/android/src/main/res/mipmap-hdpi/ic_launcher_monochrome.png similarity index 100% rename from app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.png rename to android/src/main/res/mipmap-hdpi/ic_launcher_monochrome.png diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.png b/android/src/main/res/mipmap-mdpi/ic_launcher.png similarity index 100% rename from app/src/main/res/mipmap-mdpi/ic_launcher.png rename to android/src/main/res/mipmap-mdpi/ic_launcher.png diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_background.png b/android/src/main/res/mipmap-mdpi/ic_launcher_background.png similarity index 100% rename from app/src/main/res/mipmap-mdpi/ic_launcher_background.png rename to android/src/main/res/mipmap-mdpi/ic_launcher_background.png diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png b/android/src/main/res/mipmap-mdpi/ic_launcher_foreground.png similarity index 100% rename from app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png rename to android/src/main/res/mipmap-mdpi/ic_launcher_foreground.png diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.png b/android/src/main/res/mipmap-mdpi/ic_launcher_monochrome.png similarity index 100% rename from app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.png rename to android/src/main/res/mipmap-mdpi/ic_launcher_monochrome.png diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/android/src/main/res/mipmap-xhdpi/ic_launcher.png similarity index 100% rename from app/src/main/res/mipmap-xhdpi/ic_launcher.png rename to android/src/main/res/mipmap-xhdpi/ic_launcher.png diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png b/android/src/main/res/mipmap-xhdpi/ic_launcher_background.png similarity index 100% rename from app/src/main/res/mipmap-xhdpi/ic_launcher_background.png rename to android/src/main/res/mipmap-xhdpi/ic_launcher_background.png diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png b/android/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png similarity index 100% rename from app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png rename to android/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.png b/android/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.png similarity index 100% rename from app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.png rename to android/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.png diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android/src/main/res/mipmap-xxhdpi/ic_launcher.png similarity index 100% rename from app/src/main/res/mipmap-xxhdpi/ic_launcher.png rename to android/src/main/res/mipmap-xxhdpi/ic_launcher.png diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png b/android/src/main/res/mipmap-xxhdpi/ic_launcher_background.png similarity index 100% rename from app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png rename to android/src/main/res/mipmap-xxhdpi/ic_launcher_background.png diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png b/android/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png similarity index 100% rename from app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png rename to android/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.png b/android/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.png similarity index 100% rename from app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.png rename to android/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.png diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android/src/main/res/mipmap-xxxhdpi/ic_launcher.png similarity index 100% rename from app/src/main/res/mipmap-xxxhdpi/ic_launcher.png rename to android/src/main/res/mipmap-xxxhdpi/ic_launcher.png diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png b/android/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png similarity index 100% rename from app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png rename to android/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png b/android/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png similarity index 100% rename from app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png rename to android/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.png b/android/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.png similarity index 100% rename from app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.png rename to android/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.png diff --git a/app/src/main/res/values/colors.xml b/android/src/main/res/values/colors.xml similarity index 100% rename from app/src/main/res/values/colors.xml rename to android/src/main/res/values/colors.xml diff --git a/app/src/main/res/values/strings.xml b/android/src/main/res/values/strings.xml similarity index 100% rename from app/src/main/res/values/strings.xml rename to android/src/main/res/values/strings.xml diff --git a/app/src/main/res/values/themes.xml b/android/src/main/res/values/themes.xml similarity index 100% rename from app/src/main/res/values/themes.xml rename to android/src/main/res/values/themes.xml diff --git a/app/src/main/res/xml/backup_rules.xml b/android/src/main/res/xml/backup_rules.xml similarity index 100% rename from app/src/main/res/xml/backup_rules.xml rename to android/src/main/res/xml/backup_rules.xml diff --git a/app/src/main/res/xml/data_extraction_rules.xml b/android/src/main/res/xml/data_extraction_rules.xml similarity index 100% rename from app/src/main/res/xml/data_extraction_rules.xml rename to android/src/main/res/xml/data_extraction_rules.xml diff --git a/data/build.gradle.kts b/data/build.gradle.kts new file mode 100644 index 0000000..169d5c5 --- /dev/null +++ b/data/build.gradle.kts @@ -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) +} diff --git a/app/src/main/kotlin/dev/yash/keymanager/data/Constants.kt b/data/src/main/kotlin/dev/yash/keymanager/data/Constants.kt similarity index 100% rename from app/src/main/kotlin/dev/yash/keymanager/data/Constants.kt rename to data/src/main/kotlin/dev/yash/keymanager/data/Constants.kt diff --git a/app/src/main/kotlin/dev/yash/keymanager/data/api/GithubApi.kt b/data/src/main/kotlin/dev/yash/keymanager/data/api/GithubApi.kt similarity index 100% rename from app/src/main/kotlin/dev/yash/keymanager/data/api/GithubApi.kt rename to data/src/main/kotlin/dev/yash/keymanager/data/api/GithubApi.kt diff --git a/app/src/main/kotlin/dev/yash/keymanager/data/api/GithubRepository.kt b/data/src/main/kotlin/dev/yash/keymanager/data/api/GithubRepository.kt similarity index 100% rename from app/src/main/kotlin/dev/yash/keymanager/data/api/GithubRepository.kt rename to data/src/main/kotlin/dev/yash/keymanager/data/api/GithubRepository.kt diff --git a/app/src/main/kotlin/dev/yash/keymanager/data/models/Encryption.kt b/data/src/main/kotlin/dev/yash/keymanager/data/models/Encryption.kt similarity index 100% rename from app/src/main/kotlin/dev/yash/keymanager/data/models/Encryption.kt rename to data/src/main/kotlin/dev/yash/keymanager/data/models/Encryption.kt diff --git a/app/src/main/kotlin/dev/yash/keymanager/data/models/GpgKey.kt b/data/src/main/kotlin/dev/yash/keymanager/data/models/GpgKey.kt similarity index 100% rename from app/src/main/kotlin/dev/yash/keymanager/data/models/GpgKey.kt rename to data/src/main/kotlin/dev/yash/keymanager/data/models/GpgKey.kt diff --git a/app/src/main/kotlin/dev/yash/keymanager/data/models/Key.kt b/data/src/main/kotlin/dev/yash/keymanager/data/models/Key.kt similarity index 100% rename from app/src/main/kotlin/dev/yash/keymanager/data/models/Key.kt rename to data/src/main/kotlin/dev/yash/keymanager/data/models/Key.kt diff --git a/app/src/main/kotlin/dev/yash/keymanager/data/models/KeyEmail.kt b/data/src/main/kotlin/dev/yash/keymanager/data/models/KeyEmail.kt similarity index 100% rename from app/src/main/kotlin/dev/yash/keymanager/data/models/KeyEmail.kt rename to data/src/main/kotlin/dev/yash/keymanager/data/models/KeyEmail.kt diff --git a/app/src/main/kotlin/dev/yash/keymanager/data/models/KeyType.kt b/data/src/main/kotlin/dev/yash/keymanager/data/models/KeyType.kt similarity index 100% rename from app/src/main/kotlin/dev/yash/keymanager/data/models/KeyType.kt rename to data/src/main/kotlin/dev/yash/keymanager/data/models/KeyType.kt diff --git a/app/src/main/kotlin/dev/yash/keymanager/data/models/NavDestinations.kt b/data/src/main/kotlin/dev/yash/keymanager/data/models/NavDestinations.kt similarity index 100% rename from app/src/main/kotlin/dev/yash/keymanager/data/models/NavDestinations.kt rename to data/src/main/kotlin/dev/yash/keymanager/data/models/NavDestinations.kt diff --git a/app/src/main/kotlin/dev/yash/keymanager/data/models/SshKey.kt b/data/src/main/kotlin/dev/yash/keymanager/data/models/SshKey.kt similarity index 100% rename from app/src/main/kotlin/dev/yash/keymanager/data/models/SshKey.kt rename to data/src/main/kotlin/dev/yash/keymanager/data/models/SshKey.kt diff --git a/app/src/main/kotlin/dev/yash/keymanager/data/utils/AuthConfig.kt b/data/src/main/kotlin/dev/yash/keymanager/data/utils/AuthConfig.kt similarity index 100% rename from app/src/main/kotlin/dev/yash/keymanager/data/utils/AuthConfig.kt rename to data/src/main/kotlin/dev/yash/keymanager/data/utils/AuthConfig.kt diff --git a/app/src/main/kotlin/dev/yash/keymanager/data/utils/ExceptionHandler.kt b/data/src/main/kotlin/dev/yash/keymanager/data/utils/ExceptionHandler.kt similarity index 100% rename from app/src/main/kotlin/dev/yash/keymanager/data/utils/ExceptionHandler.kt rename to data/src/main/kotlin/dev/yash/keymanager/data/utils/ExceptionHandler.kt diff --git a/app/src/main/kotlin/dev/yash/keymanager/data/utils/Secrets.kt b/data/src/main/kotlin/dev/yash/keymanager/data/utils/Secrets.kt similarity index 100% rename from app/src/main/kotlin/dev/yash/keymanager/data/utils/Secrets.kt rename to data/src/main/kotlin/dev/yash/keymanager/data/utils/Secrets.kt diff --git a/settings.gradle.kts b/settings.gradle.kts index 3463bbb..34a1463 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -2,7 +2,7 @@ pluginManagement { repositories { - includeBuild("build-logic") + includeBuild("spotless") google() mavenCentral() gradlePluginPortal() @@ -24,4 +24,4 @@ enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS") rootProject.name = "KeyManager" -include(":app") +include(":android", ":data") diff --git a/build-logic/.gitignore b/spotless/.gitignore similarity index 100% rename from build-logic/.gitignore rename to spotless/.gitignore diff --git a/build-logic/build.gradle.kts b/spotless/build.gradle.kts similarity index 100% rename from build-logic/build.gradle.kts rename to spotless/build.gradle.kts diff --git a/build-logic/settings.gradle.kts b/spotless/settings.gradle.kts similarity index 91% rename from build-logic/settings.gradle.kts rename to spotless/settings.gradle.kts index 5bea7a2..fdc1803 100644 --- a/build-logic/settings.gradle.kts +++ b/spotless/settings.gradle.kts @@ -1,6 +1,6 @@ @file:Suppress("UnstableApiUsage") -rootProject.name = "build-logic" +rootProject.name = "spotless" pluginManagement { repositories { diff --git a/build-logic/src/main/kotlin/dev/yash/keymanager/gradle/GitHooksPlugin.kt b/spotless/src/main/kotlin/dev/yash/keymanager/gradle/GitHooksPlugin.kt similarity index 100% rename from build-logic/src/main/kotlin/dev/yash/keymanager/gradle/GitHooksPlugin.kt rename to spotless/src/main/kotlin/dev/yash/keymanager/gradle/GitHooksPlugin.kt diff --git a/build-logic/src/main/kotlin/dev/yash/keymanager/gradle/SpotlessPlugin.kt b/spotless/src/main/kotlin/dev/yash/keymanager/gradle/SpotlessPlugin.kt similarity index 100% rename from build-logic/src/main/kotlin/dev/yash/keymanager/gradle/SpotlessPlugin.kt rename to spotless/src/main/kotlin/dev/yash/keymanager/gradle/SpotlessPlugin.kt