diff --git a/sandbox-sample/.gitignore b/sandbox-sample/.gitignore
deleted file mode 100644
index aa724b770..000000000
--- a/sandbox-sample/.gitignore
+++ /dev/null
@@ -1,15 +0,0 @@
-*.iml
-.gradle
-/local.properties
-/.idea/caches
-/.idea/libraries
-/.idea/modules.xml
-/.idea/workspace.xml
-/.idea/navEditor.xml
-/.idea/assetWizardSettings.xml
-.DS_Store
-/build
-/captures
-.externalNativeBuild
-.cxx
-local.properties
diff --git a/sandbox-sample/README.md b/sandbox-sample/README.md
deleted file mode 100644
index 790bb6d58..000000000
--- a/sandbox-sample/README.md
+++ /dev/null
@@ -1,6 +0,0 @@
-# Sandbox Sample Project
-
-This is a sandbox project I often use for investigating various issues that arise on the issue
-tracker and elsewhere.
-
-To use it, simply `cd` into this directory and run any task from the plugin.
diff --git a/sandbox-sample/app/.gitignore b/sandbox-sample/app/.gitignore
deleted file mode 100644
index 42afabfd2..000000000
--- a/sandbox-sample/app/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/build
\ No newline at end of file
diff --git a/sandbox-sample/app/build.gradle b/sandbox-sample/app/build.gradle
deleted file mode 100644
index a82eec8a2..000000000
--- a/sandbox-sample/app/build.gradle
+++ /dev/null
@@ -1,52 +0,0 @@
-plugins {
- id 'com.android.application'
- id 'kotlin-android'
-}
-
-android {
- compileSdkVersion 33
-
- defaultConfig {
- applicationId "com.example.sandbox"
- minSdkVersion 21
- targetSdkVersion 30
- versionCode 1
- versionName "1.0"
-
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- }
-
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- kotlinOptions {
- jvmTarget = '1.8'
- }
- buildFeatures {
- viewBinding true
- }
-}
-
-dependencies {
- implementation project(':lib')
- implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
- implementation 'androidx.core:core-ktx:1.3.1'
- implementation 'androidx.appcompat:appcompat:1.2.0'
- implementation 'com.google.android.material:material:1.2.1'
- implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
- implementation 'androidx.navigation:navigation-fragment-ktx:2.3.0'
- implementation 'androidx.navigation:navigation-ui-ktx:2.3.0'
-
- implementation 'junit:junit:4.+'
-// testImplementation 'junit:junit:4.+'
-
- androidTestImplementation 'androidx.test.ext:junit:1.1.2'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
-}
diff --git a/sandbox-sample/app/proguard-rules.pro b/sandbox-sample/app/proguard-rules.pro
deleted file mode 100644
index 481bb4348..000000000
--- a/sandbox-sample/app/proguard-rules.pro
+++ /dev/null
@@ -1,21 +0,0 @@
-# Add project specific ProGuard rules here.
-# You can control the set of applied configuration files using the
-# proguardFiles setting in build.gradle.
-#
-# For more details, see
-# http://developer.android.com/guide/developing/tools/proguard.html
-
-# If your project uses WebView with JS, uncomment the following
-# and specify the fully qualified class name to the JavaScript interface
-# class:
-#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
-# public *;
-#}
-
-# Uncomment this to preserve the line number information for
-# debugging stack traces.
-#-keepattributes SourceFile,LineNumberTable
-
-# If you keep the line number information, uncomment this to
-# hide the original source file name.
-#-renamesourcefileattribute SourceFile
\ No newline at end of file
diff --git a/sandbox-sample/app/src/androidTest/java/com/example/sandbox/ExampleInstrumentedTest.kt b/sandbox-sample/app/src/androidTest/java/com/example/sandbox/ExampleInstrumentedTest.kt
deleted file mode 100644
index 72c9c6327..000000000
--- a/sandbox-sample/app/src/androidTest/java/com/example/sandbox/ExampleInstrumentedTest.kt
+++ /dev/null
@@ -1,24 +0,0 @@
-package com.example.sandbox
-
-import androidx.test.platform.app.InstrumentationRegistry
-import androidx.test.ext.junit.runners.AndroidJUnit4
-
-import org.junit.Test
-import org.junit.runner.RunWith
-
-import org.junit.Assert.*
-
-/**
- * Instrumented test, which will execute on an Android device.
- *
- * See [testing documentation](http://d.android.com/tools/testing).
- */
-@RunWith(AndroidJUnit4::class)
-class ExampleInstrumentedTest {
- @Test
- fun useAppContext() {
- // Context of the app under test.
- val appContext = InstrumentationRegistry.getInstrumentation().targetContext
- assertEquals("com.example.sandbox", appContext.packageName)
- }
-}
diff --git a/sandbox-sample/app/src/main/AndroidManifest.xml b/sandbox-sample/app/src/main/AndroidManifest.xml
deleted file mode 100644
index af216c41a..000000000
--- a/sandbox-sample/app/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/sandbox-sample/app/src/main/java/com/example/sandbox/FirstFragment.kt b/sandbox-sample/app/src/main/java/com/example/sandbox/FirstFragment.kt
deleted file mode 100644
index a50805661..000000000
--- a/sandbox-sample/app/src/main/java/com/example/sandbox/FirstFragment.kt
+++ /dev/null
@@ -1,43 +0,0 @@
-package com.example.sandbox
-
-import android.os.Bundle
-import androidx.fragment.app.Fragment
-import android.view.LayoutInflater
-import android.view.View
-import android.view.ViewGroup
-import androidx.navigation.fragment.findNavController
-import com.example.sandbox.databinding.FragmentFirstBinding
-
-/**
- * A simple [Fragment] subclass as the default destination in the navigation.
- */
-class FirstFragment : Fragment() {
-
- private var _binding: FragmentFirstBinding? = null
-
- // This property is only valid between onCreateView and
- // onDestroyView.
- private val binding get() = _binding!!
-
- override fun onCreateView(
- inflater: LayoutInflater, container: ViewGroup?,
- savedInstanceState: Bundle?
- ): View? {
-
- _binding = FragmentFirstBinding.inflate(inflater, container, false)
- return binding.root
- }
-
- override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
- super.onViewCreated(view, savedInstanceState)
-
- binding.buttonFirst.setOnClickListener {
- findNavController().navigate(R.id.action_FirstFragment_to_SecondFragment)
- }
- }
-
- override fun onDestroyView() {
- super.onDestroyView()
- _binding = null
- }
-}
\ No newline at end of file
diff --git a/sandbox-sample/app/src/main/java/com/example/sandbox/MainActivity.kt b/sandbox-sample/app/src/main/java/com/example/sandbox/MainActivity.kt
deleted file mode 100644
index eb064d9ac..000000000
--- a/sandbox-sample/app/src/main/java/com/example/sandbox/MainActivity.kt
+++ /dev/null
@@ -1,58 +0,0 @@
-package com.example.sandbox
-
-import android.os.Bundle
-import com.google.android.material.snackbar.Snackbar
-import androidx.appcompat.app.AppCompatActivity
-import androidx.navigation.findNavController
-import androidx.navigation.ui.AppBarConfiguration
-import androidx.navigation.ui.navigateUp
-import androidx.navigation.ui.setupActionBarWithNavController
-import android.view.Menu
-import android.view.MenuItem
-import com.example.sandbox.databinding.ActivityMainBinding
-
-class MainActivity : AppCompatActivity() {
-
- private lateinit var appBarConfiguration: AppBarConfiguration
- private lateinit var binding: ActivityMainBinding
-
- override fun onCreate(savedInstanceState: Bundle?) {
- super.onCreate(savedInstanceState)
-
- binding = ActivityMainBinding.inflate(layoutInflater)
- setContentView(binding.root)
-
- setSupportActionBar(binding.toolbar)
-
- val navController = findNavController(R.id.nav_host_fragment_content_main)
- appBarConfiguration = AppBarConfiguration(navController.graph)
- setupActionBarWithNavController(navController, appBarConfiguration)
-
- binding.fab.setOnClickListener { view ->
- Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
- .setAction("Action", null).show()
- }
- }
-
- override fun onCreateOptionsMenu(menu: Menu): Boolean {
- // Inflate the menu; this adds items to the action bar if it is present.
- menuInflater.inflate(R.menu.menu_main, menu)
- return true
- }
-
- override fun onOptionsItemSelected(item: MenuItem): Boolean {
- // Handle action bar item clicks here. The action bar will
- // automatically handle clicks on the Home/Up button, so long
- // as you specify a parent activity in AndroidManifest.xml.
- return when (item.itemId) {
- R.id.action_settings -> true
- else -> super.onOptionsItemSelected(item)
- }
- }
-
- override fun onSupportNavigateUp(): Boolean {
- val navController = findNavController(R.id.nav_host_fragment_content_main)
- return navController.navigateUp(appBarConfiguration)
- || super.onSupportNavigateUp()
- }
-}
\ No newline at end of file
diff --git a/sandbox-sample/app/src/main/java/com/example/sandbox/Sandbox.kt b/sandbox-sample/app/src/main/java/com/example/sandbox/Sandbox.kt
deleted file mode 100644
index eb2857e5c..000000000
--- a/sandbox-sample/app/src/main/java/com/example/sandbox/Sandbox.kt
+++ /dev/null
@@ -1,9 +0,0 @@
-package com.example.sandbox
-
-import com.example.sandbox.BEST_COLOR
-
-class Sandbox {
- fun printMagic() {
- println(BEST_COLOR)
- }
-}
diff --git a/sandbox-sample/app/src/main/java/com/example/sandbox/SecondFragment.kt b/sandbox-sample/app/src/main/java/com/example/sandbox/SecondFragment.kt
deleted file mode 100644
index 800cb9bc9..000000000
--- a/sandbox-sample/app/src/main/java/com/example/sandbox/SecondFragment.kt
+++ /dev/null
@@ -1,43 +0,0 @@
-package com.example.sandbox
-
-import android.os.Bundle
-import androidx.fragment.app.Fragment
-import android.view.LayoutInflater
-import android.view.View
-import android.view.ViewGroup
-import androidx.navigation.fragment.findNavController
-import com.example.sandbox.databinding.FragmentSecondBinding
-
-/**
- * A simple [Fragment] subclass as the second destination in the navigation.
- */
-class SecondFragment : Fragment() {
-
- private var _binding: FragmentSecondBinding? = null
-
- // This property is only valid between onCreateView and
- // onDestroyView.
- private val binding get() = _binding!!
-
- override fun onCreateView(
- inflater: LayoutInflater, container: ViewGroup?,
- savedInstanceState: Bundle?
- ): View? {
-
- _binding = FragmentSecondBinding.inflate(inflater, container, false)
- return binding.root
- }
-
- override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
- super.onViewCreated(view, savedInstanceState)
-
- binding.buttonSecond.setOnClickListener {
- findNavController().navigate(R.id.action_SecondFragment_to_FirstFragment)
- }
- }
-
- override fun onDestroyView() {
- super.onDestroyView()
- _binding = null
- }
-}
\ No newline at end of file
diff --git a/sandbox-sample/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/sandbox-sample/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
deleted file mode 100644
index e405c4f88..000000000
--- a/sandbox-sample/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/sandbox-sample/app/src/main/res/drawable/ic_launcher_background.xml b/sandbox-sample/app/src/main/res/drawable/ic_launcher_background.xml
deleted file mode 100644
index 100829200..000000000
--- a/sandbox-sample/app/src/main/res/drawable/ic_launcher_background.xml
+++ /dev/null
@@ -1,170 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/sandbox-sample/app/src/main/res/layout/activity_main.xml b/sandbox-sample/app/src/main/res/layout/activity_main.xml
deleted file mode 100644
index d69901821..000000000
--- a/sandbox-sample/app/src/main/res/layout/activity_main.xml
+++ /dev/null
@@ -1,37 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/sandbox-sample/app/src/main/res/layout/content_main.xml b/sandbox-sample/app/src/main/res/layout/content_main.xml
deleted file mode 100644
index 9bfcf54e6..000000000
--- a/sandbox-sample/app/src/main/res/layout/content_main.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/sandbox-sample/app/src/main/res/layout/fragment_first.xml b/sandbox-sample/app/src/main/res/layout/fragment_first.xml
deleted file mode 100644
index c2d9e34ac..000000000
--- a/sandbox-sample/app/src/main/res/layout/fragment_first.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/sandbox-sample/app/src/main/res/layout/fragment_second.xml b/sandbox-sample/app/src/main/res/layout/fragment_second.xml
deleted file mode 100644
index fa5053abb..000000000
--- a/sandbox-sample/app/src/main/res/layout/fragment_second.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/sandbox-sample/app/src/main/res/menu/menu_main.xml b/sandbox-sample/app/src/main/res/menu/menu_main.xml
deleted file mode 100644
index bb06f634e..000000000
--- a/sandbox-sample/app/src/main/res/menu/menu_main.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
\ No newline at end of file
diff --git a/sandbox-sample/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/sandbox-sample/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
deleted file mode 100644
index 03eed2533..000000000
--- a/sandbox-sample/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/sandbox-sample/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/sandbox-sample/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
deleted file mode 100644
index 03eed2533..000000000
--- a/sandbox-sample/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/sandbox-sample/app/src/main/res/mipmap-hdpi/ic_launcher.png b/sandbox-sample/app/src/main/res/mipmap-hdpi/ic_launcher.png
deleted file mode 100644
index a571e6009..000000000
Binary files a/sandbox-sample/app/src/main/res/mipmap-hdpi/ic_launcher.png and /dev/null differ
diff --git a/sandbox-sample/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/sandbox-sample/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
deleted file mode 100644
index 61da551c5..000000000
Binary files a/sandbox-sample/app/src/main/res/mipmap-hdpi/ic_launcher_round.png and /dev/null differ
diff --git a/sandbox-sample/app/src/main/res/mipmap-mdpi/ic_launcher.png b/sandbox-sample/app/src/main/res/mipmap-mdpi/ic_launcher.png
deleted file mode 100644
index c41dd2853..000000000
Binary files a/sandbox-sample/app/src/main/res/mipmap-mdpi/ic_launcher.png and /dev/null differ
diff --git a/sandbox-sample/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/sandbox-sample/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
deleted file mode 100644
index db5080a75..000000000
Binary files a/sandbox-sample/app/src/main/res/mipmap-mdpi/ic_launcher_round.png and /dev/null differ
diff --git a/sandbox-sample/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/sandbox-sample/app/src/main/res/mipmap-xhdpi/ic_launcher.png
deleted file mode 100644
index 6dba46dab..000000000
Binary files a/sandbox-sample/app/src/main/res/mipmap-xhdpi/ic_launcher.png and /dev/null differ
diff --git a/sandbox-sample/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/sandbox-sample/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
deleted file mode 100644
index da31a871c..000000000
Binary files a/sandbox-sample/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png and /dev/null differ
diff --git a/sandbox-sample/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/sandbox-sample/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
deleted file mode 100644
index 15ac68172..000000000
Binary files a/sandbox-sample/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and /dev/null differ
diff --git a/sandbox-sample/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/sandbox-sample/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
deleted file mode 100644
index b216f2d31..000000000
Binary files a/sandbox-sample/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png and /dev/null differ
diff --git a/sandbox-sample/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/sandbox-sample/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
deleted file mode 100644
index f25a41974..000000000
Binary files a/sandbox-sample/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and /dev/null differ
diff --git a/sandbox-sample/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/sandbox-sample/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
deleted file mode 100644
index e96783ccc..000000000
Binary files a/sandbox-sample/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png and /dev/null differ
diff --git a/sandbox-sample/app/src/main/res/navigation/nav_graph.xml b/sandbox-sample/app/src/main/res/navigation/nav_graph.xml
deleted file mode 100644
index 646e4a8b7..000000000
--- a/sandbox-sample/app/src/main/res/navigation/nav_graph.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/sandbox-sample/app/src/main/res/values-night/themes.xml b/sandbox-sample/app/src/main/res/values-night/themes.xml
deleted file mode 100644
index 4a976dd22..000000000
--- a/sandbox-sample/app/src/main/res/values-night/themes.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/sandbox-sample/app/src/main/res/values/colors.xml b/sandbox-sample/app/src/main/res/values/colors.xml
deleted file mode 100644
index 09837df62..000000000
--- a/sandbox-sample/app/src/main/res/values/colors.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
- #FFBB86FC
- #FF6200EE
- #FF3700B3
- #FF03DAC5
- #FF018786
- #FF000000
- #FFFFFFFF
-
\ No newline at end of file
diff --git a/sandbox-sample/app/src/main/res/values/dimens.xml b/sandbox-sample/app/src/main/res/values/dimens.xml
deleted file mode 100644
index 431e7d7e8..000000000
--- a/sandbox-sample/app/src/main/res/values/dimens.xml
+++ /dev/null
@@ -1,3 +0,0 @@
-
- 16dp
-
\ No newline at end of file
diff --git a/sandbox-sample/app/src/main/res/values/strings.xml b/sandbox-sample/app/src/main/res/values/strings.xml
deleted file mode 100644
index fdc5200ae..000000000
--- a/sandbox-sample/app/src/main/res/values/strings.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
- Sandbox
- Settings
-
- First Fragment
- Second Fragment
- Next
- Previous
-
- Hello first fragment
- Hello second fragment. Arg: %1$s
-
\ No newline at end of file
diff --git a/sandbox-sample/app/src/main/res/values/themes.xml b/sandbox-sample/app/src/main/res/values/themes.xml
deleted file mode 100644
index 68918eea2..000000000
--- a/sandbox-sample/app/src/main/res/values/themes.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/sandbox-sample/app/src/test/java/com/example/sandbox/ExampleUnitTest.kt b/sandbox-sample/app/src/test/java/com/example/sandbox/ExampleUnitTest.kt
deleted file mode 100644
index 0fafa0f6b..000000000
--- a/sandbox-sample/app/src/test/java/com/example/sandbox/ExampleUnitTest.kt
+++ /dev/null
@@ -1,17 +0,0 @@
-package com.example.sandbox
-
-import org.junit.Test
-
-import org.junit.Assert.*
-
-/**
- * Example local unit test, which will execute on the development machine (host).
- *
- * See [testing documentation](http://d.android.com/tools/testing).
- */
-class ExampleUnitTest {
- @Test
- fun addition_isCorrect() {
- assertEquals(4, 2 + 2)
- }
-}
\ No newline at end of file
diff --git a/sandbox-sample/build.gradle b/sandbox-sample/build.gradle
deleted file mode 100644
index d4dfa5da9..000000000
--- a/sandbox-sample/build.gradle
+++ /dev/null
@@ -1,48 +0,0 @@
-buildscript {
- ext.kotlin_version = '1.9.0'
- repositories {
- google()
- mavenCentral()
- }
- dependencies {
- classpath 'com.android.tools.build:gradle:7.0.4'
-// classpath 'com.android.tools.build:gradle:7.3.0-alpha08'
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
- }
-}
-
-plugins {
- id 'com.autonomousapps.dependency-analysis'
- id 'dagger.hilt.android.plugin' apply false
-}
-
-dependencyAnalysis {
- issues {
- project(':app') {
- onUnusedDependencies {
- severity 'warn'
- }
- onUsedTransitiveDependencies {
- severity 'warn'
- exclude 'androidx.coordinatorlayout:coordinatorlayout'
- }
- }
- }
- structure {
- bundle('hilt') {
- include('com.google.dagger:hilt-android')
- include('com.google.dagger:hilt-core')
- }
- }
-}
-
-allprojects {
- repositories {
- google()
- mavenCentral()
- }
-}
-
-task clean(type: Delete) {
- delete rootProject.buildDir
-}
diff --git a/sandbox-sample/generics/build.gradle b/sandbox-sample/generics/build.gradle
deleted file mode 100644
index 407833068..000000000
--- a/sandbox-sample/generics/build.gradle
+++ /dev/null
@@ -1,17 +0,0 @@
-//file:noinspection UnnecessaryQualifiedReference
-plugins {
- id 'org.jetbrains.kotlin.jvm'
-}
-
-tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
- kotlinOptions {
- jvmTarget = "1.8"
- }
-}
-
-dependencies {
- implementation 'org.apache.commons:commons-math:2.2'
- //noinspection GradleDynamicVersion
- testImplementation 'junit:junit:4.+'
- testImplementation 'org.apache.commons:commons-math:2.2'
-}
diff --git a/sandbox-sample/generics/src/main/kotlin/com/example/generics/GenericUser.kt b/sandbox-sample/generics/src/main/kotlin/com/example/generics/GenericUser.kt
deleted file mode 100644
index d5370baf0..000000000
--- a/sandbox-sample/generics/src/main/kotlin/com/example/generics/GenericUser.kt
+++ /dev/null
@@ -1,7 +0,0 @@
-package com.example.generics
-
-import org.apache.commons.math.random.RandomData
-
-abstract class GenericUser {
- abstract fun thing(): List
-}
diff --git a/sandbox-sample/generics/src/test/kotlin/com/example/generics/GenericUserTest.kt b/sandbox-sample/generics/src/test/kotlin/com/example/generics/GenericUserTest.kt
deleted file mode 100644
index 2e8fe7c3c..000000000
--- a/sandbox-sample/generics/src/test/kotlin/com/example/generics/GenericUserTest.kt
+++ /dev/null
@@ -1,11 +0,0 @@
-package com.example.generics
-
-import org.junit.Assert.assertTrue
-import org.junit.Test
-
-class GenericUserTest {
-
- @Test fun `a test`() {
- assertTrue("Not true!", true)
- }
-}
diff --git a/sandbox-sample/gradle.properties b/sandbox-sample/gradle.properties
deleted file mode 100644
index 3086b0348..000000000
--- a/sandbox-sample/gradle.properties
+++ /dev/null
@@ -1,21 +0,0 @@
-# Project-wide Gradle settings.
-# IDE (e.g. Android Studio) users:
-# Gradle settings configured through the IDE *will override*
-# any settings specified in this file.
-# For more details on how to configure your build environment visit
-# http://www.gradle.org/docs/current/userguide/build_environment.html
-# Specifies the JVM arguments used for the daemon process.
-# The setting is particularly useful for tweaking memory settings.
-org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
-# When configured, Gradle will run in incubating parallel mode.
-# This option should only be used with decoupled projects. More details, visit
-# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
-# org.gradle.parallel=true
-# AndroidX package structure to make it clearer which packages are bundled with the
-# Android operating system, and which are packaged with your app"s APK
-# https://developer.android.com/topic/libraries/support-library/androidx-rn
-android.useAndroidX=true
-# Kotlin code style for this project: "official" or "obsolete":
-kotlin.code.style=official
-
-dependency.analysis.print.build.health=true
\ No newline at end of file
diff --git a/sandbox-sample/gradle/wrapper/gradle-wrapper.jar b/sandbox-sample/gradle/wrapper/gradle-wrapper.jar
deleted file mode 100644
index 41d9927a4..000000000
Binary files a/sandbox-sample/gradle/wrapper/gradle-wrapper.jar and /dev/null differ
diff --git a/sandbox-sample/gradle/wrapper/gradle-wrapper.properties b/sandbox-sample/gradle/wrapper/gradle-wrapper.properties
deleted file mode 100644
index 8049c684f..000000000
--- a/sandbox-sample/gradle/wrapper/gradle-wrapper.properties
+++ /dev/null
@@ -1,5 +0,0 @@
-distributionBase=GRADLE_USER_HOME
-distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
-zipStoreBase=GRADLE_USER_HOME
-zipStorePath=wrapper/dists
diff --git a/sandbox-sample/gradlew b/sandbox-sample/gradlew
deleted file mode 100755
index 1b6c78733..000000000
--- a/sandbox-sample/gradlew
+++ /dev/null
@@ -1,234 +0,0 @@
-#!/bin/sh
-
-#
-# Copyright © 2015-2021 the original authors.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# https://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-##############################################################################
-#
-# Gradle start up script for POSIX generated by Gradle.
-#
-# Important for running:
-#
-# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
-# noncompliant, but you have some other compliant shell such as ksh or
-# bash, then to run this script, type that shell name before the whole
-# command line, like:
-#
-# ksh Gradle
-#
-# Busybox and similar reduced shells will NOT work, because this script
-# requires all of these POSIX shell features:
-# * functions;
-# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
-# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
-# * compound commands having a testable exit status, especially «case»;
-# * various built-in commands including «command», «set», and «ulimit».
-#
-# Important for patching:
-#
-# (2) This script targets any POSIX shell, so it avoids extensions provided
-# by Bash, Ksh, etc; in particular arrays are avoided.
-#
-# The "traditional" practice of packing multiple parameters into a
-# space-separated string is a well documented source of bugs and security
-# problems, so this is (mostly) avoided, by progressively accumulating
-# options in "$@", and eventually passing that to Java.
-#
-# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
-# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
-# see the in-line comments for details.
-#
-# There are tweaks for specific operating systems such as AIX, CygWin,
-# Darwin, MinGW, and NonStop.
-#
-# (3) This script is generated from the Groovy template
-# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
-# within the Gradle project.
-#
-# You can find Gradle at https://github.com/gradle/gradle/.
-#
-##############################################################################
-
-# Attempt to set APP_HOME
-
-# Resolve links: $0 may be a link
-app_path=$0
-
-# Need this for daisy-chained symlinks.
-while
- APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
- [ -h "$app_path" ]
-do
- ls=$( ls -ld "$app_path" )
- link=${ls#*' -> '}
- case $link in #(
- /*) app_path=$link ;; #(
- *) app_path=$APP_HOME$link ;;
- esac
-done
-
-APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
-
-APP_NAME="Gradle"
-APP_BASE_NAME=${0##*/}
-
-# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
-DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
-
-# Use the maximum available, or set MAX_FD != -1 to use that value.
-MAX_FD=maximum
-
-warn () {
- echo "$*"
-} >&2
-
-die () {
- echo
- echo "$*"
- echo
- exit 1
-} >&2
-
-# OS specific support (must be 'true' or 'false').
-cygwin=false
-msys=false
-darwin=false
-nonstop=false
-case "$( uname )" in #(
- CYGWIN* ) cygwin=true ;; #(
- Darwin* ) darwin=true ;; #(
- MSYS* | MINGW* ) msys=true ;; #(
- NONSTOP* ) nonstop=true ;;
-esac
-
-CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
-
-
-# Determine the Java command to use to start the JVM.
-if [ -n "$JAVA_HOME" ] ; then
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
- # IBM's JDK on AIX uses strange locations for the executables
- JAVACMD=$JAVA_HOME/jre/sh/java
- else
- JAVACMD=$JAVA_HOME/bin/java
- fi
- if [ ! -x "$JAVACMD" ] ; then
- die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
-
-Please set the JAVA_HOME variable in your environment to match the
-location of your Java installation."
- fi
-else
- JAVACMD=java
- which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
-
-Please set the JAVA_HOME variable in your environment to match the
-location of your Java installation."
-fi
-
-# Increase the maximum file descriptors if we can.
-if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
- case $MAX_FD in #(
- max*)
- MAX_FD=$( ulimit -H -n ) ||
- warn "Could not query maximum file descriptor limit"
- esac
- case $MAX_FD in #(
- '' | soft) :;; #(
- *)
- ulimit -n "$MAX_FD" ||
- warn "Could not set maximum file descriptor limit to $MAX_FD"
- esac
-fi
-
-# Collect all arguments for the java command, stacking in reverse order:
-# * args from the command line
-# * the main class name
-# * -classpath
-# * -D...appname settings
-# * --module-path (only if needed)
-# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
-
-# For Cygwin or MSYS, switch paths to Windows format before running java
-if "$cygwin" || "$msys" ; then
- APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
- CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
-
- JAVACMD=$( cygpath --unix "$JAVACMD" )
-
- # Now convert the arguments - kludge to limit ourselves to /bin/sh
- for arg do
- if
- case $arg in #(
- -*) false ;; # don't mess with options #(
- /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
- [ -e "$t" ] ;; #(
- *) false ;;
- esac
- then
- arg=$( cygpath --path --ignore --mixed "$arg" )
- fi
- # Roll the args list around exactly as many times as the number of
- # args, so each arg winds up back in the position where it started, but
- # possibly modified.
- #
- # NB: a `for` loop captures its iteration list before it begins, so
- # changing the positional parameters here affects neither the number of
- # iterations, nor the values presented in `arg`.
- shift # remove old arg
- set -- "$@" "$arg" # push replacement arg
- done
-fi
-
-# Collect all arguments for the java command;
-# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
-# shell script including quotes and variable substitutions, so put them in
-# double quotes to make sure that they get re-expanded; and
-# * put everything else in single quotes, so that it's not re-expanded.
-
-set -- \
- "-Dorg.gradle.appname=$APP_BASE_NAME" \
- -classpath "$CLASSPATH" \
- org.gradle.wrapper.GradleWrapperMain \
- "$@"
-
-# Use "xargs" to parse quoted args.
-#
-# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
-#
-# In Bash we could simply go:
-#
-# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
-# set -- "${ARGS[@]}" "$@"
-#
-# but POSIX shell has neither arrays nor command substitution, so instead we
-# post-process each arg (as a line of input to sed) to backslash-escape any
-# character that might be a shell metacharacter, then use eval to reverse
-# that process (while maintaining the separation between arguments), and wrap
-# the whole thing up as a single "set" statement.
-#
-# This will of course break if any of these variables contains a newline or
-# an unmatched quote.
-#
-
-eval "set -- $(
- printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
- xargs -n1 |
- sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
- tr '\n' ' '
- )" '"$@"'
-
-exec "$JAVACMD" "$@"
diff --git a/sandbox-sample/gradlew.bat b/sandbox-sample/gradlew.bat
deleted file mode 100644
index ac1b06f93..000000000
--- a/sandbox-sample/gradlew.bat
+++ /dev/null
@@ -1,89 +0,0 @@
-@rem
-@rem Copyright 2015 the original author or authors.
-@rem
-@rem Licensed under the Apache License, Version 2.0 (the "License");
-@rem you may not use this file except in compliance with the License.
-@rem You may obtain a copy of the License at
-@rem
-@rem https://www.apache.org/licenses/LICENSE-2.0
-@rem
-@rem Unless required by applicable law or agreed to in writing, software
-@rem distributed under the License is distributed on an "AS IS" BASIS,
-@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-@rem See the License for the specific language governing permissions and
-@rem limitations under the License.
-@rem
-
-@if "%DEBUG%" == "" @echo off
-@rem ##########################################################################
-@rem
-@rem Gradle startup script for Windows
-@rem
-@rem ##########################################################################
-
-@rem Set local scope for the variables with windows NT shell
-if "%OS%"=="Windows_NT" setlocal
-
-set DIRNAME=%~dp0
-if "%DIRNAME%" == "" set DIRNAME=.
-set APP_BASE_NAME=%~n0
-set APP_HOME=%DIRNAME%
-
-@rem Resolve any "." and ".." in APP_HOME to make it shorter.
-for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
-
-@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
-set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
-
-@rem Find java.exe
-if defined JAVA_HOME goto findJavaFromJavaHome
-
-set JAVA_EXE=java.exe
-%JAVA_EXE% -version >NUL 2>&1
-if "%ERRORLEVEL%" == "0" goto execute
-
-echo.
-echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation.
-
-goto fail
-
-:findJavaFromJavaHome
-set JAVA_HOME=%JAVA_HOME:"=%
-set JAVA_EXE=%JAVA_HOME%/bin/java.exe
-
-if exist "%JAVA_EXE%" goto execute
-
-echo.
-echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation.
-
-goto fail
-
-:execute
-@rem Setup the command line
-
-set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
-
-
-@rem Execute Gradle
-"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
-
-:end
-@rem End local scope for the variables with windows NT shell
-if "%ERRORLEVEL%"=="0" goto mainEnd
-
-:fail
-rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
-rem the _cmd.exe /c_ return code!
-if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
-exit /b 1
-
-:mainEnd
-if "%OS%"=="Windows_NT" endlocal
-
-:omega
diff --git a/sandbox-sample/groovy/build.gradle b/sandbox-sample/groovy/build.gradle
deleted file mode 100644
index 117afcf78..000000000
--- a/sandbox-sample/groovy/build.gradle
+++ /dev/null
@@ -1,9 +0,0 @@
-plugins {
- id 'groovy'
- id 'java-library'
-}
-
-dependencies {
- implementation 'org.codehaus.groovy:groovy-all:3.0.9'
- implementation 'com.google.guava:guava:30.1.1-jre'
-}
diff --git a/sandbox-sample/groovy/src/main/groovy/mutual/aid/GroovyLibrary.groovy b/sandbox-sample/groovy/src/main/groovy/mutual/aid/GroovyLibrary.groovy
deleted file mode 100644
index 7c6cd8a64..000000000
--- a/sandbox-sample/groovy/src/main/groovy/mutual/aid/GroovyLibrary.groovy
+++ /dev/null
@@ -1,7 +0,0 @@
-package mutual.aid
-
-class GroovyLibrary {
- def hello() {
- "hello"
- }
-}
diff --git a/sandbox-sample/hilt/build.gradle b/sandbox-sample/hilt/build.gradle
deleted file mode 100644
index baed908cf..000000000
--- a/sandbox-sample/hilt/build.gradle
+++ /dev/null
@@ -1,40 +0,0 @@
-plugins {
- id 'com.android.application'
- id 'org.jetbrains.kotlin.android'
- id 'org.jetbrains.kotlin.kapt'
- id 'dagger.hilt.android.plugin'
-}
-
-kapt {
- correctErrorTypes true
-}
-
-android {
- compileSdkVersion 33
-
- defaultConfig {
- applicationId "com.example.sandbox"
- minSdkVersion 21
- targetSdkVersion 30
- versionCode 1
- versionName "1.0"
-
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- kotlinOptions {
- jvmTarget = '1.8'
- }
-}
-
-dependencies {
- implementation 'androidx.appcompat:appcompat:1.4.1'
- implementation 'com.google.android.material:material:1.5.0'
-
- // Hilt
- implementation 'com.google.dagger:hilt-android:2.41'
- kapt 'com.google.dagger:hilt-compiler:2.41'
-}
diff --git a/sandbox-sample/hilt/src/main/AndroidManifest.xml b/sandbox-sample/hilt/src/main/AndroidManifest.xml
deleted file mode 100644
index 0a832501f..000000000
--- a/sandbox-sample/hilt/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/sandbox-sample/hilt/src/main/java/com/example/hilt/HiltApplication.kt b/sandbox-sample/hilt/src/main/java/com/example/hilt/HiltApplication.kt
deleted file mode 100644
index d8147c8e0..000000000
--- a/sandbox-sample/hilt/src/main/java/com/example/hilt/HiltApplication.kt
+++ /dev/null
@@ -1,8 +0,0 @@
-package com.example.hilt
-
-import android.app.Application
-import dagger.hilt.android.HiltAndroidApp
-
-@HiltAndroidApp
-class HiltApplication : Application() {
-}
\ No newline at end of file
diff --git a/sandbox-sample/hilt/src/main/java/com/example/hilt/MainActivity.kt b/sandbox-sample/hilt/src/main/java/com/example/hilt/MainActivity.kt
deleted file mode 100644
index bd830237b..000000000
--- a/sandbox-sample/hilt/src/main/java/com/example/hilt/MainActivity.kt
+++ /dev/null
@@ -1,6 +0,0 @@
-package com.example.hilt
-
-import androidx.appcompat.app.AppCompatActivity
-
-class MainActivity : AppCompatActivity() {
-}
\ No newline at end of file
diff --git a/sandbox-sample/hilt/src/main/res/drawable-v24/ic_launcher_foreground.xml b/sandbox-sample/hilt/src/main/res/drawable-v24/ic_launcher_foreground.xml
deleted file mode 100644
index e405c4f88..000000000
--- a/sandbox-sample/hilt/src/main/res/drawable-v24/ic_launcher_foreground.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/sandbox-sample/hilt/src/main/res/drawable/ic_launcher_background.xml b/sandbox-sample/hilt/src/main/res/drawable/ic_launcher_background.xml
deleted file mode 100644
index 100829200..000000000
--- a/sandbox-sample/hilt/src/main/res/drawable/ic_launcher_background.xml
+++ /dev/null
@@ -1,170 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/sandbox-sample/hilt/src/main/res/menu/menu_main.xml b/sandbox-sample/hilt/src/main/res/menu/menu_main.xml
deleted file mode 100644
index bb06f634e..000000000
--- a/sandbox-sample/hilt/src/main/res/menu/menu_main.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
\ No newline at end of file
diff --git a/sandbox-sample/hilt/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/sandbox-sample/hilt/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
deleted file mode 100644
index 03eed2533..000000000
--- a/sandbox-sample/hilt/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/sandbox-sample/hilt/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/sandbox-sample/hilt/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
deleted file mode 100644
index 03eed2533..000000000
--- a/sandbox-sample/hilt/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/sandbox-sample/hilt/src/main/res/mipmap-hdpi/ic_launcher.png b/sandbox-sample/hilt/src/main/res/mipmap-hdpi/ic_launcher.png
deleted file mode 100644
index a571e6009..000000000
Binary files a/sandbox-sample/hilt/src/main/res/mipmap-hdpi/ic_launcher.png and /dev/null differ
diff --git a/sandbox-sample/hilt/src/main/res/mipmap-hdpi/ic_launcher_round.png b/sandbox-sample/hilt/src/main/res/mipmap-hdpi/ic_launcher_round.png
deleted file mode 100644
index 61da551c5..000000000
Binary files a/sandbox-sample/hilt/src/main/res/mipmap-hdpi/ic_launcher_round.png and /dev/null differ
diff --git a/sandbox-sample/hilt/src/main/res/mipmap-mdpi/ic_launcher.png b/sandbox-sample/hilt/src/main/res/mipmap-mdpi/ic_launcher.png
deleted file mode 100644
index c41dd2853..000000000
Binary files a/sandbox-sample/hilt/src/main/res/mipmap-mdpi/ic_launcher.png and /dev/null differ
diff --git a/sandbox-sample/hilt/src/main/res/mipmap-mdpi/ic_launcher_round.png b/sandbox-sample/hilt/src/main/res/mipmap-mdpi/ic_launcher_round.png
deleted file mode 100644
index db5080a75..000000000
Binary files a/sandbox-sample/hilt/src/main/res/mipmap-mdpi/ic_launcher_round.png and /dev/null differ
diff --git a/sandbox-sample/hilt/src/main/res/mipmap-xhdpi/ic_launcher.png b/sandbox-sample/hilt/src/main/res/mipmap-xhdpi/ic_launcher.png
deleted file mode 100644
index 6dba46dab..000000000
Binary files a/sandbox-sample/hilt/src/main/res/mipmap-xhdpi/ic_launcher.png and /dev/null differ
diff --git a/sandbox-sample/hilt/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/sandbox-sample/hilt/src/main/res/mipmap-xhdpi/ic_launcher_round.png
deleted file mode 100644
index da31a871c..000000000
Binary files a/sandbox-sample/hilt/src/main/res/mipmap-xhdpi/ic_launcher_round.png and /dev/null differ
diff --git a/sandbox-sample/hilt/src/main/res/mipmap-xxhdpi/ic_launcher.png b/sandbox-sample/hilt/src/main/res/mipmap-xxhdpi/ic_launcher.png
deleted file mode 100644
index 15ac68172..000000000
Binary files a/sandbox-sample/hilt/src/main/res/mipmap-xxhdpi/ic_launcher.png and /dev/null differ
diff --git a/sandbox-sample/hilt/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/sandbox-sample/hilt/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
deleted file mode 100644
index b216f2d31..000000000
Binary files a/sandbox-sample/hilt/src/main/res/mipmap-xxhdpi/ic_launcher_round.png and /dev/null differ
diff --git a/sandbox-sample/hilt/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/sandbox-sample/hilt/src/main/res/mipmap-xxxhdpi/ic_launcher.png
deleted file mode 100644
index f25a41974..000000000
Binary files a/sandbox-sample/hilt/src/main/res/mipmap-xxxhdpi/ic_launcher.png and /dev/null differ
diff --git a/sandbox-sample/hilt/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/sandbox-sample/hilt/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
deleted file mode 100644
index e96783ccc..000000000
Binary files a/sandbox-sample/hilt/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png and /dev/null differ
diff --git a/sandbox-sample/hilt/src/main/res/values-night/themes.xml b/sandbox-sample/hilt/src/main/res/values-night/themes.xml
deleted file mode 100644
index 4a976dd22..000000000
--- a/sandbox-sample/hilt/src/main/res/values-night/themes.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/sandbox-sample/hilt/src/main/res/values/colors.xml b/sandbox-sample/hilt/src/main/res/values/colors.xml
deleted file mode 100644
index 09837df62..000000000
--- a/sandbox-sample/hilt/src/main/res/values/colors.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
- #FFBB86FC
- #FF6200EE
- #FF3700B3
- #FF03DAC5
- #FF018786
- #FF000000
- #FFFFFFFF
-
\ No newline at end of file
diff --git a/sandbox-sample/hilt/src/main/res/values/dimens.xml b/sandbox-sample/hilt/src/main/res/values/dimens.xml
deleted file mode 100644
index 431e7d7e8..000000000
--- a/sandbox-sample/hilt/src/main/res/values/dimens.xml
+++ /dev/null
@@ -1,3 +0,0 @@
-
- 16dp
-
\ No newline at end of file
diff --git a/sandbox-sample/hilt/src/main/res/values/strings.xml b/sandbox-sample/hilt/src/main/res/values/strings.xml
deleted file mode 100644
index fdc5200ae..000000000
--- a/sandbox-sample/hilt/src/main/res/values/strings.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
- Sandbox
- Settings
-
- First Fragment
- Second Fragment
- Next
- Previous
-
- Hello first fragment
- Hello second fragment. Arg: %1$s
-
\ No newline at end of file
diff --git a/sandbox-sample/hilt/src/main/res/values/themes.xml b/sandbox-sample/hilt/src/main/res/values/themes.xml
deleted file mode 100644
index 68918eea2..000000000
--- a/sandbox-sample/hilt/src/main/res/values/themes.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/sandbox-sample/javalib/build.gradle b/sandbox-sample/javalib/build.gradle
deleted file mode 100644
index a7b3e38b4..000000000
--- a/sandbox-sample/javalib/build.gradle
+++ /dev/null
@@ -1,16 +0,0 @@
-plugins {
- id 'java-library'
-}
-
-java {
- sourceCompatibility = JavaVersion.VERSION_1_8
- targetCompatibility = JavaVersion.VERSION_1_8
-}
-
-dependencies {
- implementation 'org.apache.commons:commons-math:2.2'
- implementation 'org.apache.commons:commons-collections4:4.4'
- implementation 'junit:junit:4.+'
-// testImplementation 'junit:junit:4.+'
- testImplementation 'org.apache.commons:commons-math:2.2'
-}
diff --git a/sandbox-sample/javalib/src/main/java/com/example/lib/JavaLib.java b/sandbox-sample/javalib/src/main/java/com/example/lib/JavaLib.java
deleted file mode 100644
index 1af036f9d..000000000
--- a/sandbox-sample/javalib/src/main/java/com/example/lib/JavaLib.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package com.example.lib;
-
-import java.util.List;
-import org.apache.commons.collections4.Bag;
-import org.apache.commons.collections4.bag.HashBag;
-import org.apache.commons.math.random.RandomData;
-
-abstract public class JavaLib {
- abstract public List getRandomData();
-
- public Bag newBag() {
- return new HashBag();
- }
-}
diff --git a/sandbox-sample/javalib/src/test/java/com/example/lib/JavaLibTest.java b/sandbox-sample/javalib/src/test/java/com/example/lib/JavaLibTest.java
deleted file mode 100644
index 082cdcf92..000000000
--- a/sandbox-sample/javalib/src/test/java/com/example/lib/JavaLibTest.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package com.example.lib;
-
-import org.junit.Test;
-
-import static org.junit.Assert.assertTrue;
-
-public class JavaLibTest {
-
- @Test
- public void a_test() {
- assertTrue("False!", true);
- }
-}
diff --git a/sandbox-sample/lib-unused-kapt/build.gradle b/sandbox-sample/lib-unused-kapt/build.gradle
deleted file mode 100644
index 48301df00..000000000
--- a/sandbox-sample/lib-unused-kapt/build.gradle
+++ /dev/null
@@ -1,84 +0,0 @@
-plugins {
-// id 'com.example.example'
- id 'com.android.library'
- id 'kotlin-android'
- id 'kotlin-kapt'
- id 'com.example.example'
-}
-
-android {
- compileSdkVersion 33
-
- defaultConfig {
- minSdkVersion 21
- targetSdkVersion 30
- versionCode 1
- versionName "1.0"
-
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- }
-
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
-
-/* flavorDimensions "api", "mode"
- productFlavors {
- demo {
- dimension "mode"
-
- }
- full {
- dimension "mode"
-
- }
-
- minApi24 {
- dimension "api"
- minSdkVersion 24
- versionCode 30000 + android.defaultConfig.versionCode
- versionNameSuffix "-minApi24"
-
- }
- minApi23 {
- dimension "api"
- minSdkVersion 23
- versionCode 20000 + android.defaultConfig.versionCode
- versionNameSuffix "-minApi23"
-
- }
- minApi21 {
- dimension "api"
- minSdkVersion 21
- versionCode 10000 + android.defaultConfig.versionCode
- versionNameSuffix "-minApi21"
-
- }
- }
-*/
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- kotlinOptions {
- jvmTarget = '1.8'
- }
-}
-
-dependencies {
- implementation 'androidx.preference:preference-ktx:1.1.0'
- implementation 'com.google.dagger:dagger:2.44.2'
- kapt 'com.google.dagger:dagger-compiler:2.44.2'
-}
-
-dependencyAnalysis {
- issues {
- ignoreKtx true
- onRedundantPlugins {
- severity 'warn'
- }
- }
-}
diff --git a/sandbox-sample/lib-unused-kapt/src/main/AndroidManifest.xml b/sandbox-sample/lib-unused-kapt/src/main/AndroidManifest.xml
deleted file mode 100644
index 58b4654d8..000000000
--- a/sandbox-sample/lib-unused-kapt/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,2 +0,0 @@
-
-
diff --git a/sandbox-sample/lib-unused-kapt/src/main/java/com/example/sandbox/Foo.java b/sandbox-sample/lib-unused-kapt/src/main/java/com/example/sandbox/Foo.java
deleted file mode 100644
index 992a8eb46..000000000
--- a/sandbox-sample/lib-unused-kapt/src/main/java/com/example/sandbox/Foo.java
+++ /dev/null
@@ -1,8 +0,0 @@
-package com.example.sandbox;
-
-import java.util.List;
-import java.nio.file.*;
-
-public class Foo {
-
-}
diff --git a/sandbox-sample/lib-unused-kapt/src/main/java/com/example/sandbox/Lib.kt b/sandbox-sample/lib-unused-kapt/src/main/java/com/example/sandbox/Lib.kt
deleted file mode 100644
index 06ef45bc8..000000000
--- a/sandbox-sample/lib-unused-kapt/src/main/java/com/example/sandbox/Lib.kt
+++ /dev/null
@@ -1,9 +0,0 @@
-package com.example.sandbox
-
-import androidx.preference.PreferenceFragmentCompat
-
-class Lib {
-
-}
-
-abstract class BasePreferenceFragment : PreferenceFragmentCompat() {}
diff --git a/sandbox-sample/lib-unused-kapt/src/main/java/com/example/sandbox/toplevel.kt b/sandbox-sample/lib-unused-kapt/src/main/java/com/example/sandbox/toplevel.kt
deleted file mode 100644
index ff15771de..000000000
--- a/sandbox-sample/lib-unused-kapt/src/main/java/com/example/sandbox/toplevel.kt
+++ /dev/null
@@ -1,6 +0,0 @@
-package com.example.sandbox
-
-fun magic() = 42
-
-const val BEST_COLOR = "green"
-
diff --git a/sandbox-sample/lib-unused-kapt/src/main/res/values/strings.xml b/sandbox-sample/lib-unused-kapt/src/main/res/values/strings.xml
deleted file mode 100644
index db464e6da..000000000
--- a/sandbox-sample/lib-unused-kapt/src/main/res/values/strings.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
- 42
-
diff --git a/sandbox-sample/lib/build.gradle b/sandbox-sample/lib/build.gradle
deleted file mode 100644
index c134eb9b0..000000000
--- a/sandbox-sample/lib/build.gradle
+++ /dev/null
@@ -1,79 +0,0 @@
-plugins {
- id 'com.android.library'
- id 'kotlin-android'
- id 'kotlin-kapt'
-}
-
-android {
- compileSdkVersion 33
-
- defaultConfig {
- minSdkVersion 21
- targetSdkVersion 30
- versionCode 1
- versionName "1.0"
-
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- }
-
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
-
-/* flavorDimensions "api", "mode"
- productFlavors {
- demo {
- dimension "mode"
-
- }
- full {
- dimension "mode"
-
- }
-
- minApi24 {
- dimension "api"
- minSdkVersion 24
- versionCode 30000 + android.defaultConfig.versionCode
- versionNameSuffix "-minApi24"
-
- }
- minApi23 {
- dimension "api"
- minSdkVersion 23
- versionCode 20000 + android.defaultConfig.versionCode
- versionNameSuffix "-minApi23"
-
- }
- minApi21 {
- dimension "api"
- minSdkVersion 21
- versionCode 10000 + android.defaultConfig.versionCode
- versionNameSuffix "-minApi21"
-
- }
- }
-*/
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- kotlinOptions {
- jvmTarget = '1.8'
- }
-}
-
-dependencies {
- implementation 'androidx.preference:preference-ktx:1.1.0'
- implementation 'com.google.dagger:dagger:2.44.2'
- kapt 'com.google.dagger:dagger-compiler:2.44.2'
-}
-
-dependencyAnalysis {
- issues {
- ignoreKtx true
- }
-}
diff --git a/sandbox-sample/lib/src/main/AndroidManifest.xml b/sandbox-sample/lib/src/main/AndroidManifest.xml
deleted file mode 100644
index 58b4654d8..000000000
--- a/sandbox-sample/lib/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,2 +0,0 @@
-
-
diff --git a/sandbox-sample/lib/src/main/java/com/example/sandbox/Foo.java b/sandbox-sample/lib/src/main/java/com/example/sandbox/Foo.java
deleted file mode 100644
index 992a8eb46..000000000
--- a/sandbox-sample/lib/src/main/java/com/example/sandbox/Foo.java
+++ /dev/null
@@ -1,8 +0,0 @@
-package com.example.sandbox;
-
-import java.util.List;
-import java.nio.file.*;
-
-public class Foo {
-
-}
diff --git a/sandbox-sample/lib/src/main/java/com/example/sandbox/Lib.kt b/sandbox-sample/lib/src/main/java/com/example/sandbox/Lib.kt
deleted file mode 100644
index 06ef45bc8..000000000
--- a/sandbox-sample/lib/src/main/java/com/example/sandbox/Lib.kt
+++ /dev/null
@@ -1,9 +0,0 @@
-package com.example.sandbox
-
-import androidx.preference.PreferenceFragmentCompat
-
-class Lib {
-
-}
-
-abstract class BasePreferenceFragment : PreferenceFragmentCompat() {}
diff --git a/sandbox-sample/lib/src/main/java/com/example/sandbox/MyModule.java b/sandbox-sample/lib/src/main/java/com/example/sandbox/MyModule.java
deleted file mode 100644
index 0064c027b..000000000
--- a/sandbox-sample/lib/src/main/java/com/example/sandbox/MyModule.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package com.example.sandbox;
-
-import dagger.Module;
-import dagger.Provides;
-
-@Module
-public abstract class MyModule {
- @Provides public static String provideString() {
- return "magic";
- }
-}
diff --git a/sandbox-sample/lib/src/main/java/com/example/sandbox/toplevel.kt b/sandbox-sample/lib/src/main/java/com/example/sandbox/toplevel.kt
deleted file mode 100644
index ff15771de..000000000
--- a/sandbox-sample/lib/src/main/java/com/example/sandbox/toplevel.kt
+++ /dev/null
@@ -1,6 +0,0 @@
-package com.example.sandbox
-
-fun magic() = 42
-
-const val BEST_COLOR = "green"
-
diff --git a/sandbox-sample/lib/src/main/res/values/strings.xml b/sandbox-sample/lib/src/main/res/values/strings.xml
deleted file mode 100644
index db464e6da..000000000
--- a/sandbox-sample/lib/src/main/res/values/strings.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
- 42
-
diff --git a/sandbox-sample/mixed-kotlin/build.gradle b/sandbox-sample/mixed-kotlin/build.gradle
deleted file mode 100644
index 4366e7231..000000000
--- a/sandbox-sample/mixed-kotlin/build.gradle
+++ /dev/null
@@ -1,10 +0,0 @@
-//file:noinspection UnnecessaryQualifiedReference
-plugins {
- id 'org.jetbrains.kotlin.jvm'
-}
-
-tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
- kotlinOptions {
- jvmTarget = "1.8"
- }
-}
diff --git a/sandbox-sample/mixed-kotlin/src/main/java/mutual/aid/mixed/JavaClass.java b/sandbox-sample/mixed-kotlin/src/main/java/mutual/aid/mixed/JavaClass.java
deleted file mode 100644
index 66b619b16..000000000
--- a/sandbox-sample/mixed-kotlin/src/main/java/mutual/aid/mixed/JavaClass.java
+++ /dev/null
@@ -1,8 +0,0 @@
-package mutual.aid.mixed;
-
-public class JavaClass {
-
- public void usesKotlin() {
- new KotlinClass();
- }
-}
diff --git a/sandbox-sample/mixed-kotlin/src/main/java/mutual/aid/mixed/KotlinClass.kt b/sandbox-sample/mixed-kotlin/src/main/java/mutual/aid/mixed/KotlinClass.kt
deleted file mode 100644
index a27fd4486..000000000
--- a/sandbox-sample/mixed-kotlin/src/main/java/mutual/aid/mixed/KotlinClass.kt
+++ /dev/null
@@ -1,8 +0,0 @@
-package mutual.aid.mixed
-
-class KotlinClass {
-
- fun usesJava() {
- JavaClass()
- }
-}
diff --git a/sandbox-sample/sample-build-logic/build.gradle b/sandbox-sample/sample-build-logic/build.gradle
deleted file mode 100644
index f2a4a2147..000000000
--- a/sandbox-sample/sample-build-logic/build.gradle
+++ /dev/null
@@ -1,13 +0,0 @@
-plugins {
- id 'java-gradle-plugin'
- id 'org.jetbrains.kotlin.jvm'
-}
-
-gradlePlugin {
- plugins {
- examplePlugin {
- id = "com.example.example"
- implementationClass = "com.example.ExamplePlugin"
- }
- }
-}
diff --git a/sandbox-sample/sample-build-logic/settings.gradle b/sandbox-sample/sample-build-logic/settings.gradle
deleted file mode 100644
index c6464a673..000000000
--- a/sandbox-sample/sample-build-logic/settings.gradle
+++ /dev/null
@@ -1,19 +0,0 @@
-pluginManagement {
- repositories {
- gradlePluginPortal()
- mavenCentral()
- google()
- }
- plugins {
- id 'org.jetbrains.kotlin.jvm' version '1.9.0'
- }
-}
-
-rootProject.name = 'sample-build-logic'
-
-dependencyResolutionManagement {
- repositories {
- mavenCentral()
- google()
- }
-}
diff --git a/sandbox-sample/sample-build-logic/src/main/kotlin/com/example/ExamplePlugin.kt b/sandbox-sample/sample-build-logic/src/main/kotlin/com/example/ExamplePlugin.kt
deleted file mode 100644
index 7966eef41..000000000
--- a/sandbox-sample/sample-build-logic/src/main/kotlin/com/example/ExamplePlugin.kt
+++ /dev/null
@@ -1,36 +0,0 @@
-package com.example
-
-import org.gradle.api.DefaultTask
-import org.gradle.api.Plugin
-import org.gradle.api.Project
-import org.gradle.api.provider.Property
-import org.gradle.api.tasks.Input
-import org.gradle.api.tasks.TaskAction
-
-/**
- * ```
- * plugins {
- * id "com.example.example"
- * }
- * ```
- */
-@Suppress("unused")
-class ExamplePlugin : Plugin {
-
- override fun apply(target: Project): Unit = target.run {
- tasks.register("example", ExampleTask::class.java) {
- it.hasKapt.set(providers.provider { plugins.hasPlugin("kotlin-kapt") })
- }
- }
-
- abstract class ExampleTask : DefaultTask() {
-
- @get:Input
- abstract val hasKapt: Property
-
- @TaskAction fun action() {
- val hasKapt = hasKapt.get()
- logger.quiet("Kapt is applied: $hasKapt")
- }
- }
-}
\ No newline at end of file
diff --git a/sandbox-sample/settings.gradle b/sandbox-sample/settings.gradle
deleted file mode 100644
index 024845826..000000000
--- a/sandbox-sample/settings.gradle
+++ /dev/null
@@ -1,41 +0,0 @@
-pluginManagement {
- includeBuild 'sample-build-logic'
-
- resolutionStrategy {
- eachPlugin {
- if (requested.id.id == 'dagger.hilt.android.plugin') {
- useModule('com.google.dagger:hilt-android-gradle-plugin:2.41')
- }
- }
- }
- plugins {
- id 'org.jetbrains.kotlin.android' version '1.9.0'
- id 'org.jetbrains.kotlin.kapt' version '1.9.0'
- id 'dagger.hilt.android.plugin' version '2.41'
- }
-}
-
-plugins {
- id 'com.gradle.enterprise' version '3.10'
-}
-
-gradleEnterprise {
- buildScan {
- termsOfServiceUrl = 'https://gradle.com/terms-of-service'
- termsOfServiceAgree = 'yes'
- publishAlways()
- }
-}
-
-rootProject.name = 'Sandbox'
-include ':app'
-include ':javalib'
-include ':hilt'
-include ':lib'
-include ':lib-unused-kapt'
-include ':generics'
-include ':groovy'
-include ':mixed-kotlin'
-
-// Include DAGP for use by this sandbox project
-includeBuild '..'
diff --git a/src/functionalTest/groovy/com/autonomousapps/AbstractProject.groovy b/src/functionalTest/groovy/com/autonomousapps/AbstractProject.groovy
index 6b040ec87..5f65a7fe2 100644
--- a/src/functionalTest/groovy/com/autonomousapps/AbstractProject.groovy
+++ b/src/functionalTest/groovy/com/autonomousapps/AbstractProject.groovy
@@ -2,18 +2,18 @@ package com.autonomousapps
import com.autonomousapps.kit.AbstractGradleProject
import com.autonomousapps.kit.GradleProject
-import com.autonomousapps.kit.gradle.Plugin
+import com.autonomousapps.kit.gradle.dependencies.Plugins
@SuppressWarnings('GrMethodMayBeStatic')
abstract class AbstractProject extends AbstractGradleProject {
- protected final androidAppPlugin = [Plugin.androidApp]
- protected final androidLibPlugin = [Plugin.androidLib]
-
- protected GradleProject.Builder minimalAndroidProjectBuilder(String agpVersion) {
- return GradleProject.minimalAndroidProject(
- rootDir.toFile(),
- agpVersion
- )
+ @Override
+ protected GradleProject.Builder newGradleProjectBuilder() {
+ return super.newGradleProjectBuilder()
+ .withRootProject { r ->
+ r.withBuildScript { bs ->
+ bs.plugins = [Plugins.dependencyAnalysis, Plugins.kotlinNoApply]
+ }
+ }
}
}
diff --git a/src/functionalTest/groovy/com/autonomousapps/android/DependenciesSpec.groovy b/src/functionalTest/groovy/com/autonomousapps/android/DependenciesSpec.groovy
index b5b6428f7..cb5842442 100644
--- a/src/functionalTest/groovy/com/autonomousapps/android/DependenciesSpec.groovy
+++ b/src/functionalTest/groovy/com/autonomousapps/android/DependenciesSpec.groovy
@@ -5,6 +5,7 @@ import com.autonomousapps.android.projects.AndroidProjectWithKmpDependencies
import com.autonomousapps.android.projects.AndroidThreeTenProject
import com.autonomousapps.android.projects.FirebaseProject
import org.gradle.util.GradleVersion
+import org.intellij.lang.annotations.Language
import static com.autonomousapps.advice.truth.BuildHealthSubject.buildHealth
import static com.autonomousapps.utils.Runner.build
@@ -31,6 +32,7 @@ final class DependenciesSpec extends AbstractAndroidSpec {
def "jw threetenabp and threetenbp can be a dependency bundle (#gradleVersion AGP #agpVersion)"() {
given:
+ @Language("Groovy")
def additions = """\
dependencyAnalysis {
structure {
diff --git a/src/functionalTest/groovy/com/autonomousapps/android/projects/AbstractAndroidProject.groovy b/src/functionalTest/groovy/com/autonomousapps/android/projects/AbstractAndroidProject.groovy
index 92708eb33..03369b40e 100644
--- a/src/functionalTest/groovy/com/autonomousapps/android/projects/AbstractAndroidProject.groovy
+++ b/src/functionalTest/groovy/com/autonomousapps/android/projects/AbstractAndroidProject.groovy
@@ -2,8 +2,14 @@ package com.autonomousapps.android.projects
import com.autonomousapps.AbstractProject
import com.autonomousapps.internal.android.AgpVersion
-import com.autonomousapps.kit.gradle.android.AndroidBlock
+import com.autonomousapps.kit.GradleProject
import com.autonomousapps.kit.android.AndroidManifest
+import com.autonomousapps.kit.gradle.BuildscriptBlock
+import com.autonomousapps.kit.gradle.GradleProperties
+import com.autonomousapps.kit.gradle.android.AndroidBlock
+import com.autonomousapps.kit.gradle.dependencies.Plugins
+
+import static com.autonomousapps.kit.gradle.Dependency.implementation
abstract class AbstractAndroidProject extends AbstractProject {
@@ -11,6 +17,9 @@ abstract class AbstractAndroidProject extends AbstractProject {
private static final DEFAULT_APP_NAMESPACE = 'com.example'
private static final DEFAULT_LIB_NAMESPACE = 'com.example.lib'
+ protected final androidAppPlugin = [Plugins.androidApp]
+ protected final androidLibPlugin = [Plugins.androidLib]
+
private final AgpVersion version
AbstractAndroidProject(String agpVersion) {
@@ -46,4 +55,22 @@ abstract class AbstractAndroidProject extends AbstractProject {
private String defaultLibNamespace(String namespace) {
return version >= AGP_8_0 ? namespace : null
}
+
+ protected GradleProject.Builder minimalAndroidProjectBuilder(String agpVersion) {
+ return newGradleProjectBuilder()
+ .withRootProject { r ->
+ r.gradleProperties = GradleProperties.minimalAndroidProperties()
+ r.withBuildScript { bs ->
+ bs.buildscript = BuildscriptBlock.defaultAndroidBuildscriptBlock(agpVersion)
+ }
+ }
+ .withAndroidSubproject('app') { app ->
+ app.manifest = AndroidManifest.app(null, [])
+ app.withBuildScript { bs ->
+ bs.plugins = [Plugins.androidApp]
+ bs.android = AndroidBlock.defaultAndroidAppBlock(false)
+ bs.dependencies = [implementation("androidx.appcompat:appcompat:1.1.0")]
+ }
+ }
+ }
}
diff --git a/src/functionalTest/groovy/com/autonomousapps/android/projects/AbstractVariantProject.groovy b/src/functionalTest/groovy/com/autonomousapps/android/projects/AbstractVariantProject.groovy
index a6fc3bf82..6ad025ad0 100644
--- a/src/functionalTest/groovy/com/autonomousapps/android/projects/AbstractVariantProject.groovy
+++ b/src/functionalTest/groovy/com/autonomousapps/android/projects/AbstractVariantProject.groovy
@@ -1,15 +1,19 @@
//file:noinspection DuplicatedCode
package com.autonomousapps.android.projects
-import com.autonomousapps.kit.*
+import com.autonomousapps.kit.GradleProject
+import com.autonomousapps.kit.Source
+import com.autonomousapps.kit.SourceType
import com.autonomousapps.kit.android.AndroidLayout
import com.autonomousapps.kit.gradle.BuildscriptBlock
import com.autonomousapps.kit.gradle.Dependency
import com.autonomousapps.kit.gradle.GradleProperties
import com.autonomousapps.kit.gradle.Plugin
+import com.autonomousapps.kit.gradle.dependencies.Plugins
import com.autonomousapps.model.ProjectAdvice
import static com.autonomousapps.AdviceHelper.actualProjectAdvice
+import static com.autonomousapps.kit.gradle.dependencies.Dependencies.*
/**
* Basic structure is a normal Android project, with some variant-specific source. A dependency will
@@ -52,20 +56,20 @@ abstract class AbstractVariantProject extends AbstractAndroidProject {
}
protected final List plugins = [
- Plugin.androidApp,
- Plugin.kotlinAndroid
+ Plugins.androidApp,
+ Plugins.kotlinAndroid
]
protected final List dependencies = [
- Dependency.kotlinStdLib("implementation"),
- Dependency.appcompat("implementation"),
- Dependency.constraintLayout("implementation"),
+ kotlinStdLib("implementation"),
+ appcompat("implementation"),
+ constraintLayout("implementation"),
// This is used, but only in the debug variant and so should be `debugImplementation`
- Dependency.commonsCollections("implementation"),
+ commonsCollections("implementation"),
// This is correctly declared
- Dependency.commonsIO("debugImplementation"),
+ commonsIO("debugImplementation"),
// This isn't used and should be recommended for removal
- Dependency.commonsMath("debugImplementation")
+ commonsMath("debugImplementation")
]
protected final List