Skip to content
Closed
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
12 changes: 12 additions & 0 deletions .agents/skills/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Flutter Agent Skills

Welcome to the `.agent/skills` directory. This directory contains agent skills designed for consumption by Flutter package contributors.

## Base guidance

flutter/packages follows the same guidance that flutter/flutter uses.
https://github.com/flutter/flutter/blob/master/.agents/skills/README.md

## Packages specific guidance

When there is specific guidance for packages it will go here.
2 changes: 1 addition & 1 deletion .ci/flutter_master.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0f401eea04390dc08eb939b6c0fee17c7d15f6ec
a0924c76b0fd76f0f8edb3b09bd3cc6e999cc19e
1 change: 1 addition & 0 deletions .claude/skills
1 change: 1 addition & 0 deletions .direnv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
source_up_if_exists
File renamed without changes.
2 changes: 1 addition & 1 deletion .github/workflows/sync_release_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ jobs:
--head "${{ github.ref_name }}" \
--title "Sync ${{ github.ref_name }} to main" \
--body "This automated PR syncs the changes from the release branch ${{ github.ref_name }} back to the main branch." \
--label "post-${{ github.ref_name }}"
--label "override: post-${{ github.ref_name }}"
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ xcuserdata/

generated_plugin_registrant.*
GeneratedPluginRegistrant.*
# These should be ephemeral, but currently aren't, so ignore them. See:
# - https://github.com/flutter/flutter/issues/149917
# - https://github.com/flutter/flutter/issues/76726
**/generated_plugins.cmake

# Gradle
**/gradle-wrapper.jar
Expand Down
3 changes: 3 additions & 0 deletions agent-artifacts/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!.gitignore
!README.md
4 changes: 4 additions & 0 deletions agent-artifacts/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Agent Artifacts

This directory is intended for agents and skills to store files that should not be tracked by git.
Files in this directory (with the exception of `.gitignore` and `README.md`) are ignored by version control.
63 changes: 0 additions & 63 deletions packages/camera/camera/example/android/app/build.gradle

This file was deleted.

51 changes: 51 additions & 0 deletions packages/camera/camera/example/android/app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
plugins {
id("com.android.application")
id("kotlin-android")
id("dev.flutter.flutter-gradle-plugin")
}

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

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

kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
}

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

buildTypes {
release {
signingConfig = signingConfigs.getByName("debug")
}
getByName("profile") {
matchingFallbacks.addAll(listOf("debug", "release"))
}
}
lint {
disable.add("InvalidPackage")
}
}

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

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

This file was deleted.

33 changes: 33 additions & 0 deletions packages/camera/camera/example/android/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
allprojects {
repositories {
// See https://github.com/flutter/flutter/blob/master/docs/ecosystem/Plugins-and-Packages-repository-structure.md#gradle-structure for more info.
val artifactRepoKey = "ARTIFACT_HUB_REPOSITORY"
val artifactRepoUrl = System.getenv(artifactRepoKey)
if (artifactRepoUrl != null) {
println("Using artifact hub")
maven {
url = uri(artifactRepoUrl)
}
}
google()
mavenCentral()
}
}

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

subprojects {
val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name)
project.layout.buildDirectory.value(newSubprojectBuildDir)
}
subprojects {
project.evaluationDependsOn(":app")
}

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

This file was deleted.

28 changes: 28 additions & 0 deletions packages/camera/camera/example/android/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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()
}
}

// See https://github.com/flutter/flutter/blob/master/docs/ecosystem/Plugins-and-Packages-repository-structure.md#gradle-structure for more info.
plugins {
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
id("com.android.application") version "8.11.1" apply false
id("org.jetbrains.kotlin.android") version "2.2.20" apply false
id("com.google.cloud.artifactregistry.gradle-plugin") version "2.2.1"
}

include(":app")
63 changes: 0 additions & 63 deletions packages/camera/camera_android/example/android/app/build.gradle

This file was deleted.

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

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

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

kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
}

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

buildTypes {
release {
signingConfig = signingConfigs.getByName("debug")
}
getByName("profile") {
matchingFallbacks += listOf("debug", "release")
}
}
lint {
disable.add("InvalidPackage")
}
}

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

dependencies {
testImplementation("junit:junit:4.13.2")
androidTestImplementation("androidx.test:runner:1.2.0")
androidTestImplementation("androidx.test:rules:1.2.0")
androidTestImplementation("androidx.test.espresso:espresso-core:3.2.0")
}
Loading