Skip to content

Commit

Permalink
prepare 1.2.0 release (#24)
Browse files Browse the repository at this point in the history
* Add LICENSE.txt.

* Add initial template for changelog.

* Filing in some basic fields for packages.

* Accidentally create plugin without organization.

* Basic initial implementation of bridging SDK calls to native SDKs.

* Commit most to changes for bridging.

* Fix dependencies.

* Reorganize to use mini library.

* Add missing ldconfig options.

* Add missing config options to kotlin native bridge.

* Extend LDValue with convenience builders.

* Add Android allFlags.

* Fix type error with allFlags bridging.

* Consistency renames.

* Improve handling of json and casting.

* Better json handling on ios.

* Fix what I just broke.

* Actually fix changes. Stupid type inference disambiguation changes.

* Add experimentation to track.

* Custom handling.

* Evaluation details.

* Handle null case.

* Fix type casting on evaluation detail.

* Last bit of implementation.

* Remove useless field.

* Add doc comments, tests, circleci build. (#3)

Also adds GitHub issue/PR templates, CONTRIBUTING.md, updates readmes, and has very minor code tweaks.

* Small improvements for next beta release. (#4)

Mostly stuff to improve score on https://pub.dev/packages/launchdarkly_flutter_client_sdk/score. Also changes `baseUri` to `pollUri` and add default flagbearer base.

* Removed the guides link

* [ch93167] Updates for Flutter 2, Dart 2.12 (nullability), Android 3 (#7)

Co-authored-by: Kerrie Yee <kyee@launchdarkly.com>

* Clarify supported platforms in readme. (#10)

* Fixes from restwrapper before release of beta 0.2.0 (#11)

* Updates docs URLs

* Updated pubspec description (#13)

* Add maxCachedUsers configuration option. (#14)

* Remove `set` prefix from `LDConfigBuilder` methods and add tests. (#15)

* [ch110587] Add ability to wait on SDK 'initialization'. (#16)

* Cleanup iOS configuration building with a `whenIs` method. (#17)

* Improvements to repeat initialization (#18)

* Upgrade Timber, remove deprecated splash screen… (#19)

…and remove unneeded dependencies from example app.

* Provide isOffline instead of isOnline. (#20)

* Add releaser configuration. (#21)

* Add missing quotes to releaser config. (#22)

* Remove extra hyphen for releaser. (#23)

* Fix warnings in publish, increase releaser timeout. (#24)

* Remove beta warning from readme, add pub lozenge. (#25)

* Revert "Remove beta warning from readme, add pub lozenge. (#25)"

This reverts commit dd4c0ec.

* Revert "Revert "Remove beta warning from readme, add pub lozenge. (#25)""

This reverts commit d4608fa.

* Fix CI job (#26)

* add single instance note

* Revert "add single instance note"

This reverts commit 19e4d73.

* Bump iOS SDK dependency to latest 5.4.5 release. (#30)

* (iOS) Avoid force unwrapping LDClient.get() (#29)

* Update to latest Android SDK release and remove workaround. (#31)

* Updates for iOS V6 (#32)

* Update to new version of flutter embedding. (#33)

* Update identify to use a coroutine which waits for the underlying future to complete. (#34)

* Make 'when' exhaustive for kotlin 1.7.0 (#35)

* [sc-157958] Update releaser config with correct JAVA_HOME. (#36)

* Try newer xcode.

* Use the correct path.

* Populate attributes using initializer for LDUser as not to replace auto populated device/os (#37)

* Use android SDK 3.1.6 (#38)

* Update gradle plugins. (#39)

* Update the way the android tools are installed. (#40)

* Handle new credential file location. (#41)

Co-authored-by: Gavin Whelan <gwhelan@launchdarkly.com>
Co-authored-by: Ben Woskow <48036130+bwoskow-ld@users.noreply.github.com>
Co-authored-by: Kerrie Yee <kyee@launchdarkly.com>
Co-authored-by: Ember Stevens <ember.stevens@launchdarkly.com>
Co-authored-by: ember-stevens <79482775+ember-stevens@users.noreply.github.com>
Co-authored-by: Molly <molly.jones@launchdarkly.com>
Co-authored-by: Louis Chan <lchan@launchdarkly.com>
Co-authored-by: Ryan Lamb <4955475+kinyoklion@users.noreply.github.com>
Co-authored-by: LaunchDarklyReleaseBot <launchdarklyreleasebot@launchdarkly.com>
  • Loading branch information
10 people authored Nov 7, 2022
1 parent d094a9f commit 273eb7b
Show file tree
Hide file tree
Showing 14 changed files with 66 additions and 41 deletions.
9 changes: 4 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,17 @@ version: 2.1
jobs:
build:
macos:
xcode: "12.5.1"
xcode: "13.4.1"
resource_class: macos.x86.medium.gen2
shell: /bin/bash --login -eo pipefail
environment:
TERM: dumb
JAVA_HOME: "/Library/Java/JavaVirtualMachines/temurin-8.jdk/Contents/Home"
_JAVA_OPTIONS: "-Xms2048m -Xmx4096m"
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
JVM_OPTS: -Xmx3200m
ANDROID_HOME: "/usr/local/share/android-sdk"
ANDROID_SDK_HOME: "/usr/local/share/android-sdk"
ANDROID_SDK_ROOT: "/usr/local/share/android-sdk"
ANDROID_HOME: "/tmp/Android"
ANDROID_SDK_HOME: "/tmp/Android"
ANDROID_SDK_ROOT: "/tmp/Android"

steps:
- checkout
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ build/
**/android/gradlew
**/android/gradlew.bat

doc/
doc/

cmdline-tools.zip
9 changes: 4 additions & 5 deletions .ldrelease/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@ jobs:
context: org-global
timeoutMinutes: 20
mac:
xcode: "12.5.1"
xcode: "13.4.1"
env:
JAVA_HOME: "/Library/Java/JavaVirtualMachines/temurin-8.jdk/Contents/Home"
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
ANDROID_HOME: "/usr/local/share/android-sdk"
ANDROID_SDK_HOME: "/usr/local/share/android-sdk"
ANDROID_SDK_ROOT: "/usr/local/share/android-sdk"
ANDROID_HOME: "/tmp/Android"
ANDROID_SDK_HOME: "/tmp/Android"
ANDROID_SDK_ROOT: "/tmp/Android"

documentation:
gitHubPages: true
Expand Down
20 changes: 10 additions & 10 deletions .ldrelease/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

set -e

FLUTTER_RELEASE="https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_2.8.1-stable.zip"
# Download link from: https://docs.flutter.dev/get-started/install/macos
FLUTTER_RELEASE="https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_3.3.7-stable.zip"

# Setup Android PATHs
echo 'export PATH="$PATH:/usr/local/share/android-sdk/tools/bin"' >> $BASH_ENV
echo 'export PATH="$PATH:/usr/local/share/android-sdk/platform-tools"' >> $BASH_ENV
# Download Android command line tools
mkdir -p $ANDROID_SDK_ROOT/cmdline-tools/latest

# Install Java and Android SDK
brew install --cask temurin8 android-sdk
yes | sdkmanager "platform-tools" | grep -v = || true

# Acknowledge Android licenses
sudo mkdir -p /usr/local/android-sdk-linux/licenses
# Download link from: https://developer.android.com/studio
# There should be a "Command line tools only" section on the page.
curl https://dl.google.com/android/repository/commandlinetools-mac-8512546_latest.zip -o cmdline-tools.zip
unzip cmdline-tools.zip
mv cmdline-tools/* $ANDROID_SDK_ROOT/cmdline-tools/latest/
yes | $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager --licenses > /dev/null || true

# Install Flutter and dartdoc
cd $HOME
Expand Down
15 changes: 13 additions & 2 deletions .ldrelease/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,18 @@
set -e

# Copy secret to allow publishing
mkdir -p $HOME/.pub-cache
mv $LD_RELEASE_SECRETS_DIR/pub_creds $HOME/.pub-cache/credentials.json
if [ -z "${XDG_CONFIG_HOME:-}" ]; then
# Linux with XDG_CONFIG_HOME defined.
mkdir -p $XDG_CONFIG_HOME/dart
mv $LD_RELEASE_SECRETS_DIR/pub_creds $XDG_CONFIG_HOME/dart/pub-credentials.json
elif [ "$(uname)" == "Darwin" ]; then
# Mac
mkdir -p ~/Library/Application Support/dart/
mv $LD_RELEASE_SECRETS_DIR/pub_creds ~/Library/Application Support/dart/pub-credentials.json
else
# Linux without XDG_CONFIG_HOME defined.
mkdir -p ~/.config/dart
mv $LD_RELEASE_SECRETS_DIR/pub_creds ~/.config/dart/pub-credentials.json
fi

flutter pub publish -f
4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ group 'com.launchdarkly.launchdarkly_flutter_client_sdk'
version '1.0-SNAPSHOT'

buildscript {
ext.kotlin_version = '1.4.32'
ext.kotlin_version = '1.5.20'
repositories {
google()
mavenCentral()
Expand Down Expand Up @@ -40,7 +40,7 @@ android {

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.launchdarkly:launchdarkly-android-client-sdk:3.1.6'
implementation 'com.launchdarkly:launchdarkly-android-client-sdk:3.2.2'
implementation 'androidx.annotation:annotation:1.2.0'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.9'
}
2 changes: 1 addition & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip
2 changes: 1 addition & 1 deletion example/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '1.4.32'
ext.kotlin_version = '1.5.20'
repositories {
google()
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion example/android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip
2 changes: 1 addition & 1 deletion example/ios/Flutter/AppFrameworkInfo.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MinimumOSVersion</key>
<string>9.0</string>
<string>11.0</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion example/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
platform :ios, '10.0'
platform :ios, '11.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
Expand Down
13 changes: 10 additions & 3 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,20 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
js:
dependency: transitive
description:
name: js
url: "https://pub.dartlang.org"
source: hosted
version: "0.6.4"
launchdarkly_flutter_client_sdk:
dependency: "direct main"
description:
path: ".."
relative: true
source: path
version: "1.0.0"
version: "1.1.4"
matcher:
dependency: transitive
description:
Expand All @@ -40,7 +47,7 @@ packages:
name: material_color_utilities
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.5"
version: "0.2.0"
meta:
dependency: transitive
description:
Expand Down Expand Up @@ -80,7 +87,7 @@ packages:
name: vector_math
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.2"
version: "2.1.4"
sdks:
dart: ">=2.17.0-0 <3.0.0"
flutter: ">=2.0.0"
2 changes: 1 addition & 1 deletion ios/launchdarkly_flutter_client_sdk.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Pod::Spec.new do |s|
s.source_files = 'Classes/**/*'
s.dependency 'Flutter'
s.dependency 'LaunchDarkly', '6.1.0'
s.platform = :ios, '10.0'
s.platform = :ios, '11.0'

# Flutter.framework does not contain a i386 slice. Only x86_64 simulators are supported.
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64' }
Expand Down
21 changes: 14 additions & 7 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,27 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
js:
dependency: transitive
description:
name: js
url: "https://pub.dartlang.org"
source: hosted
version: "0.6.4"
matcher:
dependency: transitive
description:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.11"
version: "0.12.12"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.5"
version: "0.2.0"
meta:
dependency: transitive
description:
Expand Down Expand Up @@ -99,7 +106,7 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.9.0"
version: "1.9.1"
stack_trace:
dependency: transitive
description:
Expand All @@ -113,7 +120,7 @@ packages:
name: stream_channel
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
version: "2.1.1"
string_scanner:
dependency: transitive
description:
Expand All @@ -134,14 +141,14 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.9"
version: "0.4.14"
vector_math:
dependency: transitive
description:
name: vector_math
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.2"
version: "2.1.4"
sdks:
dart: ">=2.17.0-0 <3.0.0"
dart: ">=2.18.0 <3.0.0"
flutter: ">=2.0.0"

0 comments on commit 273eb7b

Please sign in to comment.