├── sample ├── app │ ├── .gitignore │ ├── release.keystore │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── values │ │ │ │ │ ├── strings.xml │ │ │ │ │ ├── colors.xml │ │ │ │ │ └── styles.xml │ │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ │ ├── ic_launcher.xml │ │ │ │ │ └── ic_launcher_round.xml │ │ │ │ ├── layout │ │ │ │ │ ├── fragment_sample.xml │ │ │ │ │ └── activity_main.xml │ │ │ │ ├── navigation │ │ │ │ │ └── nav_graph.xml │ │ │ │ ├── drawable-v24 │ │ │ │ │ └── ic_launcher_foreground.xml │ │ │ │ └── drawable │ │ │ │ │ └── ic_launcher_background.xml │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── star_zero │ │ │ │ │ └── gradle │ │ │ │ │ └── nav_proguard_generator │ │ │ │ │ └── sample │ │ │ │ │ ├── Sample.kt │ │ │ │ │ ├── Data.kt │ │ │ │ │ ├── MainActivity.kt │ │ │ │ │ └── SampleFragment.kt │ │ │ └── AndroidManifest.xml │ │ ├── test │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── star_zero │ │ │ │ └── gradle │ │ │ │ └── nav_proguard_generator │ │ │ │ └── sample │ │ │ │ └── ExampleUnitTest.kt │ │ └── androidTest │ │ │ └── java │ │ │ └── com │ │ │ └── star_zero │ │ │ └── gradle │ │ │ └── nav_proguard_generator │ │ │ └── sample │ │ │ └── ExampleInstrumentedTest.kt │ ├── nav-proguard-rule.pro │ ├── proguard-rules.pro │ └── build.gradle ├── lib │ ├── .gitignore │ ├── consumer-rules.pro │ ├── nav-proguard-rule.pro │ ├── src │ │ ├── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── star_zero │ │ │ │ │ └── gradle │ │ │ │ │ └── nav_proguard_generator │ │ │ │ │ └── sample │ │ │ │ │ └── lib │ │ │ │ │ ├── LibFragment.kt │ │ │ │ │ └── LibData.kt │ │ │ └── res │ │ │ │ └── navigation │ │ │ │ └── nav_graph_lib.xml │ │ ├── test │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── star_zero │ │ │ │ └── gradle │ │ │ │ └── nav_proguard_generator │ │ │ │ └── sample │ │ │ │ └── lib │ │ │ │ └── ExampleUnitTest.kt │ │ └── androidTest │ │ │ └── java │ │ │ └── com │ │ │ └── star_zero │ │ │ └── gradle │ │ │ └── nav_proguard_generator │ │ │ └── sample │ │ │ └── lib │ │ │ └── ExampleInstrumentedTest.kt │ ├── proguard-rules.pro │ └── build.gradle ├── feature │ ├── .gitignore │ ├── nav-proguard-rule.pro │ ├── src │ │ ├── main │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── star_zero │ │ │ │ │ └── gradle │ │ │ │ │ └── nav_proguard_generator │ │ │ │ │ └── sample │ │ │ │ │ └── feature │ │ │ │ │ ├── FeatureFragment.kt │ │ │ │ │ ├── FeatureData.kt │ │ │ │ │ └── FeatureActivity.kt │ │ │ ├── AndroidManifest.xml │ │ │ └── res │ │ │ │ ├── navigation │ │ │ │ └── nav_graph_feature.xml │ │ │ │ └── layout │ │ │ │ └── activity_feature.xml │ │ ├── test │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── star_zero │ │ │ │ └── gradle │ │ │ │ └── nav_proguard_generator │ │ │ │ └── sample │ │ │ │ └── feature │ │ │ │ └── ExampleUnitTest.kt │ │ └── androidTest │ │ │ └── java │ │ │ └── com │ │ │ └── star_zero │ │ │ └── gradle │ │ │ └── nav_proguard_generator │ │ │ └── sample │ │ │ └── feature │ │ │ └── ExampleInstrumentedTest.kt │ └── build.gradle ├── settings.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── .idea │ ├── codeStyles │ │ ├── codeStyleConfig.xml │ │ └── Project.xml │ ├── vcs.xml │ ├── misc.xml │ ├── runConfigurations.xml │ ├── gradle.xml │ └── jarRepositories.xml ├── .gitignore ├── build.gradle ├── gradle.properties ├── gradlew.bat └── gradlew ├── gradle.properties ├── .gitignore ├── nav-proguard-generator ├── .gitignore ├── build.gradle.kts └── src │ └── main │ └── kotlin │ └── com │ └── star_zero │ └── gradle │ └── nav_proguard_generator │ ├── GenerateNavProguardTask.kt │ └── NavProguardGeneratorPlugin.kt ├── settings.gradle.kts ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── local.properties ├── README.md ├── gradlew.bat ├── gradlew └── LICENSE /sample/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /sample/lib/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /sample/lib/consumer-rules.pro: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /sample/feature/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | kotlin.code.style=official -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | /.idea 3 | /.gradle 4 | -------------------------------------------------------------------------------- /nav-proguard-generator/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle.kts: -------------------------------------------------------------------------------- 1 | rootProject.name = "NavProguardGenerator" 2 | include("nav-proguard-generator") 3 | -------------------------------------------------------------------------------- /sample/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':feature' 2 | include ':lib' 3 | include ':app' 4 | rootProject.name = "sample" 5 | -------------------------------------------------------------------------------- /sample/app/release.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/NavProguardGenerator/HEAD/sample/app/release.keystore -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/NavProguardGenerator/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /sample/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/NavProguardGenerator/HEAD/sample/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /sample/lib/nav-proguard-rule.pro: -------------------------------------------------------------------------------- 1 | # Generated by NavProguardGenerator gradle plugin 2 | -keep class com.star_zero.gradle.nav_proguard_generator.sample.lib.LibData -------------------------------------------------------------------------------- /sample/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/NavProguardGenerator/HEAD/sample/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/NavProguardGenerator/HEAD/sample/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/NavProguardGenerator/HEAD/sample/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/NavProguardGenerator/HEAD/sample/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/feature/nav-proguard-rule.pro: -------------------------------------------------------------------------------- 1 | # Generated by NavProguardGenerator gradle plugin 2 | -keep class com.star_zero.gradle.nav_proguard_generator.sample.feature.FeatureData -------------------------------------------------------------------------------- /sample/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/NavProguardGenerator/HEAD/sample/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | sample 3 | Feature 4 | 5 | -------------------------------------------------------------------------------- /sample/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/NavProguardGenerator/HEAD/sample/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /sample/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/NavProguardGenerator/HEAD/sample/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /sample/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/NavProguardGenerator/HEAD/sample/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /sample/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/NavProguardGenerator/HEAD/sample/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /sample/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/STAR-ZERO/NavProguardGenerator/HEAD/sample/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /sample/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /sample/app/src/main/java/com/star_zero/gradle/nav_proguard_generator/sample/Sample.kt: -------------------------------------------------------------------------------- 1 | package com.star_zero.gradle.nav_proguard_generator.sample 2 | 3 | enum class Sample { 4 | ANDROID 5 | } 6 | -------------------------------------------------------------------------------- /sample/lib/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | / 5 | 6 | -------------------------------------------------------------------------------- /sample/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /sample/app/nav-proguard-rule.pro: -------------------------------------------------------------------------------- 1 | # Generated by NavProguardGenerator gradle plugin 2 | -keep class com.star_zero.gradle.nav_proguard_generator.sample.Sample 3 | -keep class com.star_zero.gradle.nav_proguard_generator.sample.Data -------------------------------------------------------------------------------- /sample/lib/src/main/java/com/star_zero/gradle/nav_proguard_generator/sample/lib/LibFragment.kt: -------------------------------------------------------------------------------- 1 | package com.star_zero.gradle.nav_proguard_generator.sample.lib 2 | 3 | import androidx.fragment.app.Fragment 4 | 5 | class LibFragment : Fragment() 6 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.1-bin.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /sample/feature/src/main/java/com/star_zero/gradle/nav_proguard_generator/sample/feature/FeatureFragment.kt: -------------------------------------------------------------------------------- 1 | package com.star_zero.gradle.nav_proguard_generator.sample.feature 2 | 3 | import androidx.fragment.app.Fragment 4 | 5 | class FeatureFragment : Fragment() 6 | -------------------------------------------------------------------------------- /sample/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #6200EE 4 | #3700B3 5 | #03DAC5 6 | 7 | -------------------------------------------------------------------------------- /sample/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/caches 5 | /.idea/libraries 6 | /.idea/modules.xml 7 | /.idea/workspace.xml 8 | /.idea/navEditor.xml 9 | /.idea/assetWizardSettings.xml 10 | .DS_Store 11 | /build 12 | /captures 13 | .externalNativeBuild 14 | .cxx 15 | -------------------------------------------------------------------------------- /sample/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sat Apr 25 15:39:40 JST 2020 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip 7 | -------------------------------------------------------------------------------- /sample/app/src/main/java/com/star_zero/gradle/nav_proguard_generator/sample/Data.kt: -------------------------------------------------------------------------------- 1 | package com.star_zero.gradle.nav_proguard_generator.sample 2 | 3 | import android.os.Parcelable 4 | import kotlinx.android.parcel.Parcelize 5 | 6 | @Parcelize 7 | data class Data( 8 | val name: String 9 | ) : Parcelable 10 | -------------------------------------------------------------------------------- /sample/lib/src/main/java/com/star_zero/gradle/nav_proguard_generator/sample/lib/LibData.kt: -------------------------------------------------------------------------------- 1 | package com.star_zero.gradle.nav_proguard_generator.sample.lib 2 | 3 | import android.os.Parcelable 4 | import kotlinx.android.parcel.Parcelize 5 | 6 | @Parcelize 7 | data class LibData( 8 | val id: Int 9 | ) : Parcelable 10 | -------------------------------------------------------------------------------- /sample/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /sample/feature/src/main/java/com/star_zero/gradle/nav_proguard_generator/sample/feature/FeatureData.kt: -------------------------------------------------------------------------------- 1 | package com.star_zero.gradle.nav_proguard_generator.sample.feature 2 | 3 | import android.os.Parcelable 4 | import kotlinx.android.parcel.Parcelize 5 | 6 | @Parcelize 7 | data class FeatureData( 8 | val id: Int 9 | ) : Parcelable 10 | -------------------------------------------------------------------------------- /sample/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /local.properties: -------------------------------------------------------------------------------- 1 | ## This file must *NOT* be checked into Version Control Systems, 2 | # as it contains information specific to your local configuration. 3 | # 4 | # Location of the SDK. This is only used by Gradle. 5 | # For customization when using a Version Control System, please read the 6 | # header note. 7 | #Sat Apr 25 15:38:30 JST 2020 8 | sdk.dir=/Users/kenji/Library/Android/sdk 9 | -------------------------------------------------------------------------------- /sample/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 9 | -------------------------------------------------------------------------------- /sample/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /sample/app/src/main/java/com/star_zero/gradle/nav_proguard_generator/sample/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.star_zero.gradle.nav_proguard_generator.sample 2 | 3 | import androidx.appcompat.app.AppCompatActivity 4 | import android.os.Bundle 5 | import android.util.Log 6 | 7 | class MainActivity : AppCompatActivity() { 8 | override fun onCreate(savedInstanceState: Bundle?) { 9 | super.onCreate(savedInstanceState) 10 | setContentView(R.layout.activity_main) 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /sample/feature/src/main/java/com/star_zero/gradle/nav_proguard_generator/sample/feature/FeatureActivity.kt: -------------------------------------------------------------------------------- 1 | package com.star_zero.gradle.nav_proguard_generator.sample.feature 2 | 3 | import android.os.Bundle 4 | import androidx.appcompat.app.AppCompatActivity 5 | 6 | class FeatureActivity : AppCompatActivity() { 7 | 8 | override fun onCreate(savedInstanceState: Bundle?) { 9 | super.onCreate(savedInstanceState) 10 | setContentView(R.layout.activity_feature) 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /sample/app/src/test/java/com/star_zero/gradle/nav_proguard_generator/sample/ExampleUnitTest.kt: -------------------------------------------------------------------------------- 1 | package com.star_zero.gradle.nav_proguard_generator.sample 2 | 3 | import org.junit.Test 4 | 5 | import org.junit.Assert.* 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * See [testing documentation](http://d.android.com/tools/testing). 11 | */ 12 | class ExampleUnitTest { 13 | @Test 14 | fun addition_isCorrect() { 15 | assertEquals(4, 2 + 2) 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /sample/lib/src/test/java/com/star_zero/gradle/nav_proguard_generator/sample/lib/ExampleUnitTest.kt: -------------------------------------------------------------------------------- 1 | package com.star_zero.gradle.nav_proguard_generator.sample.lib 2 | 3 | import org.junit.Test 4 | 5 | import org.junit.Assert.* 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * See [testing documentation](http://d.android.com/tools/testing). 11 | */ 12 | class ExampleUnitTest { 13 | @Test 14 | fun addition_isCorrect() { 15 | assertEquals(4, 2 + 2) 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /sample/feature/src/test/java/com/star_zero/gradle/nav_proguard_generator/sample/feature/ExampleUnitTest.kt: -------------------------------------------------------------------------------- 1 | package com.star_zero.gradle.nav_proguard_generator.sample.feature 2 | 3 | import org.junit.Test 4 | 5 | import org.junit.Assert.* 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * See [testing documentation](http://d.android.com/tools/testing). 11 | */ 12 | class ExampleUnitTest { 13 | @Test 14 | fun addition_isCorrect() { 15 | assertEquals(4, 2 + 2) 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /sample/feature/src/androidTest/java/com/star_zero/gradle/nav_proguard_generator/sample/feature/ExampleInstrumentedTest.kt: -------------------------------------------------------------------------------- 1 | package com.star_zero.gradle.nav_proguard_generator.sample.feature 2 | 3 | import androidx.test.ext.junit.runners.AndroidJUnit4 4 | import org.junit.Test 5 | import org.junit.runner.RunWith 6 | 7 | /** 8 | * Instrumented test, which will execute on an Android device. 9 | * 10 | * See [testing documentation](http://d.android.com/tools/testing). 11 | */ 12 | @RunWith(AndroidJUnit4::class) 13 | class ExampleInstrumentedTest { 14 | @Test 15 | fun useAppContext() { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /sample/.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /sample/feature/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /sample/lib/src/main/res/navigation/nav_graph_lib.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 11 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /sample/feature/src/main/res/navigation/nav_graph_feature.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 11 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /sample/app/src/main/res/layout/fragment_sample.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 |