diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 7e0f034..ea3af86 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -17,7 +17,6 @@ - diff --git a/androidstories-app/build.gradle b/androidstories-app/build.gradle index f78d09d..ef3fa26 100644 --- a/androidstories-app/build.gradle +++ b/androidstories-app/build.gradle @@ -4,11 +4,11 @@ plugins { } android { - compileSdk 31 + compileSdk 33 defaultConfig { minSdk 21 - targetSdk 31 + targetSdk 33 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" consumerProguardFiles "consumer-rules.pro" @@ -30,22 +30,23 @@ android { buildFeatures { viewBinding true } + namespace 'com.igenius.androidstories.app' } dependencies { - def lifecycle_version = '2.4.0' + def lifecycle_version = '2.5.1' - implementation 'androidx.core:core-ktx:1.7.0' - implementation 'androidx.appcompat:appcompat:1.4.0' - implementation 'com.google.android.material:material:1.4.0' - implementation 'androidx.constraintlayout:constraintlayout:2.1.2' - implementation 'androidx.fragment:fragment-ktx:1.4.0' + implementation 'androidx.core:core-ktx:1.9.0' + implementation 'androidx.appcompat:appcompat:1.5.1' + implementation 'com.google.android.material:material:1.7.0' + implementation 'androidx.constraintlayout:constraintlayout:2.1.4' + implementation 'androidx.fragment:fragment-ktx:1.5.5' implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version" implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version" implementation project(path: ':androidstories') testImplementation 'junit:junit:4.13.2' - androidTestImplementation 'androidx.test.ext:junit:1.1.3' - androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' + androidTestImplementation 'androidx.test.ext:junit:1.1.4' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.0' } \ No newline at end of file diff --git a/androidstories-app/src/main/AndroidManifest.xml b/androidstories-app/src/main/AndroidManifest.xml index 0924a01..6aa442a 100644 --- a/androidstories-app/src/main/AndroidManifest.xml +++ b/androidstories-app/src/main/AndroidManifest.xml @@ -1,6 +1,5 @@ - + add(variant).isCheckable = true } @@ -134,7 +134,7 @@ class StoryDetailsFragment : Fragment() { private fun selectVariant(variant: String) { binding?.toolbar?.menu?.findItem(R.id.variants_item)?.run { title = variant - subMenu.forEach { + subMenu?.forEach { it.isChecked = it.title == variant } } diff --git a/androidstories-processor/build.gradle b/androidstories-processor/build.gradle index 56eab42..ef54c64 100644 --- a/androidstories-processor/build.gradle +++ b/androidstories-processor/build.gradle @@ -12,7 +12,7 @@ java { dependencies { implementation project(':androidstories') - implementation 'com.squareup:kotlinpoet:1.10.1' + implementation 'com.squareup:kotlinpoet:1.10.2' implementation 'com.google.auto.service:auto-service:1.0.1' kapt "com.google.auto.service:auto-service:1.0.1" } \ No newline at end of file diff --git a/build.gradle b/build.gradle index 43f6a41..d1dcc18 100644 --- a/build.gradle +++ b/build.gradle @@ -5,8 +5,8 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.0.3' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31" + classpath 'com.android.tools.build:gradle:7.3.1' + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/example-app/build.gradle b/example-app/build.gradle index 9d363e1..21e61e7 100644 --- a/example-app/build.gradle +++ b/example-app/build.gradle @@ -5,12 +5,12 @@ plugins { } android { - compileSdk 31 + compileSdk 33 defaultConfig { applicationId "com.igenius.androidstories.exampleapp" minSdk 21 - targetSdk 31 + targetSdk 33 versionCode 1 versionName "1.0" @@ -33,18 +33,19 @@ android { buildFeatures { viewBinding true } + namespace 'com.igenius.androidstories.exampleapp' } dependencies { - implementation 'androidx.core:core-ktx:1.7.0' - implementation 'androidx.appcompat:appcompat:1.3.1' - implementation 'com.google.android.material:material:1.4.0' - implementation 'androidx.constraintlayout:constraintlayout:2.1.1' - implementation 'androidx.fragment:fragment-ktx:1.3.6' + implementation 'androidx.core:core-ktx:1.9.0' + implementation 'androidx.appcompat:appcompat:1.5.1' + implementation 'com.google.android.material:material:1.7.0' + implementation 'androidx.constraintlayout:constraintlayout:2.1.4' + implementation 'androidx.fragment:fragment-ktx:1.5.5' testImplementation 'junit:junit:4.13.2' - androidTestImplementation 'androidx.test.ext:junit:1.1.3' - androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' + androidTestImplementation 'androidx.test.ext:junit:1.1.4' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.0' //Android stories implementation project(':androidstories-app') diff --git a/example-app/src/main/AndroidManifest.xml b/example-app/src/main/AndroidManifest.xml index a8655f3..08a1da4 100644 --- a/example-app/src/main/AndroidManifest.xml +++ b/example-app/src/main/AndroidManifest.xml @@ -1,6 +1,5 @@ - + () { variants = ["Red", "Blue"], ) @AsyncVariant(AsyncExampleFragmentProvider::class) -val async_layout_story = AsyncLayoutStory(R.layout.button_story) { variant, data -> +val async_layout_story = AsyncLayoutStory(R.layout.button_story) { _, data -> findViewById