Skip to content

Commit 4b54235

Browse files
Merge branch 'master' into muzahid/custom-looger
2 parents c2f1507 + 34d2a3b commit 4b54235

File tree

9 files changed

+39
-27
lines changed

9 files changed

+39
-27
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Optimizely Flutter SDK Changelog
22

3+
## 3.1.0
4+
October 9th, 2025
5+
6+
This minor release added the following support:
7+
* Android 15 support ([#84](https://github.com/optimizely/optimizely-flutter-sdk/pull/84))
8+
* Update AGP version to 8.7.0
9+
* Update gradle version to 8.10.2
10+
* Update kotlin version to 2.1.0
11+
312
## 3.0.1
413
Jun 4th, 2025
514

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Other Flutter platforms are not currently supported by this SDK.
3030
To add the flutter-sdk to your project dependencies, include the following in your app's pubspec.yaml:
3131

3232
```
33-
optimizely_flutter_sdk: ^3.0.1
33+
optimizely_flutter_sdk: ^3.1.0
3434
```
3535

3636
Then run

android/build.gradle

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,22 @@ rootProject.allprojects {
2424

2525

2626
ext {
27-
compile_sdk_version = 32
28-
build_tools_version = "30.0.3"
27+
compile_sdk_version = 35
2928
min_sdk_version = 21
30-
target_sdk_version = 29
3129
}
3230

3331
android {
34-
compileSdkVersion compile_sdk_version
35-
buildToolsVersion build_tools_version
32+
namespace 'com.optimizely.optimizely_flutter_sdk'
33+
compileSdkVersion rootProject.hasProperty('flutter.compileSdkVersion')
34+
? rootProject.flutter.compileSdkVersion.toInteger()
35+
: compile_sdk_version
36+
37+
buildFeatures {
38+
buildConfig true
39+
}
3640

3741
defaultConfig {
3842
minSdkVersion min_sdk_version
39-
targetSdkVersion target_sdk_version
4043
versionCode 1
4144
versionName version_name
4245
buildConfigField "String", "CLIENT_VERSION", "\"$version_name\""
@@ -53,14 +56,6 @@ android {
5356
packagingOptions {
5457
exclude 'androidsupportmultidexversion.txt'
5558
}
56-
57-
buildTypes {
58-
release {
59-
minifyEnabled true
60-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
61-
}
62-
}
63-
6459
}
6560

6661
dependencies {
@@ -73,9 +68,9 @@ dependencies {
7368
implementation 'com.github.tony19:logback-android:3.0.0'
7469
implementation 'org.slf4j:slf4j-api:2.0.7'
7570

76-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.6.10"
71+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:2.1.0"
7772
implementation "com.optimizely.ab:android-sdk:5.0.1"
78-
implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.4'
73+
implementation 'com.fasterxml.jackson.core:jackson-databind:2.17.2'
7974
implementation ('com.google.guava:guava:19.0') {
8075
exclude group:'com.google.guava', module:'listenablefuture'
8176
}

android/proguard-rules.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,10 @@
1212
-keep class com.fasterxml.jackson.** {*;}
1313
# Logback
1414
-keep class ch.qos.** { *; }
15+
16+
# Mail classes (Logback SMTP appender)
17+
-dontwarn javax.mail.**
18+
-dontwarn javax.mail.internet.**
19+
-dontwarn javax.activation.**
20+
1521
##---------------End: proguard configuration ----------

example/android/app/build.gradle

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ if (flutterVersionName == null) {
2424
}
2525

2626
android {
27-
compileSdkVersion 32
28-
ndkVersion flutter.ndkVersion
27+
namespace "com.optimizely.optimizely_flutter_sdk_example"
28+
29+
compileSdkVersion flutter.compileSdkVersion
2930

3031
compileOptions {
3132
sourceCompatibility JavaVersion.VERSION_1_8
@@ -37,8 +38,9 @@ android {
3738
applicationId "com.optimizely.optimizely_flutter_sdk_example"
3839
// You can update the following values to match your application needs.
3940
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
40-
minSdkVersion 21
41-
targetSdkVersion 32
41+
minSdkVersion flutter.minSdkVersion
42+
targetSdkVersion flutter.targetSdkVersion
43+
4244
versionCode flutterVersionCode.toInteger()
4345
versionName flutterVersionName
4446
}

example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip

example/android/settings.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ pluginManagement {
2626

2727
plugins {
2828
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
29-
id "com.android.application" version "7.2.1" apply false
30-
id "org.jetbrains.kotlin.android" version "1.6.10" apply false
29+
id "com.android.application" version "8.7.0" apply false
30+
id "org.jetbrains.kotlin.android" version "2.1.0" apply false
3131
}
3232

3333
include ":app"

lib/package_info.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33

44
class PackageInfo {
55
static const String name = 'optimizely_flutter_sdk';
6-
static const String version = '3.0.1';
6+
static const String version = '3.1.0';
77
}

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: optimizely_flutter_sdk
22
description: This repository houses the Flutter SDK for use with Optimizely Feature Experimentation, Optimizely Full Stack (legacy), and Optimizely Rollouts.
3-
version: 3.0.1
3+
version: 3.1.0
44
homepage: https://github.com/optimizely/optimizely-flutter-sdk
55

66
environment:
7-
sdk: '>=2.16.2 <4.0.0'
7+
sdk: ">=2.16.2 <4.0.0"
88
flutter: ">=2.5.0"
99

1010
dependencies:

0 commit comments

Comments
 (0)