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
16 changes: 13 additions & 3 deletions packages/dynamic_color/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,27 @@
## Unreleased
### Added
- Add support for AGP 9

### Changed
- Migrate to Kotlin DSL in Android
- Update `compileSdk` to `flutter.compileSdkVersion`
- Update `minSdk` to `24`
- Update `targetSdk` to `flutter.targetSdkVersion`

## 1.8.1 - 2025-08-01
### Fixed
- Revert moving flutter_test to dev_dependencies
- Revert moving flutter\_test to dev\_dependencies

## 1.8.0 - 2025-08-01
### Changed
- Update `material_color_utilities` upper constraint to `0.13.0`
- Update other dependencies
- Update `compileSdkVersion` to `34`
- Fix lints
- Add Swift Package Manager compatibility [#633](https://github.com/material-foundation/flutter-packages/issues/633).
- Add Swift Package Manager compatibility [\#633](https://github.com/material-foundation/flutter-packages/issues/633).

### Fixed
- Move flutter_test to dev_dependencies
- Move flutter\_test to dev\_dependencies

## 1.7.0 - 2024-03-01
### Changed
Expand Down
55 changes: 0 additions & 55 deletions packages/dynamic_color/android/build.gradle

This file was deleted.

57 changes: 57 additions & 0 deletions packages/dynamic_color/android/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
group = "io.material.plugins.dynamic_color"
version = "1.0-SNAPSHOT"

buildscript {
val kotlinVersion = "2.3.20"
repositories {
google()
mavenCentral()
}

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

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

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

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

android {
namespace = "io.material.plugins.dynamic_color"
compileSdk = flutter.compileSdkVersion

defaultConfig {
minSdk = 24
}

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

dependencies {
val materialVersion = "1.7.0"
implementation("com.google.android.material:material:$materialVersion")
}

lint {
checkAllWarnings = true
warningsAsErrors = true
disable.addAll(setOf("AndroidGradlePluginVersion", "InvalidPackage", "GradleDependency", "NewerVersionAvailable"))
}
}
3 changes: 0 additions & 3 deletions packages/dynamic_color/android/gradle.properties

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion packages/dynamic_color/android/settings.gradle

This file was deleted.

1 change: 1 addition & 0 deletions packages/dynamic_color/android/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rootProject.name = "dynamic_color"
9 changes: 9 additions & 0 deletions packages/dynamic_color/example/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@

# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
analyzer:
exclude:
- build/**
- android/**
- ios/**
- web/**
- windows/**
- macos/**
- linux/**
include: package:flutter_lints/flutter.yaml

linter:
Expand Down
69 changes: 0 additions & 69 deletions packages/dynamic_color/example/android/app/build.gradle

This file was deleted.

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

android {
namespace = "io.material.plugins.dynamic_color_example"
compileSdk = flutter.compileSdkVersion

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

defaultConfig {
applicationId = "io.material.plugins.dynamic_color_example"
minSdk = flutter.minSdkVersion
targetSdk = flutter.targetSdkVersion
versionCode = flutter.versionCode
versionName = flutter.versionName
}

buildTypes {
release {
signingConfig = signingConfigs.getByName("debug")
}
}
lint {
disable.add("InvalidPackage")
}
}

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

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

dependencies { }
31 changes: 0 additions & 31 deletions packages/dynamic_color/example/android/build.gradle

This file was deleted.

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

// Build the plugin project with warnings enabled. This is here rather than
// in the plugin itself to avoid breaking clients that have different
// warnings (e.g., deprecation warnings from a newer SDK than this project
// builds with).
gradle.projectsEvaluated {
project(":dynamic_color") {
tasks.withType<JavaCompile> {
options.compilerArgs.addAll(listOf("-Xlint:all", "-Werror"))
}
}
}
9 changes: 5 additions & 4 deletions packages/dynamic_color/example/android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false

# This builtInKotlin flag was added automatically by Flutter migrator
android.builtInKotlin=false
# This newDsl flag was added automatically by Flutter migrator
android.newDsl=false
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Apr 26 22:09:17 CEST 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-all.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
zipStorePath=wrapper/dists
Loading
Loading