forked from CodandoTV/Netflix-Android
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathConfig.kt
More file actions
31 lines (26 loc) · 1.53 KB
/
Config.kt
File metadata and controls
31 lines (26 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import org.gradle.api.JavaVersion
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
object Config {
const val appName = "streamplayerapp"
const val applicationId = "com.codandotv.$appName"
val jvmTarget = JvmTarget.JVM_21
val javaVersion = JavaVersion.VERSION_21
const val compileSdkVersion = 35
const val minSdkVersion = 28
const val targetSdkVersion = 35
const val versionName = "1.0"
const val versionCode = 1
const val testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
object BuildField {
const val host_debug = "https://api.themoviedb.org/3/"
const val host_release = "https://api.themoviedb.org/3/"
const val api_profile_debug = "https://demo3364084.mockable.io/"
const val api_profile_release = "https://demo3364084.mockable.io/"
private const val tmdb_token_name_debug = "TMDB_BEARER_TOKEN_DEBUG"
private const val tmdb_token_name_release = "TMDB_BEARER_TOKEN_RELEASE"
private const val bearear_without_environment = "eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJiNDg2NWM4YTAzNzhmM2I4NjI0OWU1ZjNiYWFiMjU2NyIsInN1YiI6IjY0Mjk4YTg5YTNlNGJhMWM0NDgzM2U4OCIsInNjb3BlcyI6WyJhcGlfcmVhZCJdLCJ2ZXJzaW9uIjoxfQ.9cIxv29vkaZ2yW88DIFRUFK_nXbK2b6KS8t96kA8WAE"
val api_bearer = System.getenv(tmdb_token_name_debug) ?: bearear_without_environment
val api_bearer_debug = System.getenv(tmdb_token_name_debug) ?: bearear_without_environment
val api_bearer_release = System.getenv(tmdb_token_name_release) ?: bearear_without_environment
}
}