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 d8dd0f8 commit fd408da
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 18 deletions.
17 changes: 0 additions & 17 deletions packages/analytics/amplify_analytics_pinpoint/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
group 'com.amazonaws.amplify.amplify_analytics_pinpoint'
version '1.0-SNAPSHOT'

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"
}
}

rootProject.allprojects {
repositories {
google()
Expand Down Expand Up @@ -47,7 +34,3 @@ android {
namespace 'com.amazonaws.amplify.amplify_analytics_pinpoint'
}

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

Original file line number Diff line number Diff line change
@@ -1 +1,29 @@
rootProject.name = 'amplify_analytics_pinpoint'
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
}

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

include ":app"

0 comments on commit fd408da

Please sign in to comment.