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 @@ - - - -