Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/.idea
.DS_Store
/build
/app/build
/captures
.externalNativeBuild
.cxx
Expand Down
10 changes: 0 additions & 10 deletions .idea/deploymentTargetDropDown.xml

This file was deleted.

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

This file was deleted.

11 changes: 0 additions & 11 deletions app/src/main/java/com/sun/android/MainActivity.kt

This file was deleted.

This file was deleted.

24 changes: 0 additions & 24 deletions app/src/main/java/com/sun/android/data/source/MovieDataSource.kt

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

16 changes: 0 additions & 16 deletions app/src/main/java/com/sun/android/di/DataSourceModule.kt

This file was deleted.

27 changes: 0 additions & 27 deletions app/src/main/java/com/sun/android/ui/listmovie/MoviesViewModel.kt

This file was deleted.

3 changes: 1 addition & 2 deletions buildSrc/src/main/kotlin/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ object Versions {
const val appCompat = "1.6.1"
const val material = "1.8.0"
const val constraintLayout = "2.1.4"
const val coreSplashScreen = "1.0.0"

const val lifecycle = "2.5"
const val navigation = "2.5.3"
Expand All @@ -35,7 +34,7 @@ object Versions {
object AppConfigs {
const val application_id = "com.sun.structure_android"
const val compile_sdk_version = 34
const val min_sdk_version = 23
const val min_sdk_version = 24
const val target_sdk_version = 34
const val version_code = 1
const val version_name = "1.0"
Expand Down
File renamed without changes.
70 changes: 70 additions & 0 deletions data/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
import com.android.build.gradle.internal.cxx.configure.gradleLocalProperties

plugins {
id("com.android.library")
kotlin(Plugins.kotlin_android)
id(Plugins.kotlin_parcelize)
id(Plugins.ksp).version(Versions.ksp)
}

android {
namespace = "com.sun.data"
compileSdk = 34

defaultConfig {
minSdk = 24

buildConfigField("String", "API_KEY", gradleLocalProperties(rootDir).getProperty("api_key"))

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
}

buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "17"
}
}

dependencies {
api(project(":domain"))

implementation("androidx.core:core-ktx:1.12.0")
implementation("androidx.appcompat:appcompat:1.6.1")
implementation("com.google.android.material:material:1.11.0")

// Room
implementation(Deps.room_runtime)
ksp(Deps.room_ksp)
implementation(Deps.room_ktx)

//Retrofit
implementation(Deps.okHttp)
implementation(Deps.retrofit_runtime)
implementation(Deps.retrofit_gson)
implementation(Deps.okhttp_logging_interceptor)

//Koin
implementation(Deps.koin)

//Coroutine
implementation(Deps.coroutines_core)
implementation(Deps.coroutines_android)
testImplementation(Deps.coroutines_test)

testImplementation("junit:junit:4.13.2")
androidTestImplementation("androidx.test.ext:junit:1.1.5")
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
}
Empty file added data/consumer-rules.pro
Empty file.
21 changes: 21 additions & 0 deletions data/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
Loading