-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
plugins { | ||
alias(libs.plugins.androidApplication) | ||
alias(libs.plugins.jetbrainsKotlinAndroid) | ||
alias(libs.plugins.ksp.plugin) | ||
alias(libs.plugins.hilt.plugin) | ||
alias(libs.plugins.safeargs.plugin) | ||
alias(libs.plugins.kotlin.parcelize) | ||
} | ||
|
||
android { | ||
namespace = "com.mehdisekoba.imdb" | ||
compileSdk = 34 | ||
|
||
defaultConfig { | ||
applicationId = "com.mehdisekoba.imdb" | ||
minSdk = 24 | ||
targetSdk = 34 | ||
versionCode = 1 | ||
versionName = "1.0" | ||
|
||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" | ||
} | ||
|
||
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" | ||
} | ||
buildFeatures { | ||
viewBinding = true | ||
buildConfig = true | ||
} | ||
} | ||
|
||
dependencies { | ||
|
||
implementation(libs.androidx.core.ktx) | ||
implementation(libs.androidx.appcompat) | ||
implementation(libs.material) | ||
implementation(libs.androidx.activity) | ||
implementation(libs.androidx.constraintlayout) | ||
testImplementation(libs.junit) | ||
androidTestImplementation(libs.androidx.junit) | ||
androidTestImplementation(libs.androidx.espresso.core) | ||
implementation(libs.androidx.swiperefreshlayout) | ||
|
||
// Navigation | ||
implementation(libs.navigation.fragment) | ||
implementation(libs.navigation.ui) | ||
// Dagger - Hilt | ||
implementation(libs.hilt) | ||
ksp(libs.hiltcompiler) | ||
// Retrofit | ||
implementation(libs.retrofit) | ||
implementation(libs.converter.gson) | ||
// OkHTTP client | ||
implementation(libs.okhttp) | ||
implementation(libs.interceptor) | ||
// Coroutines | ||
implementation(libs.coroutines.core) | ||
implementation(libs.coroutines.android) | ||
// Lifecycle | ||
implementation(libs.lifecycle.runtime) | ||
implementation(libs.lifecycle.livedata) | ||
implementation(libs.lifecycle.viewmodel) | ||
// Image Loading | ||
implementation(libs.coil) | ||
// Gson | ||
implementation(libs.google.gson) | ||
// Calligraphy | ||
implementation(libs.calligraphy) | ||
implementation(libs.viewpump) | ||
// shimmer | ||
implementation(libs.shimmer.recyclerview.x) | ||
// lottie | ||
implementation(libs.lottie) | ||
// datastore | ||
implementation(libs.androidx.datastore.preferences) | ||
// video player | ||
implementation(libs.youtubeplayer) | ||
// Other | ||
implementation(libs.dynamicsizes) | ||
} |
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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools"> | ||
|
||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /> | ||
|
||
<application | ||
android:name=".utils.MyApp" | ||
android:allowBackup="true" | ||
android:dataExtractionRules="@xml/data_extraction_rules" | ||
android:fullBackupContent="@xml/backup_rules" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:roundIcon="@mipmap/ic_launcher_round" | ||
android:supportsRtl="false" | ||
android:theme="@style/Theme.Imdb" | ||
tools:replace="android:supportsRtl" | ||
tools:targetApi="31"> | ||
<activity | ||
android:name=".ui.MainActivity" | ||
android:exported="true" | ||
android:supportsPictureInPicture="true"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
</application> | ||
|
||
</manifest> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.mehdisekoba.imdb.data.model | ||
|
||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class ResponseErrors( | ||
@SerializedName("status_code") | ||
val statusCode: Int?, // 7 | ||
@SerializedName("status_message") | ||
val statusMessage: String?, // Invalid API key: You must be granted a valid key. | ||
@SerializedName("success") | ||
val success: Boolean? // false | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
package com.mehdisekoba.imdb.data.model.detail | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class ResponseActor( | ||
@SerializedName("cast") | ||
val cast: List<Cast>?, | ||
@SerializedName("crew") | ||
val crew: List<Crew?>?, | ||
@SerializedName("id") | ||
val id: Int?, // 1622 | ||
) { | ||
data class Cast( | ||
@SerializedName("adult") | ||
val adult: Boolean?, // false | ||
@SerializedName("backdrop_path") | ||
val backdropPath: String?, // /3Wr9M9Pee1kLgfbRSrG0LHy0GsP.jpg | ||
@SerializedName("character") | ||
val character: String?, // Jang-jin | ||
@SerializedName("credit_id") | ||
val creditId: String?, // 52fe44d4c3a368484e03936d | ||
@SerializedName("genre_ids") | ||
val genreIds: List<Int?>?, | ||
@SerializedName("id") | ||
val id: Int?, // 25647 | ||
@SerializedName("order") | ||
val order: Int?, // 0 | ||
@SerializedName("original_language") | ||
val originalLanguage: String?, // ko | ||
@SerializedName("original_title") | ||
val originalTitle: String?, // 숨 | ||
@SerializedName("overview") | ||
val overview: String?, // A condemned prisoner slowly falls in love with the married female artist who decorates his prison cell. Jin is a convicted killer awaiting execution on Death Row; Yeon is a lonely artist locked in a loveless marriage. | ||
@SerializedName("popularity") | ||
val popularity: Double?, // 8.545 | ||
@SerializedName("poster_path") | ||
val posterPath: String?, // /uDkDzSUluhC3ONk25VbaVaqe8kH.jpg | ||
@SerializedName("release_date") | ||
val releaseDate: String?, // 2007-04-26 | ||
@SerializedName("title") | ||
val title: String?, // Breath | ||
@SerializedName("video") | ||
val video: Boolean?, // false | ||
@SerializedName("vote_average") | ||
val voteAverage: Double?, // 6.7 | ||
@SerializedName("vote_count") | ||
val voteCount: Int?, // 91 | ||
) | ||
|
||
data class Crew( | ||
@SerializedName("adult") | ||
val adult: Boolean?, // false | ||
@SerializedName("backdrop_path") | ||
val backdropPath: String?, // /yPGRx9VrA98UlS5QfXrNws34D82.jpg | ||
@SerializedName("credit_id") | ||
val creditId: String?, // 593a850d9251411eed00bfbc | ||
@SerializedName("department") | ||
val department: String?, // Directing | ||
@SerializedName("genre_ids") | ||
val genreIds: List<Int?>?, | ||
@SerializedName("id") | ||
val id: Int?, // 454817 | ||
@SerializedName("job") | ||
val job: String?, // Director | ||
@SerializedName("original_language") | ||
val originalLanguage: String?, // zh | ||
@SerializedName("original_title") | ||
val originalTitle: String?, // 三生 | ||
@SerializedName("overview") | ||
val overview: String?, | ||
@SerializedName("popularity") | ||
val popularity: Double?, // 1.422 | ||
@SerializedName("poster_path") | ||
val posterPath: String?, // /8rXmyBf99B2xeaaOqxBHK7riell.jpg | ||
@SerializedName("release_date") | ||
val releaseDate: String?, // 2014-08-15 | ||
@SerializedName("title") | ||
val title: String?, // Three Charmed Lives | ||
@SerializedName("video") | ||
val video: Boolean?, // false | ||
@SerializedName("vote_average") | ||
val voteAverage: Double?, // 5 | ||
@SerializedName("vote_count") | ||
val voteCount: Int?, // 1 | ||
) | ||
} |