From 29e31e5c56802acafecd56a815bcbcac9de99c04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Fri, 19 Jul 2024 14:32:25 +0200 Subject: [PATCH 1/8] Send the variant as an argument to second fragment --- .../src/main/java/com/example/unleash/FirstFragment.kt | 6 ++++-- .../src/main/java/com/example/unleash/MainActivity.kt | 9 --------- .../src/main/java/com/example/unleash/SecondFragment.kt | 6 +++++- .../main/java/com/example/unleash/UnleashApplication.kt | 4 ++-- .../android/app/src/main/res/layout/fragment_second.xml | 2 ++ .../android/app/src/main/res/navigation/nav_graph.xml | 4 ++++ 6 files changed, 17 insertions(+), 14 deletions(-) diff --git a/samples/android/app/src/main/java/com/example/unleash/FirstFragment.kt b/samples/android/app/src/main/java/com/example/unleash/FirstFragment.kt index ae3f9f2..988eac4 100644 --- a/samples/android/app/src/main/java/com/example/unleash/FirstFragment.kt +++ b/samples/android/app/src/main/java/com/example/unleash/FirstFragment.kt @@ -39,8 +39,10 @@ class FirstFragment : Fragment() { super.onViewCreated(view, savedInstanceState) binding.buttonFirst.setOnClickListener { - if (unleashClient.isEnabled("unleash_first_fragment_demo")) { - findNavController().navigate(R.id.action_FirstFragment_to_SecondFragment) + if (unleashClient.isEnabled("android-sdk-first-fragment-demo")) { + val bundle = Bundle() + bundle.putString("argName", unleashClient.getVariant("android-sdk-first-fragment-demo").name) + findNavController().navigate(R.id.action_FirstFragment_to_SecondFragment, bundle) } } } diff --git a/samples/android/app/src/main/java/com/example/unleash/MainActivity.kt b/samples/android/app/src/main/java/com/example/unleash/MainActivity.kt index 4a06176..ca8f5f0 100644 --- a/samples/android/app/src/main/java/com/example/unleash/MainActivity.kt +++ b/samples/android/app/src/main/java/com/example/unleash/MainActivity.kt @@ -5,7 +5,6 @@ import android.content.Context import android.os.Bundle import android.view.Menu import android.view.MenuItem -import android.widget.TextView import androidx.appcompat.app.AppCompatActivity import androidx.navigation.findNavController import androidx.navigation.ui.AppBarConfiguration @@ -15,14 +14,6 @@ import com.example.unleash.databinding.ActivityMainBinding import com.google.android.material.snackbar.Snackbar import dagger.hilt.android.AndroidEntryPoint import io.getunleash.UnleashClient -import io.getunleash.UnleashConfig -import io.getunleash.UnleashContext -import io.getunleash.cache.InMemoryToggleCache -import io.getunleash.polling.PollingModes -import java.time.Duration -import java.time.temporal.ChronoUnit -import java.time.temporal.TemporalUnit -import kotlin.random.Random @AndroidEntryPoint class MainActivity : AppCompatActivity() { diff --git a/samples/android/app/src/main/java/com/example/unleash/SecondFragment.kt b/samples/android/app/src/main/java/com/example/unleash/SecondFragment.kt index e158f07..f17c6af 100644 --- a/samples/android/app/src/main/java/com/example/unleash/SecondFragment.kt +++ b/samples/android/app/src/main/java/com/example/unleash/SecondFragment.kt @@ -5,6 +5,7 @@ import androidx.fragment.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup +import android.widget.TextView import androidx.navigation.fragment.findNavController import com.example.unleash.databinding.FragmentSecondBinding import dagger.hilt.android.AndroidEntryPoint @@ -39,8 +40,11 @@ class SecondFragment : Fragment() { override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) + val args = arguments?.getString("argName") ?: "No Args" + view.findViewById(R.id.textview_second).text = getString(R.string.hello_second_fragment, args) + binding.buttonSecond.setOnClickListener { - if (unleashClient.isEnabled("unleash_second_fragment")) { + if (unleashClient.isEnabled("android-sdk-second-fragment-demo")) { findNavController().navigate(R.id.action_SecondFragment_to_FirstFragment) } } diff --git a/samples/android/app/src/main/java/com/example/unleash/UnleashApplication.kt b/samples/android/app/src/main/java/com/example/unleash/UnleashApplication.kt index d3ddfa5..ad07bfb 100644 --- a/samples/android/app/src/main/java/com/example/unleash/UnleashApplication.kt +++ b/samples/android/app/src/main/java/com/example/unleash/UnleashApplication.kt @@ -35,8 +35,8 @@ internal object UnleashClientModule { .appName("unleash-android") .instanceId("unleash-android-${Random.nextLong()}") .enableMetrics() - .clientKey("get a frontend key from instance you connect to") - .proxyUrl("http:///UNLEASHURL:4242/api/frontend") + .clientKey("default:development.5d6b7aaeb6a9165f28e91290d13ba0ed39f56f6d9e6952c642fed7cc") + .proxyUrl("https://eu.app.unleash-hosted.com/demo/api/frontend") .pollingMode( PollingModes.autoPoll( autoPollIntervalSeconds = 15 diff --git a/samples/android/app/src/main/res/layout/fragment_second.xml b/samples/android/app/src/main/res/layout/fragment_second.xml index bd90524..16a9ab6 100644 --- a/samples/android/app/src/main/res/layout/fragment_second.xml +++ b/samples/android/app/src/main/res/layout/fragment_second.xml @@ -6,10 +6,12 @@ android:layout_height="match_parent" tools:context=".SecondFragment"> + + + From e9c5f108798f1a67c758094b05ede15b1037eff7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Fri, 19 Jul 2024 14:36:52 +0200 Subject: [PATCH 2/8] Use payload as string or the name --- .../app/src/main/java/com/example/unleash/FirstFragment.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/android/app/src/main/java/com/example/unleash/FirstFragment.kt b/samples/android/app/src/main/java/com/example/unleash/FirstFragment.kt index 988eac4..edf65b8 100644 --- a/samples/android/app/src/main/java/com/example/unleash/FirstFragment.kt +++ b/samples/android/app/src/main/java/com/example/unleash/FirstFragment.kt @@ -41,7 +41,8 @@ class FirstFragment : Fragment() { binding.buttonFirst.setOnClickListener { if (unleashClient.isEnabled("android-sdk-first-fragment-demo")) { val bundle = Bundle() - bundle.putString("argName", unleashClient.getVariant("android-sdk-first-fragment-demo").name) + val variant = unleashClient.getVariant("android-sdk-first-fragment-demo") + bundle.putString("argName", variant.payload?.getValueAsString() ?: variant.name) findNavController().navigate(R.id.action_FirstFragment_to_SecondFragment, bundle) } } From 65356eee870a3cd98d266d7eb822278bff7a2488 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Fri, 19 Jul 2024 16:00:57 +0200 Subject: [PATCH 3/8] feat: upgrade to the new SDK while also upgrading kotlin --- samples/android/app/build.gradle | 12 +++-- .../android/app/src/main/AndroidManifest.xml | 1 + .../java/com/example/unleash/FirstFragment.kt | 8 +-- .../java/com/example/unleash/MainActivity.kt | 4 +- .../com/example/unleash/SecondFragment.kt | 6 +-- .../com/example/unleash/UnleashApplication.kt | 50 ++++++++----------- .../src/main/res/layout/fragment_first.xml | 1 + .../src/main/res/layout/fragment_second.xml | 1 + samples/android/build.gradle | 6 +-- .../gradle/wrapper/gradle-wrapper.properties | 2 +- 10 files changed, 46 insertions(+), 45 deletions(-) diff --git a/samples/android/app/build.gradle b/samples/android/app/build.gradle index 8d87930..ec6348c 100644 --- a/samples/android/app/build.gradle +++ b/samples/android/app/build.gradle @@ -7,13 +7,13 @@ plugins { } android { - compileSdkVersion 30 + compileSdkVersion 34 buildToolsVersion "30.0.3" defaultConfig { applicationId "com.example.unleash" minSdkVersion 21 - targetSdkVersion 30 + targetSdkVersion 31 versionCode 1 versionName "1.0" @@ -29,6 +29,11 @@ android { compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 + java { + toolchain { + languageVersion.set(JavaLanguageVersion.of(8)) + } + } } kotlinOptions { jvmTarget = '1.8' @@ -51,7 +56,8 @@ dependencies { implementation 'androidx.constraintlayout:constraintlayout:2.1.0' implementation 'androidx.navigation:navigation-fragment-ktx:2.3.5' implementation 'androidx.navigation:navigation-ui-ktx:2.3.5' - implementation 'io.getunleash:unleash-android-proxy-sdk:0.5.0' + //implementation 'io.getunleash:unleash-android-proxy-sdk:0.5.0' + implementation "io.getunleash:unleash-android:0.1.2-beta.1" testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' diff --git a/samples/android/app/src/main/AndroidManifest.xml b/samples/android/app/src/main/AndroidManifest.xml index e2bb650..56ccc86 100644 --- a/samples/android/app/src/main/AndroidManifest.xml +++ b/samples/android/app/src/main/AndroidManifest.xml @@ -12,6 +12,7 @@ android:usesCleartextTraffic="true"> diff --git a/samples/android/app/src/main/java/com/example/unleash/FirstFragment.kt b/samples/android/app/src/main/java/com/example/unleash/FirstFragment.kt index edf65b8..08ce47f 100644 --- a/samples/android/app/src/main/java/com/example/unleash/FirstFragment.kt +++ b/samples/android/app/src/main/java/com/example/unleash/FirstFragment.kt @@ -1,14 +1,14 @@ package com.example.unleash import android.os.Bundle -import androidx.fragment.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup +import androidx.fragment.app.Fragment import androidx.navigation.fragment.findNavController import com.example.unleash.databinding.FragmentFirstBinding import dagger.hilt.android.AndroidEntryPoint -import io.getunleash.UnleashClient +import io.getunleash.android.Unleash import javax.inject.Inject /** @@ -17,7 +17,7 @@ import javax.inject.Inject @AndroidEntryPoint class FirstFragment : Fragment() { - @Inject lateinit var unleashClient: UnleashClient + @Inject lateinit var unleashClient: Unleash private var _binding: FragmentFirstBinding? = null @@ -42,7 +42,7 @@ class FirstFragment : Fragment() { if (unleashClient.isEnabled("android-sdk-first-fragment-demo")) { val bundle = Bundle() val variant = unleashClient.getVariant("android-sdk-first-fragment-demo") - bundle.putString("argName", variant.payload?.getValueAsString() ?: variant.name) + bundle.putString("argName", variant.payload?.value ?: variant.name) findNavController().navigate(R.id.action_FirstFragment_to_SecondFragment, bundle) } } diff --git a/samples/android/app/src/main/java/com/example/unleash/MainActivity.kt b/samples/android/app/src/main/java/com/example/unleash/MainActivity.kt index ca8f5f0..d302bfc 100644 --- a/samples/android/app/src/main/java/com/example/unleash/MainActivity.kt +++ b/samples/android/app/src/main/java/com/example/unleash/MainActivity.kt @@ -13,11 +13,11 @@ import androidx.navigation.ui.setupActionBarWithNavController import com.example.unleash.databinding.ActivityMainBinding import com.google.android.material.snackbar.Snackbar import dagger.hilt.android.AndroidEntryPoint -import io.getunleash.UnleashClient +import io.getunleash.android.Unleash @AndroidEntryPoint class MainActivity : AppCompatActivity() { - private lateinit var unleashClient: UnleashClient + private lateinit var unleashClient: Unleash private lateinit var appBarConfiguration: AppBarConfiguration private lateinit var binding: ActivityMainBinding diff --git a/samples/android/app/src/main/java/com/example/unleash/SecondFragment.kt b/samples/android/app/src/main/java/com/example/unleash/SecondFragment.kt index f17c6af..452d38b 100644 --- a/samples/android/app/src/main/java/com/example/unleash/SecondFragment.kt +++ b/samples/android/app/src/main/java/com/example/unleash/SecondFragment.kt @@ -1,15 +1,15 @@ package com.example.unleash import android.os.Bundle -import androidx.fragment.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.TextView +import androidx.fragment.app.Fragment import androidx.navigation.fragment.findNavController import com.example.unleash.databinding.FragmentSecondBinding import dagger.hilt.android.AndroidEntryPoint -import io.getunleash.UnleashClient +import io.getunleash.android.Unleash import javax.inject.Inject /** @@ -19,7 +19,7 @@ import javax.inject.Inject class SecondFragment : Fragment() { @Inject - lateinit var unleashClient: UnleashClient + lateinit var unleashClient: Unleash private var _binding: FragmentSecondBinding? = null diff --git a/samples/android/app/src/main/java/com/example/unleash/UnleashApplication.kt b/samples/android/app/src/main/java/com/example/unleash/UnleashApplication.kt index ad07bfb..4c760fa 100644 --- a/samples/android/app/src/main/java/com/example/unleash/UnleashApplication.kt +++ b/samples/android/app/src/main/java/com/example/unleash/UnleashApplication.kt @@ -1,16 +1,17 @@ package com.example.unleash import android.app.Application +import android.content.Context import dagger.Module import dagger.Provides import dagger.hilt.InstallIn import dagger.hilt.android.HiltAndroidApp +import dagger.hilt.android.qualifiers.ApplicationContext import dagger.hilt.components.SingletonComponent -import io.getunleash.UnleashClient -import io.getunleash.UnleashConfig -import io.getunleash.UnleashContext -import io.getunleash.cache.InMemoryToggleCache -import io.getunleash.polling.PollingModes +import io.getunleash.android.DefaultUnleash +import io.getunleash.android.Unleash +import io.getunleash.android.UnleashConfig +import io.getunleash.android.data.UnleashContext import javax.inject.Singleton import kotlin.random.Random @@ -19,8 +20,6 @@ import kotlin.random.Random @InstallIn(SingletonComponent::class) internal object UnleashClientModule { val unleashContext = UnleashContext.newBuilder() - .appName("unleash-android") - .instanceId("main-activity-unleash-demo-${Random.nextLong()}") .userId("unleash_demo_user") .sessionId(Random.nextLong().toString()) .build() @@ -28,28 +27,21 @@ internal object UnleashClientModule { @Provides @Singleton - fun unleashClient(): UnleashClient { - return UnleashClient.newBuilder() - .unleashConfig( - UnleashConfig.newBuilder() - .appName("unleash-android") - .instanceId("unleash-android-${Random.nextLong()}") - .enableMetrics() - .clientKey("default:development.5d6b7aaeb6a9165f28e91290d13ba0ed39f56f6d9e6952c642fed7cc") - .proxyUrl("https://eu.app.unleash-hosted.com/demo/api/frontend") - .pollingMode( - PollingModes.autoPoll( - autoPollIntervalSeconds = 15 - ) { - - } - ) - .metricsInterval(5000) - .build() - ) - .cache(InMemoryToggleCache()) - .unleashContext(unleashContext) - .build() + fun unleashClient( + @ApplicationContext context: Context + ): Unleash { + val unleash = DefaultUnleash( + androidContext = context, + unleashConfig = UnleashConfig.newBuilder("unleash-android") + .clientKey("default:development.5d6b7aaeb6a9165f28e91290d13ba0ed39f56f6d9e6952c642fed7cc") + .proxyUrl("https://eu.app.unleash-hosted.com/demo/api/frontend") + .pollingStrategy.interval(15000) + .metricsStrategy.interval(5000) + .build(), + unleashContext = unleashContext + ) + unleash.start() + return unleash } } diff --git a/samples/android/app/src/main/res/layout/fragment_first.xml b/samples/android/app/src/main/res/layout/fragment_first.xml index 303eed3..0d3d4c3 100644 --- a/samples/android/app/src/main/res/layout/fragment_first.xml +++ b/samples/android/app/src/main/res/layout/fragment_first.xml @@ -12,6 +12,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/hello_first_fragment" + android:textSize="24sp" app:layout_constraintBottom_toTopOf="@id/button_first" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" diff --git a/samples/android/app/src/main/res/layout/fragment_second.xml b/samples/android/app/src/main/res/layout/fragment_second.xml index 16a9ab6..b03122b 100644 --- a/samples/android/app/src/main/res/layout/fragment_second.xml +++ b/samples/android/app/src/main/res/layout/fragment_second.xml @@ -12,6 +12,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/hello_second_fragment" + android:textSize="24sp" app:layout_constraintBottom_toTopOf="@id/button_second" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" diff --git a/samples/android/build.gradle b/samples/android/build.gradle index 67cad28..dccd26f 100644 --- a/samples/android/build.gradle +++ b/samples/android/build.gradle @@ -1,13 +1,13 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { - ext.kotlin_version = '1.6.21' - ext.hilt_version = '2.40.1' + ext.kotlin_version = '1.8.20' + ext.hilt_version = '2.44' repositories { google() mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:8.0.2' + classpath 'com.android.tools.build:gradle:8.5.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version" diff --git a/samples/android/gradle/wrapper/gradle-wrapper.properties b/samples/android/gradle/wrapper/gradle-wrapper.properties index 6dcc2ae..a9e70af 100644 --- a/samples/android/gradle/wrapper/gradle-wrapper.properties +++ b/samples/android/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ #Tue May 25 09:19:20 CEST 2021 distributionBase=GRADLE_USER_HOME -distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip distributionPath=wrapper/dists zipStorePath=wrapper/dists zipStoreBase=GRADLE_USER_HOME From 8e38d8a0e3e6717643b64b607732feede5caa46d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Mon, 22 Jul 2024 15:38:51 +0200 Subject: [PATCH 4/8] update to latest beta --- samples/android/app/build.gradle | 2 +- .../app/src/main/java/com/example/unleash/FirstFragment.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/android/app/build.gradle b/samples/android/app/build.gradle index ec6348c..971481d 100644 --- a/samples/android/app/build.gradle +++ b/samples/android/app/build.gradle @@ -57,7 +57,7 @@ dependencies { implementation 'androidx.navigation:navigation-fragment-ktx:2.3.5' implementation 'androidx.navigation:navigation-ui-ktx:2.3.5' //implementation 'io.getunleash:unleash-android-proxy-sdk:0.5.0' - implementation "io.getunleash:unleash-android:0.1.2-beta.1" + implementation "io.getunleash:unleash-android:0.1.2-beta.3" testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' diff --git a/samples/android/app/src/main/java/com/example/unleash/FirstFragment.kt b/samples/android/app/src/main/java/com/example/unleash/FirstFragment.kt index 08ce47f..fee8ca7 100644 --- a/samples/android/app/src/main/java/com/example/unleash/FirstFragment.kt +++ b/samples/android/app/src/main/java/com/example/unleash/FirstFragment.kt @@ -42,7 +42,7 @@ class FirstFragment : Fragment() { if (unleashClient.isEnabled("android-sdk-first-fragment-demo")) { val bundle = Bundle() val variant = unleashClient.getVariant("android-sdk-first-fragment-demo") - bundle.putString("argName", variant.payload?.value ?: variant.name) + bundle.putString("argName", variant.payload?.getValueAsString() ?: variant.name) findNavController().navigate(R.id.action_FirstFragment_to_SecondFragment, bundle) } } From f74ebb155a323c9a3778f37015c2c3a116798fa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Thu, 25 Jul 2024 11:38:46 +0200 Subject: [PATCH 5/8] Prepare gradle build for the new release --- samples/android/app/build.gradle | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/samples/android/app/build.gradle b/samples/android/app/build.gradle index 971481d..ff496ae 100644 --- a/samples/android/app/build.gradle +++ b/samples/android/app/build.gradle @@ -51,13 +51,11 @@ dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation 'androidx.core:core-ktx:1.6.0' implementation 'androidx.appcompat:appcompat:1.3.1' - implementation 'org.slf4j:slf4j-android:1.7.30' implementation 'com.google.android.material:material:1.4.0' implementation 'androidx.constraintlayout:constraintlayout:2.1.0' implementation 'androidx.navigation:navigation-fragment-ktx:2.3.5' implementation 'androidx.navigation:navigation-ui-ktx:2.3.5' - //implementation 'io.getunleash:unleash-android-proxy-sdk:0.5.0' - implementation "io.getunleash:unleash-android:0.1.2-beta.3" + implementation "io.getunleash:unleash-android:2.0.0" testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' From 70cda1a544eea13056d5d39ee95585cae1c88c1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Thu, 25 Jul 2024 18:23:15 +0200 Subject: [PATCH 6/8] Upgrade to official release --- samples/android/app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/android/app/build.gradle b/samples/android/app/build.gradle index 971481d..1e95cd8 100644 --- a/samples/android/app/build.gradle +++ b/samples/android/app/build.gradle @@ -57,7 +57,7 @@ dependencies { implementation 'androidx.navigation:navigation-fragment-ktx:2.3.5' implementation 'androidx.navigation:navigation-ui-ktx:2.3.5' //implementation 'io.getunleash:unleash-android-proxy-sdk:0.5.0' - implementation "io.getunleash:unleash-android:0.1.2-beta.3" + implementation "io.getunleash:unleash-android:1.0.0" testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' From 3f24d06fb411817e59343094a78069035266ef8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Thu, 25 Jul 2024 18:25:09 +0200 Subject: [PATCH 7/8] Remove proguard rules --- samples/android/app/proguard-rules.pro | 1 - 1 file changed, 1 deletion(-) diff --git a/samples/android/app/proguard-rules.pro b/samples/android/app/proguard-rules.pro index 82be3ff..e69de29 100644 --- a/samples/android/app/proguard-rules.pro +++ b/samples/android/app/proguard-rules.pro @@ -1 +0,0 @@ --keep class com.fasterxml.** { *; } From 7c2ecb7743aad717f1dae8f3c5df01e5fd5f6d87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Thu, 25 Jul 2024 18:25:30 +0200 Subject: [PATCH 8/8] Upgrade target sdk to the required one --- samples/android/app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/android/app/build.gradle b/samples/android/app/build.gradle index ab5f821..56cac55 100644 --- a/samples/android/app/build.gradle +++ b/samples/android/app/build.gradle @@ -13,7 +13,7 @@ android { defaultConfig { applicationId "com.example.unleash" minSdkVersion 21 - targetSdkVersion 31 + targetSdkVersion 33 versionCode 1 versionName "1.0"