Skip to content

Commit

Permalink
Update sample codes for v2.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
linjie-firework committed May 8, 2024
1 parent 1628171 commit 10718cd
Show file tree
Hide file tree
Showing 680 changed files with 5,901 additions and 934 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,25 @@
# CHANGELOG

## [2.9.0]

### Added

- More language support
- Optimizations for RTL
- Expose more properties for many event callbacks
- Support configuring data tracking level
- [Android] Add the email field to the Question interactions

### Fixed

- [Android] "Host Will be right back" pop up message is missing in viewers mobile when the streamer paused the live stream.

## [2.8.1]

### Added

- [iOS] Support configuring the visibility of the playback button on the full-screen story block

### Fixed

- [Android] [SingleTask Activity is launched in their own affinities](https://groups.google.com/g/ima-sdk/c/PfAnye3Hhww/m/08N6YyFsBAAJ), which is caused by [the Google IMA SDK v3.32.0](https://developers.google.com/interactive-media-ads/docs/sdks/android/client-side/history)
Expand Down
2 changes: 1 addition & 1 deletion FireworkFlutterSDKSample/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "2.8.1"
versionName "2.9.0"
}

compileOptions {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package com.loopnow.fondor

import android.content.Context
import com.firework.imageloading.glide.GlideImageLoaderFactory
import com.firework.livestream.multihost.MultiHostLivestreamPlayerInitializer
import com.firework.livestream.singlehost.SingleHostLivestreamPlayerInitializer
import com.fireworksdk.bridge.flutter.FWFlutterSDK
import com.fireworksdk.bridge.models.FWSDKInitOptionsModel
import com.fireworksdk.bridge.models.enums.FWPlayerLaunchBehavior
import com.fireworksdk.bridge.utils.FWLanguageUtil
import io.flutter.app.FlutterApplication

class MainApplication: FlutterApplication() {
Expand All @@ -23,4 +25,10 @@ class MainApplication: FlutterApplication() {
FWSDKInitOptionsModel(videoLaunchBehavior = FWPlayerLaunchBehavior.MuteOnFirstLaunch)
)
}

override fun attachBaseContext(base: Context) {
// Optional, setup language if you already have language setting in your app
// FWFlutterSDK.changeLanguage("en", base)
super.attachBaseContext(FWFlutterSDK.updateBaseContextLocale(base))
}
}
2 changes: 1 addition & 1 deletion FireworkFlutterSDKSample/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ buildscript {
dependencies {
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath("com.android.tools.build:gradle:7.3.1")
classpath('com.android.tools.build:gradle:7.4.2')
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Fri Jun 23 08:50:38 CEST 2017
#Sun Apr 28 23:16:30 CST 2024
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
3 changes: 3 additions & 0 deletions FireworkFlutterSDKSample/android/lint.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@
<!-- list of issues to configure -->
<issue id="MissingTranslation" severity="ignore" />
<issue id="OutdatedLibrary" severity="ignore" />
<issue id="NotificationPermission">
<ignore regexp="com.bumptech.glide.request.target.NotificationTarget" />
</issue>
</lint>
51 changes: 26 additions & 25 deletions FireworkFlutterSDKSample/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
PODS:
- AmazonIVSPlayer (1.8.3)
- FirebaseCore (10.24.0):
- FirebaseCore (10.25.0):
- FirebaseCoreInternal (~> 10.0)
- GoogleUtilities/Environment (~> 7.12)
- GoogleUtilities/Logger (~> 7.12)
- FirebaseCoreExtension (10.24.0):
- FirebaseCoreExtension (10.25.0):
- FirebaseCore (~> 10.0)
- FirebaseCoreInternal (10.24.0):
- FirebaseCoreInternal (10.25.0):
- "GoogleUtilities/NSData+zlib (~> 7.8)"
- FirebaseCrashlytics (10.24.0):
- FirebaseCrashlytics (10.25.0):
- FirebaseCore (~> 10.5)
- FirebaseInstallations (~> 10.0)
- FirebaseRemoteConfigInterop (~> 10.23)
Expand All @@ -17,21 +17,22 @@ PODS:
- GoogleUtilities/Environment (~> 7.8)
- nanopb (< 2.30911.0, >= 2.30908.0)
- PromisesObjC (~> 2.1)
- FirebaseInstallations (10.24.0):
- FirebaseInstallations (10.25.0):
- FirebaseCore (~> 10.0)
- GoogleUtilities/Environment (~> 7.8)
- GoogleUtilities/UserDefaults (~> 7.8)
- PromisesObjC (~> 2.1)
- FirebaseRemoteConfigInterop (10.24.0)
- FirebaseSessions (10.24.0):
- FirebaseRemoteConfigInterop (10.25.0)
- FirebaseSessions (10.25.0):
- FirebaseCore (~> 10.5)
- FirebaseCoreExtension (~> 10.0)
- FirebaseInstallations (~> 10.0)
- GoogleDataTransport (~> 9.2)
- GoogleUtilities/Environment (~> 7.10)
- GoogleUtilities/Environment (~> 7.13)
- GoogleUtilities/UserDefaults (~> 7.13)
- nanopb (< 2.30911.0, >= 2.30908.0)
- PromisesSwift (~> 2.1)
- FireworkVideo (1.20.2)
- FireworkVideo (1.21.0)
- FireworkVideoIVSSupport (0.4.0):
- AmazonIVSPlayer (~> 1.8.3)
- FireworkVideoUI (0.1.0):
Expand All @@ -41,23 +42,23 @@ PODS:
- FMDB/standard (= 2.7.10)
- FMDB/standard (2.7.10)
- fw_flutter_sdk (1.0.0):
- FireworkVideo (= 1.20.2)
- FireworkVideo (= 1.21.0)
- FireworkVideoUI (= 0.1.0)
- Flutter
- GoogleDataTransport (9.4.1):
- GoogleUtilities/Environment (~> 7.7)
- nanopb (< 2.30911.0, >= 2.30908.0)
- PromisesObjC (< 3.0, >= 1.2)
- GoogleUtilities/Environment (7.13.0):
- GoogleUtilities/Environment (7.13.2):
- GoogleUtilities/Privacy
- PromisesObjC (< 3.0, >= 1.2)
- GoogleUtilities/Logger (7.13.0):
- GoogleUtilities/Logger (7.13.2):
- GoogleUtilities/Environment
- GoogleUtilities/Privacy
- "GoogleUtilities/NSData+zlib (7.13.0)":
- "GoogleUtilities/NSData+zlib (7.13.2)":
- GoogleUtilities/Privacy
- GoogleUtilities/Privacy (7.13.0)
- GoogleUtilities/UserDefaults (7.13.0):
- GoogleUtilities/Privacy (7.13.2)
- GoogleUtilities/UserDefaults (7.13.2):
- GoogleUtilities/Logger
- GoogleUtilities/Privacy
- nanopb (2.30910.0):
Expand Down Expand Up @@ -120,21 +121,21 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
AmazonIVSPlayer: ce792b427a4fe466d6ea32b3ce8abe391d9242d0
FirebaseCore: 11dc8a16dfb7c5e3c3f45ba0e191a33ac4f50894
FirebaseCoreExtension: af5fd85e817ea9d19f9a2659a376cf9cf99f03c0
FirebaseCoreInternal: bcb5acffd4ea05e12a783ecf835f2210ce3dc6af
FirebaseCrashlytics: af38ea4adfa606f6e63fcc22091b61e7938fcf66
FirebaseInstallations: 8f581fca6478a50705d2bd2abd66d306e0f5736e
FirebaseRemoteConfigInterop: 6c349a466490aeace3ce9c091c86be1730711634
FirebaseSessions: 2651b464e241c93fd44112f995d5ab663c970487
FireworkVideo: 28bbdef4c9dabb06d454fab56d2e22ac7c26b54e
FirebaseCore: 7ec4d0484817f12c3373955bc87762d96842d483
FirebaseCoreExtension: 8a47811d0b155501559ef05d089518152a0a1677
FirebaseCoreInternal: 910a81992c33715fec9263ca7381d59ab3a750b7
FirebaseCrashlytics: 4b96efb0ce73b38b2a85e8b8bd1bd8f63f09d015
FirebaseInstallations: 91950fe859846fff0fbd296180909dd273103b09
FirebaseRemoteConfigInterop: b25018791b204c0d78a90e394d6c62d9b1f22da8
FirebaseSessions: c0939656253a1fa0e94ecc266ccf770cc8b33732
FireworkVideo: be54a5b730c2f8f0cfd8ef37e8ec73ff9340d32a
FireworkVideoIVSSupport: c75d204e55afab922899e2ff90242a5ec6d4ad20
FireworkVideoUI: af83909d6d20c0d8158221cdd716c1c1f5afac8d
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
FMDB: eae540775bf7d0c87a5af926ae37af69effe5a19
fw_flutter_sdk: b425498fbc092d898236f3f1863b2908f03f1a8b
fw_flutter_sdk: 49c2b0d3520303ce7bb77d8c2748ccdaa56d70cf
GoogleDataTransport: 6c09b596d841063d76d4288cc2d2f42cc36e1e2a
GoogleUtilities: d053d902a8edaa9904e1bd00c37535385b8ed152
GoogleUtilities: c56430aef51a1aa57b25da78c3f8397e522c67b7
nanopb: 438bc412db1928dac798aa6fd75726007be04262
path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943
PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
Expand Down
58 changes: 54 additions & 4 deletions FireworkFlutterSDKSample/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,26 @@
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
4602E1F92BD24A9A00EE8F64 /* es */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = es; path = es.lproj/Main.strings; sourceTree = "<group>"; };
4602E1FA2BD24A9A00EE8F64 /* es */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = es; path = es.lproj/LaunchScreen.strings; sourceTree = "<group>"; };
4602E1FB2BD24AAE00EE8F64 /* es-MX */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "es-MX"; path = "es-MX.lproj/Main.strings"; sourceTree = "<group>"; };
4602E1FC2BD24AAE00EE8F64 /* es-MX */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "es-MX"; path = "es-MX.lproj/LaunchScreen.strings"; sourceTree = "<group>"; };
4602E1FD2BD24ACC00EE8F64 /* es-CO */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "es-CO"; path = "es-CO.lproj/Main.strings"; sourceTree = "<group>"; };
4602E1FE2BD24ACC00EE8F64 /* es-CO */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "es-CO"; path = "es-CO.lproj/LaunchScreen.strings"; sourceTree = "<group>"; };
4602E1FF2BD24ADC00EE8F64 /* ru */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ru; path = ru.lproj/Main.strings; sourceTree = "<group>"; };
4602E2002BD24ADD00EE8F64 /* ru */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ru; path = ru.lproj/LaunchScreen.strings; sourceTree = "<group>"; };
4602E2012BD24AF100EE8F64 /* pl */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pl; path = pl.lproj/Main.strings; sourceTree = "<group>"; };
4602E2022BD24AF200EE8F64 /* pl */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pl; path = pl.lproj/LaunchScreen.strings; sourceTree = "<group>"; };
4602E2032BD24B0900EE8F64 /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/Main.strings; sourceTree = "<group>"; };
4602E2042BD24B0900EE8F64 /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/LaunchScreen.strings; sourceTree = "<group>"; };
4602E2052BD24B1C00EE8F64 /* vi */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = vi; path = vi.lproj/Main.strings; sourceTree = "<group>"; };
4602E2062BD24B1C00EE8F64 /* vi */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = vi; path = vi.lproj/LaunchScreen.strings; sourceTree = "<group>"; };
4602E2072BD24B3000EE8F64 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/Main.strings; sourceTree = "<group>"; };
4602E2082BD24B3000EE8F64 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/LaunchScreen.strings; sourceTree = "<group>"; };
4602E2092BD24B4900EE8F64 /* ar-AE */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "ar-AE"; path = "ar-AE.lproj/Main.strings"; sourceTree = "<group>"; };
4602E20A2BD24B4900EE8F64 /* ar-AE */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "ar-AE"; path = "ar-AE.lproj/LaunchScreen.strings"; sourceTree = "<group>"; };
4602E20B2BD24B6E00EE8F64 /* ar-SA */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "ar-SA"; path = "ar-SA.lproj/Main.strings"; sourceTree = "<group>"; };
4602E20C2BD24B6E00EE8F64 /* ar-SA */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "ar-SA"; path = "ar-SA.lproj/LaunchScreen.strings"; sourceTree = "<group>"; };
46D7E9FE2B6CC9A3002F0D38 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -197,6 +217,16 @@
ar,
ja,
"pt-BR",
es,
"es-MX",
"es-CO",
ru,
pl,
de,
vi,
it,
"ar-AE",
"ar-SA",
);
mainGroup = 97C146E51CF9000F007C117D;
productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
Expand Down Expand Up @@ -352,6 +382,16 @@
8948DC6628801C6800C5A348 /* ar */,
8940FB7B2A13326A00733878 /* ja */,
8940FB7D2A13327400733878 /* pt-BR */,
4602E1F92BD24A9A00EE8F64 /* es */,
4602E1FB2BD24AAE00EE8F64 /* es-MX */,
4602E1FD2BD24ACC00EE8F64 /* es-CO */,
4602E1FF2BD24ADC00EE8F64 /* ru */,
4602E2012BD24AF100EE8F64 /* pl */,
4602E2032BD24B0900EE8F64 /* de */,
4602E2052BD24B1C00EE8F64 /* vi */,
4602E2072BD24B3000EE8F64 /* it */,
4602E2092BD24B4900EE8F64 /* ar-AE */,
4602E20B2BD24B6E00EE8F64 /* ar-SA */,
);
name = Main.storyboard;
sourceTree = "<group>";
Expand All @@ -363,6 +403,16 @@
8948DC6728801C6800C5A348 /* ar */,
8940FB7C2A13326A00733878 /* ja */,
8940FB7E2A13327400733878 /* pt-BR */,
4602E1FA2BD24A9A00EE8F64 /* es */,
4602E1FC2BD24AAE00EE8F64 /* es-MX */,
4602E1FE2BD24ACC00EE8F64 /* es-CO */,
4602E2002BD24ADD00EE8F64 /* ru */,
4602E2022BD24AF200EE8F64 /* pl */,
4602E2042BD24B0900EE8F64 /* de */,
4602E2062BD24B1C00EE8F64 /* vi */,
4602E2082BD24B3000EE8F64 /* it */,
4602E20A2BD24B4900EE8F64 /* ar-AE */,
4602E20C2BD24B6E00EE8F64 /* ar-SA */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
Expand Down Expand Up @@ -439,7 +489,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 2.8.1;
MARKETING_VERSION = 2.9.0;
PRODUCT_BUNDLE_IDENTIFIER = com.loopnow.fondor;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = fondor;
Expand Down Expand Up @@ -521,7 +571,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 2.8.1;
MARKETING_VERSION = 2.9.0;
PRODUCT_BUNDLE_IDENTIFIER = com.loopnow.fondor;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = fondor;
Expand Down Expand Up @@ -658,7 +708,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 2.8.1;
MARKETING_VERSION = 2.9.0;
PRODUCT_BUNDLE_IDENTIFIER = com.loopnow.fondor;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -687,7 +737,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 2.8.1;
MARKETING_VERSION = 2.9.0;
PRODUCT_BUNDLE_IDENTIFIER = com.loopnow.fondor;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = fondor;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions FireworkFlutterSDKSample/ios/Runner/de.lproj/Main.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions FireworkFlutterSDKSample/ios/Runner/es.lproj/Main.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions FireworkFlutterSDKSample/ios/Runner/it.lproj/Main.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions FireworkFlutterSDKSample/ios/Runner/pl.lproj/Main.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions FireworkFlutterSDKSample/ios/Runner/ru.lproj/Main.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions FireworkFlutterSDKSample/ios/Runner/vi.lproj/Main.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@ import '../utils/fw_example_logger_util.dart';
extension SDKInitEventExtension on SDKInitEvent {
void logMessage() {
if (error == null) {
FWExampleLoggerUtil.log("The SDK was initialized successfully.");
FWExampleLoggerUtil.log(
"The SDK was initialized successfully.",
shouldCache: true,
);
} else {
FWExampleLoggerUtil.log("Failed to initialize sdk. The error is $error.");
FWExampleLoggerUtil.log(
"Failed to initialize sdk. The error is $error.",
shouldCache: true,
);
}
}
}
Expand Down
Loading

0 comments on commit 10718cd

Please sign in to comment.