From 4efab4213eb468c5be00b71435669c88bcdecb03 Mon Sep 17 00:00:00 2001 From: ligi Date: Wed, 30 Oct 2019 01:40:08 +0900 Subject: [PATCH] Replace spoon with composer --- .ci/kontinuum.json | 2 +- android/build.gradle | 18 +----------------- build.gradle | 4 +--- 3 files changed, 3 insertions(+), 21 deletions(-) diff --git a/.ci/kontinuum.json b/.ci/kontinuum.json index 4cb67bfa..0572a75f 100644 --- a/.ci/kontinuum.json +++ b/.ci/kontinuum.json @@ -3,7 +3,7 @@ "type": "android", "stages": [ { - "name": "spoon", + "name": "testWithMapsWithAnalyticsForPlayDebugComposer", "needsEmulator": true }, { diff --git a/android/build.gradle b/android/build.gradle index 472197ed..7c2879aa 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,5 +1,5 @@ apply plugin: 'com.android.application' -apply plugin: 'com.jaredsburrows.spoon' +apply plugin: 'com.trevjonez.composer' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-kapt' @@ -12,7 +12,6 @@ repositories { mavenLocal() google() maven { url 'https://www.jitpack.io' } - maven { url 'https://oss.sonatype.org/content/repositories/snapshots' } // For Spoon snapshot, until 2.0.0 is released } android { @@ -64,13 +63,6 @@ android { } - // hacky workaround to add spoon task that executes all variants - task spoon { - dependsOn { - tasks.findAll { task -> task.name != 'spoon' && task.name.startsWith('spoon') } - } - } - android.variantFilter { variant -> def maps = variant.getFlavors().get(0).name def analytics = variant.getFlavors().get(1).name @@ -121,8 +113,6 @@ dependencies { implementation 'com.github.salomonbrys.kodein:kodein:4.1.0' compileOnly 'org.glassfish:javax.annotation:3.1.1' - // spoon snapshot, until 2.0.0 is released - androidTestImplementation 'com.squareup.spoon:spoon-client:2.0.0-SNAPSHOT' androidTestImplementation 'com.github.ligi:trulesk:0.28' androidTestImplementation 'androidx.test:core:1.2.0' androidTestImplementation 'androidx.test.ext:junit:1.1.1' @@ -194,12 +184,6 @@ dependencies { withMapsImplementation 'com.google.android.gms:play-services-maps:16.1.0' } -spoon { - debug = true - grantAll = true - baseOutputDir = "build/spoon" -} - play { jsonFile = file('/media/ligi/USBCRED/play.json') uploadImages = true diff --git a/build.gradle b/build.gradle index 75462650..1f85e68a 100644 --- a/build.gradle +++ b/build.gradle @@ -8,14 +8,12 @@ buildscript { jcenter() google() maven { url 'https://www.jitpack.io' } - maven { url 'https://oss.sonatype.org/content/repositories/snapshots' } // for Spoon snapshot, until 2.0.0 is released } dependencies { classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath 'com.android.tools.build:gradle:3.5.1' - // FIXME: this causes deprecation warnings and should be replaced - classpath 'com.jaredsburrows:gradle-spoon-plugin:1.5.0' + classpath 'com.github.trevjonez.composer-gradle-plugin:plugin:0.13.1' classpath 'com.github.ben-manes:gradle-versions-plugin:0.27.0' classpath 'de.mobilej.unmock:UnMockPlugin:0.6.5' classpath 'com.github.triplet.gradle:play-publisher:1.1.5'