Skip to content

Commit

Permalink
added isPrebuilt flag support on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
ygit committed Aug 3, 2023
1 parent bf98a53 commit df64129
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,9 @@ public class SwiftHmssdkFlutterPlugin: NSObject, FlutterPlugin, HMSUpdateListene
}
let dartSDKVersion = arguments?["dart_sdk_version"] as! String
let hmsSDKVersion = arguments?["hmssdk_version"] as! String
let framework = HMSFrameworkInfo(type: .flutter, version: dartSDKVersion, sdkVersion: hmsSDKVersion)
let isPrebuilt = arguments?["is_prebuilt"] as? Bool ?? false

let framework = HMSFrameworkInfo(type: .flutter, version: dartSDKVersion, sdkVersion: hmsSDKVersion, isPrebuilt: isPrebuilt)
audioMixerSourceMap = [:]

hmsSDK = HMSSDK.build { [weak self] sdk in
Expand Down
4 changes: 2 additions & 2 deletions packages/hmssdk_flutter/lib/src/hmssdk.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ import '../hmssdk_flutter.dart';
/// Refer [HMSSDK quick start guide available here](https://www.100ms.live/docs/flutter/v2/guides/quickstart)
class HMSSDK {
final bool isPrebuilt;

/// The public interface of 100ms SDK. Create an instance of HMSSDK to start using the SDK.
///
/// Parameters:
Expand Down Expand Up @@ -1327,4 +1325,6 @@ class HMSSDK {
HMSLogSettings? hmsLogSettings;

bool previewState = false;

final bool isPrebuilt;
}

0 comments on commit df64129

Please sign in to comment.