Skip to content

Commit b284a67

Browse files
authored
Prepare 0.2.0 release (#7)
## [0.2.0] - 2021-09-24 This is a breaking beta release. The changelog may not detail all changes between beta releases. The SDK is considered to be an unsupported beta until release 1.0.0. ### Added - Added the `alias` method to `LDClient`. This can be used to associate two user objects for analytics purposes with an alias event. - Added the `autoAliasingOptOut` configuration option. This can be used to control the new automatic aliasing behavior of the `identify` method; by setting `autoAliasingOptOut` to `true`. `identify` will not automatically generate alias events. - The SDK now supports the ability to control the proportion of traffic allocation to an experiment. This works in conjunction with a new platform feature now available to early access customers. ### Changed - The SDK implementation is now null-safe. - The minimum Flutter version has been raised to 2.0.0. - The minimum Dart version has been raised to 2.12.0. - The minimum supported Android API version has changed from 16 to 21. - The underlying SDK on Android has been updated to 3.1.1 from 2.13.0. See the [Android SDK changelog](https://github.com/launchdarkly/android-client-sdk/releases) for details on improvements. - The underlying SDK on iOS has been updated from 5.2.0 to 5.4.3. See the [iOS SDK changelog](https://github.com/launchdarkly/ios-client-sdk/releases) for details on improvements. - The `identify` method will now automatically generate an alias event when switching from an anonymous to a known user. This event associates the two users for analytics purposes as they most likely represent a single person.
1 parent 44b60ec commit b284a67

32 files changed

+905
-772
lines changed

.circleci/config.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,18 @@ jobs:
2424
command: |
2525
echo 'export PATH="$PATH:/usr/local/share/android-sdk/tools/bin"' >> $BASH_ENV
2626
echo 'export PATH="$PATH:/usr/local/share/android-sdk/platform-tools"' >> $BASH_ENV
27-
echo 'export PATH="$PATH:/usr/local/Caskroom/flutter/1.20.4/flutter/.pub-cache/bin"' >> $BASH_ENV
27+
echo 'export PATH="$PATH:$HOME/.pub-cache/bin"' >> $BASH_ENV
2828
2929
- run:
3030
name: Install Android SDK, Flutter and dartdoc
3131
command: |
32-
HOMEBREW_NO_AUTO_UPDATE=1 brew cask install homebrew/cask-versions/adoptopenjdk8
3332
HOMEBREW_NO_AUTO_UPDATE=1 brew tap homebrew/cask
34-
HOMEBREW_NO_AUTO_UPDATE=1 brew cask install android-sdk
33+
HOMEBREW_NO_AUTO_UPDATE=1 brew install --cask homebrew/cask-versions/adoptopenjdk8
34+
HOMEBREW_NO_AUTO_UPDATE=1 brew install --cask android-sdk
3535
yes | sdkmanager "platform-tools" | grep -v = || true
36-
HOMEBREW_NO_AUTO_UPDATE=1 brew cask install flutter
37-
flutter pub global activate dartdoc
36+
HOMEBREW_NO_AUTO_UPDATE=1 brew install --cask flutter
37+
flutter upgrade
38+
dart pub global activate dartdoc
3839
3940
- run:
4041
name: Acknowledge Android licenses

.gitignore

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,34 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
16
.DS_Store
2-
.dart_tool/
7+
.atom/
8+
.buildlog/
9+
.history
10+
11+
# Visual Studio Code related
12+
.classpath
13+
.project
14+
.settings/
15+
.vscode/
16+
17+
# IntelliJ related
18+
*.iml
19+
*.ipr
20+
*.iws
21+
.idea/
322

23+
.dart_tool/
424
.packages
25+
.pub-cache/
526
.pub/
6-
727
build/
8-
.gradle
928

10-
.idea/workspace.xml
29+
**/android/**/gradle-wrapper.jar
30+
**/android/.gradle
31+
**/android/gradlew
32+
**/android/gradlew.bat
33+
34+
doc/

CHANGELOG.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
# Change log
22

3-
All notable changes to the LaunchDarkly Flutter client-side SDK will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).
3+
All notable changes to the LaunchDarkly Flutter client-side SDK will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org).
4+
5+
## [0.2.0] - 2021-09-24
6+
This is a breaking beta release. The changelog may not detail all changes between beta releases. The SDK is considered to be an unsupported beta until release 1.0.0.
7+
8+
### Added
9+
- Added the `alias` method to `LDClient`. This can be used to associate two user objects for analytics purposes with an alias event.
10+
- Added the `autoAliasingOptOut` configuration option. This can be used to control the new automatic aliasing behavior of the `identify` method; by setting `autoAliasingOptOut` to `true`. `identify` will not automatically generate alias events.
11+
- The SDK now supports the ability to control the proportion of traffic allocation to an experiment. This works in conjunction with a new platform feature now available to early access customers.
12+
13+
### Changed
14+
- The SDK implementation is now null-safe.
15+
- The minimum Flutter version has been raised to 2.0.0.
16+
- The minimum Dart version has been raised to 2.12.0.
17+
- The minimum supported Android API version has changed from 16 to 21.
18+
- The underlying SDK on Android has been updated to 3.1.1 from 2.13.0. See the [Android SDK changelog](https://github.com/launchdarkly/android-client-sdk/releases) for details on improvements.
19+
- The underlying SDK on iOS has been updated from 5.2.0 to 5.4.3. See the [iOS SDK changelog](https://github.com/launchdarkly/ios-client-sdk/releases) for details on improvements.
20+
- The `identify` method will now automatically generate an alias event when switching from an anonymous to a known user. This event associates the two users for analytics purposes as they most likely represent a single person.
421

522
## [0.1.0] - 2020-10-29
623
This is the first public release of the LaunchDarkly Flutter client-side SDK. The SDK is considered to be an unsupported beta until release 1.0.0.

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ LaunchDarkly overview
1414
Supported Platform versions
1515
-------------------------
1616

17-
See the [pubspec.yaml](pubspec.yaml) file for Flutter version requirements.
17+
See the [pubspec.yaml](https://github.com/launchdarkly/flutter-client-sdk/blob/master/pubspec.yaml) file for Flutter version requirements.
1818

19-
On the Android platform, the SDK requires a minimum SDK version of 16.
19+
On the Android platform, the SDK requires a minimum SDK version of 21.
2020

2121
On the iOS platform, the SDK requires a minimum version of 10.0.
2222

23+
Other Flutter platforms are not currently supported by this SDK.
24+
2325
Getting started
2426
-----------
2527

@@ -38,7 +40,7 @@ We run integration tests for all our SDKs using a centralized test harness. This
3840
Contributing
3941
------------
4042

41-
We encourage pull requests and other contributions from the community. Check out our [contributing guidelines](CONTRIBUTING.md) for instructions on how to contribute to this SDK.
43+
We encourage pull requests and other contributions from the community. Check out our [contributing guidelines](https://github.com/launchdarkly/flutter-client-sdk/blob/master/CONTRIBUTING.md) for instructions on how to contribute to this SDK.
4244

4345
About LaunchDarkly
4446
-----------
@@ -54,4 +56,3 @@ About LaunchDarkly
5456
* [docs.launchdarkly.com](https://docs.launchdarkly.com/ "LaunchDarkly Documentation") for our documentation and SDK reference guides
5557
* [apidocs.launchdarkly.com](https://apidocs.launchdarkly.com/ "LaunchDarkly API Documentation") for our API documentation
5658
* [blog.launchdarkly.com](https://blog.launchdarkly.com/ "LaunchDarkly Blog Documentation") for the latest product updates
57-
* [Feature Flagging Guide](https://github.com/launchdarkly/featureflags/ "Feature Flagging Guide") for best practices and strategies

android/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ buildscript {
99
}
1010

1111
dependencies {
12-
classpath 'com.android.tools.build:gradle:3.5.0'
12+
classpath 'com.android.tools.build:gradle:4.1.3'
1313
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1414
}
1515
}
@@ -31,7 +31,7 @@ android {
3131
main.java.srcDirs += 'src/main/kotlin'
3232
}
3333
defaultConfig {
34-
minSdkVersion 16
34+
minSdkVersion 21
3535
}
3636
lintOptions {
3737
disable 'InvalidPackage'
@@ -40,6 +40,6 @@ android {
4040

4141
dependencies {
4242
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
43-
implementation 'com.launchdarkly:launchdarkly-android-client-sdk:2.13.0'
44-
implementation 'com.google.code.gson:gson:2.8.2'
43+
implementation 'com.launchdarkly:launchdarkly-android-client-sdk:3.1.1'
44+
implementation 'androidx.annotation:annotation:1.2.0'
4545
}

android/gradle.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
org.gradle.jvmargs=-Xmx1536M
2-
android.enableR8=true
32
android.useAndroidX=true
43
android.enableJetifier=true

android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip

0 commit comments

Comments
 (0)