Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 16 additions & 32 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,55 +1,39 @@
group 'ca.couver.privacy_screen'
version '1.0-SNAPSHOT'

buildscript {
ext.kotlin_version = '1.6.10'
repositories {
google()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

rootProject.allprojects {
repositories {
google()
mavenCentral()
}
}

// AGP and Kotlin plugins are provided by the consuming app's root classpath.
// This is the standard Flutter plugin pattern — no buildscript block needed.
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

android {
// conditional for compatibility with older gradle versions
if (project.android.hasProperty('namespace')) {
namespace 'ca.couver.privacy_screen'
namespace 'ca.couver.privacy_screen'
compileSdkVersion 36

defaultConfig {
minSdkVersion 21
Comment thread
PcolBP marked this conversation as resolved.
}
compileSdkVersion 31

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}

kotlinOptions {
jvmTarget = '1.8'
jvmTarget = '17'
}

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
}

defaultConfig {
minSdkVersion 16
}
repositories {
google()
mavenCentral()
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.lifecycle:lifecycle-process:2.5.1'
// kotlin-stdlib is added automatically by the Kotlin Gradle plugin.
implementation 'androidx.lifecycle:lifecycle-process:2.8.4'
}
Binary file added android/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
7 changes: 7 additions & 0 deletions android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
251 changes: 251 additions & 0 deletions android/gradlew

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

Loading