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
54 changes: 0 additions & 54 deletions packages/share_plus/share_plus/android/build.gradle

This file was deleted.

59 changes: 59 additions & 0 deletions packages/share_plus/share_plus/android/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
group = "dev.fluttercommunity.plus.share"
version = "1.0-SNAPSHOT"

buildscript {
val kotlinVersion = "2.2.0"

repositories {
google()
mavenCentral()
}

dependencies {
classpath("com.android.tools.build:gradle:8.12.1")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
}
}

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


plugins {
id("com.android.library")
id("kotlin-android")
}

kotlin {
compilerOptions {
jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17
}
}

android {
namespace = "dev.fluttercommunity.plus.share"
compileSdk = flutter.compileSdkVersion

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

defaultConfig {
minSdk = 19
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}

lint {
disable.add("InvalidPackage")
}

dependencies {
implementation("androidx.core:core-ktx:1.16.0")
implementation("androidx.annotation:annotation:1.9.1")
}
}
1 change: 0 additions & 1 deletion packages/share_plus/share_plus/android/settings.gradle

This file was deleted.

1 change: 1 addition & 0 deletions packages/share_plus/share_plus/android/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rootProject.name = "share_plus"
64 changes: 0 additions & 64 deletions packages/share_plus/share_plus/example/android/app/build.gradle

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
plugins {
id("com.android.application")
id("dev.flutter.flutter-gradle-plugin")
}

android {
namespace = "io.flutter.plugins.shareexample"
compileSdk = flutter.compileSdkVersion

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

defaultConfig {
applicationId = "io.flutter.plugins.shareexample"
minSdk = flutter.minSdkVersion
targetSdk = flutter.targetSdkVersion
versionCode = flutter.versionCode
versionName = flutter.versionName
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}

lint {
disable.add("InvalidPackage")
}

buildTypes {
release {
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig = signingConfigs.getByName("debug")
}
}
}

flutter {
source = "../.."
}

dependencies {
testImplementation("junit:junit:4.13.2")
androidTestImplementation("androidx.test:runner:1.2.0")
androidTestImplementation("androidx.test.espresso:espresso-core:3.2.0")
}
18 changes: 0 additions & 18 deletions packages/share_plus/share_plus/example/android/build.gradle

This file was deleted.

32 changes: 32 additions & 0 deletions packages/share_plus/share_plus/example/android/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
allprojects {
repositories {
google()
mavenCentral()
}
}

val newBuildDir: Directory =
rootProject.layout.buildDirectory
.dir("../../build")
.get()
rootProject.layout.buildDirectory.value(newBuildDir)

// Only redirect build directories for local subprojects (like :app or other local plugins).
// This avoids "different roots" Gradle build errors on Windows when the project is on
// a different drive (e.g., D:) than the Flutter Pub cache (typically on C:).
// thrown by file_selector_android
subprojects {
val isLocalProject = project.projectDir.canonicalPath.startsWith(rootProject.projectDir.canonicalPath)
if (isLocalProject) {
val newSubProjectBuildDir: Directory = newBuildDir.dir(project.name)
project.layout.buildDirectory.value(newSubProjectBuildDir)
}
}

subprojects {
project.evaluationDependsOn(":app")
}

tasks.register<Delete>("clean") {
delete(rootProject.layout.buildDirectory)
}
25 changes: 0 additions & 25 deletions packages/share_plus/share_plus/example/android/settings.gradle

This file was deleted.

26 changes: 26 additions & 0 deletions packages/share_plus/share_plus/example/android/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
pluginManagement {
val flutterSdkPath =
run {
val properties = java.util.Properties()
file("local.properties").inputStream().use { properties.load(it) }
val flutterSdkPath = properties.getProperty("flutter.sdk")
require(flutterSdkPath != null) { "flutter.sdk not set in local.properties" }
flutterSdkPath
}

includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")

repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}

plugins {
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
id("com.android.application") version "8.12.1" apply false
id("org.jetbrains.kotlin.android") version "2.2.0" apply false
}

include(":app")
Loading