61 lines
1.3 KiB
Groovy
61 lines
1.3 KiB
Groovy
group 'com.gianlucaparadise.flutter_cast_framework'
|
|
version '1.0-SNAPSHOT'
|
|
|
|
buildscript {
|
|
ext.kotlin_version = '1.9.22'
|
|
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
// VERSIONE AGP EREDITATA DAL PROGETTO HOST (Aves)
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
}
|
|
}
|
|
|
|
rootProject.allprojects {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
apply plugin: 'com.android.library'
|
|
apply plugin: 'kotlin-android'
|
|
|
|
android {
|
|
// ✅ OBBLIGATORIO con AGP 8+
|
|
namespace "com.gianlucaparadise.flutter_cast_framework"
|
|
|
|
compileSdkVersion 34
|
|
|
|
defaultConfig {
|
|
minSdkVersion 21
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
sourceSets {
|
|
main.java.srcDirs += 'src/main/kotlin'
|
|
}
|
|
|
|
lint {
|
|
disable 'InvalidPackage'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
def lifecycle_version = "2.8.7"
|
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
|
|
// ✅ Google Cast SDK
|
|
api "com.google.android.gms:play-services-cast-framework:21.4.0"
|
|
|
|
// Lifecycle
|
|
implementation "androidx.lifecycle:lifecycle-common-java8:$lifecycle_version"
|
|
|
|
// Activity (per dialog Cast)
|
|
implementation "androidx.activity:activity-ktx:1.9.0"
|
|
}
|