diff --git a/example/build.gradle.kts b/example/build.gradle.kts
index 7cf943c..630db28 100644
--- a/example/build.gradle.kts
+++ b/example/build.gradle.kts
@@ -1,8 +1,42 @@
plugins {
- java
+ id("com.android.application")
id("com.axzae.unmeta")
}
+android {
+ compileSdk = libs.versions.compileSdkVersion.get().toInt()
+ defaultConfig {
+ namespace = "com.axzae.unmeta.example"
+ applicationId = "com.axzae.unmeta.example"
+ minSdk = libs.versions.minSdkVersion.get().toInt()
+ targetSdk = libs.versions.targetSdkVersion.get().toInt()
+ versionCode = 1
+ versionName = "1.0"
+ testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
+ }
+ buildTypes {
+ getByName("release") {
+ isMinifyEnabled = false
+ isDebuggable = false
+ }
+ getByName("debug") {
+ isDebuggable = true
+ applicationIdSuffix = ".debug"
+ versionNameSuffix = "-debug"
+ }
+ }
+ compileOptions {
+ sourceCompatibility = JavaVersion.VERSION_11
+ targetCompatibility = JavaVersion.VERSION_11
+ }
+}
+
+dependencies {
+ implementation(libs.appcompat)
+ implementation(libs.kotlinStdlib)
+}
+
unmeta {
isEnabled.set(true)
+ verbose.set(true)
}
diff --git a/example/src/debug/res/values/strings.xml b/example/src/debug/res/values/strings.xml
new file mode 100644
index 0000000..1cc89b2
--- /dev/null
+++ b/example/src/debug/res/values/strings.xml
@@ -0,0 +1,4 @@
+
+ Unmeta Plugin Debug
+ Hello from Debug
+
diff --git a/example/src/main/AndroidManifest.xml b/example/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..bea661d
--- /dev/null
+++ b/example/src/main/AndroidManifest.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/example/src/main/java/com/axzae/unmeta/example/MainActivity.kt b/example/src/main/java/com/axzae/unmeta/example/MainActivity.kt
new file mode 100644
index 0000000..1a67949
--- /dev/null
+++ b/example/src/main/java/com/axzae/unmeta/example/MainActivity.kt
@@ -0,0 +1,12 @@
+package com.axzae.unmeta.example
+
+import android.os.Bundle
+import androidx.appcompat.app.AppCompatActivity
+
+class MainActivity : AppCompatActivity() {
+
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+ setContentView(R.layout.activity_main)
+ }
+}
diff --git a/example/src/main/res/drawable-v24/ic_launcher_foreground.xml b/example/src/main/res/drawable-v24/ic_launcher_foreground.xml
new file mode 100644
index 0000000..2b068d1
--- /dev/null
+++ b/example/src/main/res/drawable-v24/ic_launcher_foreground.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/example/src/main/res/drawable/ic_launcher_background.xml b/example/src/main/res/drawable/ic_launcher_background.xml
new file mode 100644
index 0000000..07d5da9
--- /dev/null
+++ b/example/src/main/res/drawable/ic_launcher_background.xml
@@ -0,0 +1,170 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/example/src/main/res/layout/activity_main.xml b/example/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..78cea7e
--- /dev/null
+++ b/example/src/main/res/layout/activity_main.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/example/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/example/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 0000000..eca70cf
--- /dev/null
+++ b/example/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/example/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/example/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
new file mode 100644
index 0000000..eca70cf
--- /dev/null
+++ b/example/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/example/src/main/res/mipmap-hdpi/ic_launcher.png b/example/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..a571e60
Binary files /dev/null and b/example/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/example/src/main/res/mipmap-hdpi/ic_launcher_round.png b/example/src/main/res/mipmap-hdpi/ic_launcher_round.png
new file mode 100644
index 0000000..61da551
Binary files /dev/null and b/example/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/example/src/main/res/mipmap-mdpi/ic_launcher.png b/example/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..c41dd28
Binary files /dev/null and b/example/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/example/src/main/res/mipmap-mdpi/ic_launcher_round.png b/example/src/main/res/mipmap-mdpi/ic_launcher_round.png
new file mode 100644
index 0000000..db5080a
Binary files /dev/null and b/example/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/example/src/main/res/mipmap-xhdpi/ic_launcher.png b/example/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..6dba46d
Binary files /dev/null and b/example/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/example/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/example/src/main/res/mipmap-xhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..da31a87
Binary files /dev/null and b/example/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/example/src/main/res/mipmap-xxhdpi/ic_launcher.png b/example/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..15ac681
Binary files /dev/null and b/example/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/example/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/example/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..b216f2d
Binary files /dev/null and b/example/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/example/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/example/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..f25a419
Binary files /dev/null and b/example/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/example/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/example/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..e96783c
Binary files /dev/null and b/example/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/example/src/main/res/values/colors.xml b/example/src/main/res/values/colors.xml
new file mode 100644
index 0000000..030098f
--- /dev/null
+++ b/example/src/main/res/values/colors.xml
@@ -0,0 +1,6 @@
+
+
+ #6200EE
+ #3700B3
+ #03DAC5
+
diff --git a/example/src/main/res/values/strings.xml b/example/src/main/res/values/strings.xml
new file mode 100644
index 0000000..6879f9d
--- /dev/null
+++ b/example/src/main/res/values/strings.xml
@@ -0,0 +1,4 @@
+
+ Unmeta Plugin Main
+ Hello from Main
+
diff --git a/example/src/main/res/values/styles.xml b/example/src/main/res/values/styles.xml
new file mode 100644
index 0000000..5885930
--- /dev/null
+++ b/example/src/main/res/values/styles.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
diff --git a/example/src/release/res/values/strings.xml b/example/src/release/res/values/strings.xml
new file mode 100644
index 0000000..294d07e
--- /dev/null
+++ b/example/src/release/res/values/strings.xml
@@ -0,0 +1,4 @@
+
+ Unmeta Plugin Release
+ Hello from Release
+
diff --git a/gradle.properties b/gradle.properties
index 9259715..02b717a 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -3,3 +3,8 @@ org.gradle.parallel=true
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official
+
+# Android
+android.useAndroidX=true
+android.enableJetifier=false
+android.nonTransitiveRClass=true
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
index 320bce5..d9722ba 100644
--- a/gradle/libs.versions.toml
+++ b/gradle/libs.versions.toml
@@ -1,4 +1,8 @@
[versions]
+compileSdkVersion = "32"
+targetSdkVersion = "32"
+minSdkVersion = "21"
+
detekt = "1.22.0"
kotlin = "1.8.21"
ktlintGradle = "11.3.2"
@@ -18,3 +22,5 @@ junit = "junit:junit:4.13.2"
truth = "com.google.truth:truth:1.1.3"
asm = "org.ow2.asm:asm:9.4"
androidGradlePlugin = { group = "com.android.tools.build", name = "gradle", version.ref = "androidGradlePlugin" }
+appcompat = "androidx.appcompat:appcompat:1.3.1"
+kotlinStdlib = "org.jetbrains.kotlin:kotlin-stdlib:1.7.20"
diff --git a/settings.gradle.kts b/settings.gradle.kts
index fecad8a..8fecccd 100644
--- a/settings.gradle.kts
+++ b/settings.gradle.kts
@@ -15,6 +15,7 @@ dependencyResolutionManagement {
plugins {
`gradle-enterprise`
+ id("com.android.application") version "7.3.0" apply false
}
gradleEnterprise {