2023-06-20 08:45:01 +02:00
|
|
|
plugins {
|
|
|
|
id 'com.android.application'
|
|
|
|
id 'org.jetbrains.kotlin.android'
|
|
|
|
id 'org.jetbrains.kotlin.plugin.serialization' version '1.8.10'
|
|
|
|
}
|
|
|
|
|
|
|
|
ext {
|
2023-06-20 13:16:45 +02:00
|
|
|
currentVersionName = project.hasProperty('versionName') ? project.property('versionName') : '1.0.0'
|
|
|
|
currentVersionCode = project.hasProperty('versionCode') ? Integer.parseInt(project.property('versionCode')) : 1
|
2023-06-20 08:45:01 +02:00
|
|
|
}
|
|
|
|
|
2023-06-20 13:16:45 +02:00
|
|
|
println("Version Name: $currentVersionName")
|
|
|
|
println("Version Code: $currentVersionCode")
|
2023-06-20 08:45:01 +02:00
|
|
|
|
|
|
|
def keystoreProperties = new Properties()
|
|
|
|
def keystorePropertiesFile = rootProject.file('/opt/key.properties')
|
|
|
|
if (keystorePropertiesFile.exists()) {
|
|
|
|
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
namespace 'com.futo.fcast.receiver'
|
2023-12-30 10:55:30 +01:00
|
|
|
compileSdk 34
|
2023-06-20 08:45:01 +02:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "com.futo.fcast.receiver"
|
|
|
|
minSdk 24
|
2023-12-30 10:55:30 +01:00
|
|
|
targetSdk 34
|
2023-06-20 13:16:45 +02:00
|
|
|
versionCode currentVersionCode
|
|
|
|
versionName currentVersionName
|
2023-06-20 08:45:01 +02:00
|
|
|
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
}
|
|
|
|
|
2023-06-20 14:48:43 +02:00
|
|
|
flavorDimensions "type"
|
|
|
|
productFlavors {
|
|
|
|
playstore {
|
|
|
|
dimension "type"
|
|
|
|
applicationIdSuffix ".playstore"
|
|
|
|
versionNameSuffix "-playstore"
|
|
|
|
buildConfigField "boolean", "IS_PLAYSTORE_VERSION", "true"
|
|
|
|
}
|
|
|
|
defaultFlavor {
|
|
|
|
dimension "type"
|
|
|
|
buildConfigField "boolean", "IS_PLAYSTORE_VERSION", "false"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-06-20 08:45:01 +02:00
|
|
|
signingConfigs {
|
|
|
|
release {
|
|
|
|
keyAlias keystoreProperties['keyAlias']
|
|
|
|
keyPassword keystoreProperties['keyPassword']
|
|
|
|
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
|
|
|
|
storePassword keystoreProperties['storePassword']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-06-20 14:48:43 +02:00
|
|
|
sourceSets {
|
|
|
|
playstore {
|
|
|
|
manifest.srcFile 'src/playstore/AndroidManifest.xml'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-06-20 08:45:01 +02:00
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
signingConfig signingConfigs.release
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = '1.8'
|
|
|
|
}
|
2023-12-30 10:55:30 +01:00
|
|
|
buildFeatures {
|
|
|
|
buildConfig true
|
|
|
|
}
|
2023-06-20 08:45:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2023-12-30 10:55:30 +01:00
|
|
|
implementation 'androidx.core:core-ktx:1.12.0'
|
2023-06-20 08:45:01 +02:00
|
|
|
implementation 'androidx.appcompat:appcompat:1.6.1'
|
2023-12-30 10:55:30 +01:00
|
|
|
implementation 'com.google.android.material:material:1.11.0'
|
|
|
|
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.2"
|
2024-01-04 13:20:24 +01:00
|
|
|
implementation 'androidx.media3:media3-exoplayer:1.2.0'
|
2023-06-20 08:45:01 +02:00
|
|
|
implementation "com.squareup.okhttp3:okhttp:4.11.0"
|
2023-12-03 15:12:27 +01:00
|
|
|
implementation 'com.journeyapps:zxing-android-embedded:4.3.0'
|
2023-12-06 09:04:14 +01:00
|
|
|
implementation 'org.java-websocket:Java-WebSocket:1.5.4'
|
2024-01-04 13:20:24 +01:00
|
|
|
implementation 'androidx.media3:media3-ui:1.2.0'
|
|
|
|
implementation 'androidx.media3:media3-exoplayer-dash:1.2.0'
|
|
|
|
implementation 'androidx.media3:media3-exoplayer-hls:1.2.0'
|
2023-06-20 08:45:01 +02:00
|
|
|
testImplementation 'junit:junit:4.13.2'
|
|
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
|
|
|
|
}
|