Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
MehdiSekoba committed Apr 7, 2024
0 parents commit 3c31bd4
Show file tree
Hide file tree
Showing 205 changed files with 7,477 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .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
3 changes: 3 additions & 0 deletions .idea/.gitignore

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

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

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

23 changes: 23 additions & 0 deletions .idea/deploymentTargetDropDown.xml

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

19 changes: 19 additions & 0 deletions .idea/gradle.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/kotlinc.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/ktlint-plugin.xml

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

10 changes: 10 additions & 0 deletions .idea/migrations.xml

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

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

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

1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
94 changes: 94 additions & 0 deletions app/build.gradle.kts
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)
}
21 changes: 21 additions & 0 deletions app/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
33 changes: 33 additions & 0 deletions app/src/main/AndroidManifest.xml
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>
Binary file added app/src/main/assets/fonts/roboto_bold.ttf
Binary file not shown.
Binary file added app/src/main/assets/fonts/roboto_italic.ttf
Binary file not shown.
Binary file added app/src/main/assets/fonts/roboto_medium.ttf
Binary file not shown.
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
)
}
Loading

0 comments on commit 3c31bd4

Please sign in to comment.