Skip to content

Commit

Permalink
chore(analytics): Migrate Analytics Gradle to declarative plugin blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
tyllark committed Feb 14, 2025
1 parent 9b9e120 commit 6499301
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 62 deletions.
21 changes: 15 additions & 6 deletions packages/analytics/amplify_analytics_pinpoint/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
group 'com.amazonaws.amplify.amplify_analytics_pinpoint'
version '1.0-SNAPSHOT'

rootProject.allprojects {
buildscript {
ext.kotlin_version = '1.9.10'
repositories {
google()
mavenCentral()
}

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

plugins {
id "com.android.library"
id "kotlin-android"
id "dev.flutter.flutter-gradle-plugin"
rootProject.allprojects {
repositories {
google()
mavenCentral()
}
}

apply plugin: 'com.android.library'
Expand Down Expand Up @@ -40,5 +47,7 @@ android {
namespace 'com.amazonaws.amplify.amplify_analytics_pinpoint'
}

dependencies {}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}

Original file line number Diff line number Diff line change
@@ -1,25 +1 @@
pluginManagement {
def flutterSdkPath = {
def properties = new Properties()
file("local.properties").withInputStream { properties.load(it) }
def flutterSdkPath = properties.getProperty("flutter.sdk")
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
return 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.1.0" apply false
id "org.jetbrains.kotlin.android" version "1.9.10" apply false
}

include ":app"
rootProject.name = 'amplify_analytics_pinpoint'

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

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

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

0 comments on commit 6499301

Please sign in to comment.