Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/flutter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ jobs:
with:
# You should create a personal access token and store it in your repository
token: ${{ secrets.CI_USER_TOKEN }}
repository: 'optimizely/travisci-tools'
path: 'home/runner/travisci-tools'
repository: 'optimizely/ci-helper-tools'
path: 'home/runner/ci-helper-tools'
ref: 'master'
- name: set SDK Branch if PR
env:
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
EVENT_MESSAGE: ${{ github.event.message }}
HOME: 'home/runner'
run: |
home/runner/travisci-tools/trigger-script-with-status-update.sh
home/runner/ci-helper-tools/trigger-script-with-status-update.sh

integration_ios_tests:
runs-on: ubuntu-latest
Expand All @@ -85,8 +85,8 @@ jobs:
with:
# You should create a personal access token and store it in your repository
token: ${{ secrets.CI_USER_TOKEN }}
repository: 'optimizely/travisci-tools'
path: 'home/runner/travisci-tools'
repository: 'optimizely/ci-helper-tools'
path: 'home/runner/ci-helper-tools'
ref: 'master'
- name: set SDK Branch if PR
env:
Expand Down Expand Up @@ -118,7 +118,7 @@ jobs:
EVENT_MESSAGE: ${{ github.event.message }}
HOME: 'home/runner'
run: |
home/runner/travisci-tools/trigger-script-with-status-update.sh
home/runner/ci-helper-tools/trigger-script-with-status-update.sh

build_test_android:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ dependencies {
implementation 'org.slf4j:slf4j-api:2.0.7'

implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:2.1.0"
implementation "com.optimizely.ab:android-sdk:5.1.0"
implementation "com.optimizely.ab:android-sdk:5.1.1"
implementation 'com.fasterxml.jackson.core:jackson-databind:2.17.2'
implementation ('com.google.guava:guava:19.0') {
exclude group:'com.google.guava', module:'listenablefuture'
Expand Down
2 changes: 1 addition & 1 deletion example/ios/Runner/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import UIKit
import Flutter

@UIApplicationMain
@main
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
Expand Down
2 changes: 2 additions & 0 deletions example/ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,7 @@
<false/>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
</dict>
</plist>
18 changes: 4 additions & 14 deletions example/lib/sample_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ class CmabSampleApi {
print('\nMaking async decision for flag: $CMAB_FLAG_KEY');
var decision = await userContext.decideAsync(
CMAB_FLAG_KEY,
{OptimizelyDecideOption.ignoreUserProfileService},
);

// Access decision results
Expand Down Expand Up @@ -127,7 +126,6 @@ class CmabSampleApi {
CMAB_FLAG_KEY,
{
OptimizelyDecideOption.ignoreCmabCache,
OptimizelyDecideOption.ignoreUserProfileService,
},
);
print(' ✓ Fresh decision from CMAB service (cache bypassed)');
Expand All @@ -140,8 +138,7 @@ class CmabSampleApi {
var decision2 = await userContext.decideAsync(
CMAB_FLAG_KEY,
{
OptimizelyDecideOption.resetCmabCache,
OptimizelyDecideOption.ignoreUserProfileService,
OptimizelyDecideOption.resetCmabCache
},
);
print(' ✓ Entire CMAB cache cleared, new decision fetched');
Expand All @@ -154,8 +151,7 @@ class CmabSampleApi {
var decision3 = await userContext.decideAsync(
CMAB_FLAG_KEY,
{
OptimizelyDecideOption.invalidateUserCmabCache,
OptimizelyDecideOption.ignoreUserProfileService,
OptimizelyDecideOption.invalidateUserCmabCache
},
);
print(' ✓ User-specific cache cleared, new decision fetched');
Expand All @@ -164,8 +160,7 @@ class CmabSampleApi {
// Regular cached decision (for comparison)
print('\n4. Regular decision (uses cache if available):');
var decision4 = await userContext.decideAsync(
CMAB_FLAG_KEY,
{OptimizelyDecideOption.ignoreUserProfileService},
CMAB_FLAG_KEY
);
print(' ✓ Decision returned (may be from cache)');
print(' - Variation: ${decision4.decision?.variationKey}');
Expand Down Expand Up @@ -211,8 +206,7 @@ class CmabSampleApi {

// Make decision with custom config
var decision = await userContext.decideAsync(
CMAB_FLAG_KEY,
{OptimizelyDecideOption.ignoreUserProfileService},
CMAB_FLAG_KEY
);

print('\n✓ Decision made with custom cache settings:');
Expand Down Expand Up @@ -314,15 +308,13 @@ class CmabSampleApi {
await user1Context.decideAsync(
CMAB_FLAG_KEY,
{
OptimizelyDecideOption.ignoreUserProfileService,
OptimizelyDecideOption.includeReasons,
},
);

await user2Context.decideAsync(
CMAB_FLAG_KEY,
{
OptimizelyDecideOption.ignoreUserProfileService,
OptimizelyDecideOption.includeReasons,
},
);
Expand All @@ -331,7 +323,6 @@ class CmabSampleApi {
await user1Context.decideAsync(
CMAB_FLAG_KEY,
{
OptimizelyDecideOption.ignoreUserProfileService,
OptimizelyDecideOption.includeReasons,
OptimizelyDecideOption.invalidateUserCmabCache,
},
Expand All @@ -341,7 +332,6 @@ class CmabSampleApi {
await user2Context.decideAsync(
CMAB_FLAG_KEY,
{
OptimizelyDecideOption.ignoreUserProfileService,
OptimizelyDecideOption.includeReasons,
},
);
Expand Down
2 changes: 1 addition & 1 deletion ios/optimizely_flutter_sdk.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Pod::Spec.new do |s|
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'
s.dependency 'Flutter'
s.dependency 'OptimizelySwiftSDK', '5.2.0'
s.dependency 'OptimizelySwiftSDK', '5.2.1'
s.platform = :ios, '10.0'
# Flutter.framework does not contain a i386 slice.
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }
Expand Down