diff --git a/App.tsx b/App.tsx index 73819a7..8631485 100644 --- a/App.tsx +++ b/App.tsx @@ -1,10 +1,8 @@ import 'react-native-gesture-handler'; import * as React from 'react'; -import { Routes } from './react-native/app/routes/component'; -import { PortalContextContainer } from './react-native/app/contexts/portals/container'; -import { LogBox } from 'react-native'; -import { Bootstrap } from './react-native/bootstrap/start/component'; +import {LogBox} from 'react-native'; +import {Bootstrap} from './react-native/bootstrap/start/component'; import FontAwesomeIcon from 'react-native-vector-icons/FontAwesome5'; @@ -13,17 +11,14 @@ FontAwesomeIcon.getStyledIconSet('light').loadFont(); FontAwesomeIcon.getStyledIconSet('regular').loadFont(); FontAwesomeIcon.getStyledIconSet('solid').loadFont(); - export default function App() { - React.useEffect(()=>{ + React.useEffect(() => { LogBox.ignoreAllLogs(); - }, []) + }, []); return ( - <> - - - + <> + - ); + ); } diff --git a/ios/AppDelegate.swift b/ios/AppDelegate.swift index 27874c9..c856614 100644 --- a/ios/AppDelegate.swift +++ b/ios/AppDelegate.swift @@ -25,7 +25,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, RCTBridgeDelegate { self.window?.rootViewController = rootViewController self.window?.makeKeyAndVisible() - BigBlueButtonSDK.start() + BigBlueButtonSDK.initialize(broadcastExtensionBundleId: Constants.broadcastExtensionBundleId, appGroupName: Constants.appGroupName) return true } diff --git a/ios/BigBlueButton Broadcast/BigBlueButton Broadcast.entitlements b/ios/BigBlueButton Broadcast/BigBlueButton Broadcast.entitlements new file mode 100644 index 0000000..6a1a5f0 --- /dev/null +++ b/ios/BigBlueButton Broadcast/BigBlueButton Broadcast.entitlements @@ -0,0 +1,10 @@ + + + + + com.apple.security.application-groups + + group.org.bigbluebutton.mobile + + + diff --git a/ios/BigBlueButton Broadcast/SampleHandler.swift b/ios/BigBlueButton Broadcast/SampleHandler.swift index 6d28ac9..86d1295 100644 --- a/ios/BigBlueButton Broadcast/SampleHandler.swift +++ b/ios/BigBlueButton Broadcast/SampleHandler.swift @@ -1,5 +1,8 @@ import bigbluebutton_mobile_sdk_common class SampleHandler: BBBSampleHandler { - + override func broadcastStarted(withSetupInfo setupInfo: [String : NSObject]?) { + super.setAppGroupName(appGroupName: Constants.appGroupName) + super.broadcastStarted(withSetupInfo: setupInfo) + } } diff --git a/ios/BigBlueButton.xcodeproj/project.pbxproj b/ios/BigBlueButton.xcodeproj/project.pbxproj index 9882c7e..db7bcb3 100644 --- a/ios/BigBlueButton.xcodeproj/project.pbxproj +++ b/ios/BigBlueButton.xcodeproj/project.pbxproj @@ -7,26 +7,19 @@ objects = { /* Begin PBXBuildFile section */ - 00E356F31AD99517003FC87E /* BigBlueButtonTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* BigBlueButtonTests.m */; }; 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 6172F2D35A4C3AA820D92908 /* libPods-BigBlueButton.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6423831EA8574132BED9D8CC /* libPods-BigBlueButton.a */; }; - 7EF68E3733C33B6898317E18 /* libPods-BigBlueButton-BigBlueButtonTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ABFE59519B596E51CEFDCCC0 /* libPods-BigBlueButton-BigBlueButtonTests.a */; }; 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; D9268FF3D2DA9D8304F931DB /* libPods-BigBlueButton Broadcast.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 38E575479D3F0ED342457EBF /* libPods-BigBlueButton Broadcast.a */; }; F121360B27D1904500E25EBB /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = F121360A27D1904500E25EBB /* AppDelegate.swift */; }; + F1CF7F4C27D1B62E00E0C7F1 /* Constants.swift in Sources */ = {isa = PBXBuildFile; fileRef = F1CF7F4B27D1B62E00E0C7F1 /* Constants.swift */; }; + F1CF7F4E27D1B63900E0C7F1 /* Constants.swift in Sources */ = {isa = PBXBuildFile; fileRef = F1CF7F4D27D1B63900E0C7F1 /* Constants.swift */; }; F1F618E927BCA28B0085BEDE /* ReplayKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F1F618E827BCA28B0085BEDE /* ReplayKit.framework */; }; F1F618EC27BCA28B0085BEDE /* SampleHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = F1F618EB27BCA28B0085BEDE /* SampleHandler.swift */; }; F1F618F027BCA28B0085BEDE /* BigBlueButton Broadcast.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = F1F618E727BCA28B0085BEDE /* BigBlueButton Broadcast.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ - 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 13B07F861A680F5B00A75B9A; - remoteInfo = BigBlueButton; - }; F1F618EE27BCA28B0085BEDE /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; @@ -51,7 +44,6 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ - 00E356EE1AD99517003FC87E /* BigBlueButtonTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = BigBlueButtonTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 00E356F21AD99517003FC87E /* BigBlueButtonTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BigBlueButtonTests.m; sourceTree = ""; }; 13B07F961A680F5B00A75B9A /* BigBlueButton.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = BigBlueButton.app; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -70,6 +62,10 @@ ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; F121360927D1904500E25EBB /* swift-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "swift-Bridging-Header.h"; sourceTree = ""; }; F121360A27D1904500E25EBB /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + F1CF7F4B27D1B62E00E0C7F1 /* Constants.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Constants.swift; sourceTree = ""; }; + F1CF7F4D27D1B63900E0C7F1 /* Constants.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Constants.swift; sourceTree = SOURCE_ROOT; }; + F1CF7F4F27D1B7E800E0C7F1 /* BigBlueButton.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; name = BigBlueButton.entitlements; path = BigBlueButton/BigBlueButton.entitlements; sourceTree = ""; }; + F1CF7F5027D1B80200E0C7F1 /* BigBlueButton Broadcast.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = "BigBlueButton Broadcast.entitlements"; sourceTree = ""; }; F1F618E727BCA28B0085BEDE /* BigBlueButton Broadcast.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "BigBlueButton Broadcast.appex"; sourceTree = BUILT_PRODUCTS_DIR; }; F1F618E827BCA28B0085BEDE /* ReplayKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ReplayKit.framework; path = System/Library/Frameworks/ReplayKit.framework; sourceTree = SDKROOT; }; F1F618EB27BCA28B0085BEDE /* SampleHandler.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SampleHandler.swift; sourceTree = ""; }; @@ -77,14 +73,6 @@ /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ - 00E356EB1AD99517003FC87E /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 7EF68E3733C33B6898317E18 /* libPods-BigBlueButton-BigBlueButtonTests.a in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; @@ -132,10 +120,12 @@ 13B07FAE1A68108700A75B9A /* BigBlueButton */ = { isa = PBXGroup; children = ( + F1CF7F4F27D1B7E800E0C7F1 /* BigBlueButton.entitlements */, + F1CF7F4B27D1B62E00E0C7F1 /* Constants.swift */, + F121360A27D1904500E25EBB /* AppDelegate.swift */, 13B07FB51A68108700A75B9A /* Images.xcassets */, 13B07FB61A68108700A75B9A /* Info.plist */, 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */, - F121360A27D1904500E25EBB /* AppDelegate.swift */, F121360927D1904500E25EBB /* swift-Bridging-Header.h */, ); name = BigBlueButton; @@ -181,7 +171,6 @@ isa = PBXGroup; children = ( 13B07F961A680F5B00A75B9A /* BigBlueButton.app */, - 00E356EE1AD99517003FC87E /* BigBlueButtonTests.xctest */, F1F618E727BCA28B0085BEDE /* BigBlueButton Broadcast.appex */, ); name = Products; @@ -203,6 +192,8 @@ F1F618EA27BCA28B0085BEDE /* BigBlueButton Broadcast */ = { isa = PBXGroup; children = ( + F1CF7F5027D1B80200E0C7F1 /* BigBlueButton Broadcast.entitlements */, + F1CF7F4D27D1B63900E0C7F1 /* Constants.swift */, F1F618EB27BCA28B0085BEDE /* SampleHandler.swift */, F1F618ED27BCA28B0085BEDE /* Info.plist */, ); @@ -212,27 +203,6 @@ /* End PBXGroup section */ /* Begin PBXNativeTarget section */ - 00E356ED1AD99517003FC87E /* BigBlueButtonTests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "BigBlueButtonTests" */; - buildPhases = ( - A130D646172E58E1D159D8F2 /* [CP] Check Pods Manifest.lock */, - 00E356EA1AD99517003FC87E /* Sources */, - 00E356EB1AD99517003FC87E /* Frameworks */, - 00E356EC1AD99517003FC87E /* Resources */, - 4E62BDF20514810D028A5FBF /* [CP] Copy Pods Resources */, - 134680750A7B8E3E990AA15E /* [CP] Embed Pods Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 00E356F51AD99517003FC87E /* PBXTargetDependency */, - ); - name = BigBlueButtonTests; - productName = BigBlueButtonTests; - productReference = 00E356EE1AD99517003FC87E /* BigBlueButtonTests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; 13B07F861A680F5B00A75B9A /* BigBlueButton */ = { isa = PBXNativeTarget; buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "BigBlueButton" */; @@ -284,10 +254,6 @@ LastSwiftUpdateCheck = 1320; LastUpgradeCheck = 1210; TargetAttributes = { - 00E356ED1AD99517003FC87E = { - CreatedOnToolsVersion = 6.2; - TestTargetID = 13B07F861A680F5B00A75B9A; - }; 13B07F861A680F5B00A75B9A = { LastSwiftMigration = 1320; }; @@ -310,20 +276,12 @@ projectRoot = ""; targets = ( 13B07F861A680F5B00A75B9A /* BigBlueButton */, - 00E356ED1AD99517003FC87E /* BigBlueButtonTests */, F1F618E627BCA28B0085BEDE /* BigBlueButton Broadcast */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ - 00E356EC1AD99517003FC87E /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; 13B07F8E1A680F5B00A75B9A /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; @@ -357,23 +315,6 @@ shellPath = /bin/sh; shellScript = "set -e\n\nexport NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh\n"; }; - 134680750A7B8E3E990AA15E /* [CP] Embed Pods Frameworks */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-BigBlueButton-BigBlueButtonTests/Pods-BigBlueButton-BigBlueButtonTests-frameworks-${CONFIGURATION}-input-files.xcfilelist", - ); - name = "[CP] Embed Pods Frameworks"; - outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-BigBlueButton-BigBlueButtonTests/Pods-BigBlueButton-BigBlueButtonTests-frameworks-${CONFIGURATION}-output-files.xcfilelist", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-BigBlueButton-BigBlueButtonTests/Pods-BigBlueButton-BigBlueButtonTests-frameworks.sh\"\n"; - showEnvVarsInLog = 0; - }; 3E482C27206C4DEF2FE45063 /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; @@ -396,23 +337,6 @@ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; - 4E62BDF20514810D028A5FBF /* [CP] Copy Pods Resources */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-BigBlueButton-BigBlueButtonTests/Pods-BigBlueButton-BigBlueButtonTests-resources-${CONFIGURATION}-input-files.xcfilelist", - ); - name = "[CP] Copy Pods Resources"; - outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-BigBlueButton-BigBlueButtonTests/Pods-BigBlueButton-BigBlueButtonTests-resources-${CONFIGURATION}-output-files.xcfilelist", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-BigBlueButton-BigBlueButtonTests/Pods-BigBlueButton-BigBlueButtonTests-resources.sh\"\n"; - showEnvVarsInLog = 0; - }; 796B413234ABE3905B9BBA35 /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; @@ -452,28 +376,6 @@ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-BigBlueButton/Pods-BigBlueButton-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; - A130D646172E58E1D159D8F2 /* [CP] Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputFileListPaths = ( - ); - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-BigBlueButton-BigBlueButtonTests-checkManifestLockResult.txt", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; - showEnvVarsInLog = 0; - }; ADC9DDC32298B72B3CF5DC8E /* [CP] Copy Pods Resources */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; @@ -513,19 +415,12 @@ /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ - 00E356EA1AD99517003FC87E /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 00E356F31AD99517003FC87E /* BigBlueButtonTests.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; 13B07F871A680F5B00A75B9A /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( F121360B27D1904500E25EBB /* AppDelegate.swift in Sources */, + F1CF7F4C27D1B62E00E0C7F1 /* Constants.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -534,17 +429,13 @@ buildActionMask = 2147483647; files = ( F1F618EC27BCA28B0085BEDE /* SampleHandler.swift in Sources */, + F1CF7F4E27D1B63900E0C7F1 /* Constants.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ - 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 13B07F861A680F5B00A75B9A /* BigBlueButton */; - targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; - }; F1F618EF27BCA28B0085BEDE /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = F1F618E627BCA28B0085BEDE /* BigBlueButton Broadcast */; @@ -553,59 +444,6 @@ /* End PBXTargetDependency section */ /* Begin XCBuildConfiguration section */ - 00E356F61AD99517003FC87E /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 6C97AB639B58BBB4B15BBE30 /* Pods-BigBlueButton-BigBlueButtonTests.debug.xcconfig */; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - BUNDLE_LOADER = "$(TEST_HOST)"; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - INFOPLIST_FILE = BigBlueButtonTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - OTHER_LDFLAGS = ( - "-ObjC", - "-lc++", - "$(inherited)", - ); - PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; - PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/BigBlueButton.app/BigBlueButton"; - }; - name = Debug; - }; - 00E356F71AD99517003FC87E /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 1D0AE47A65C8663E3B452821 /* Pods-BigBlueButton-BigBlueButtonTests.release.xcconfig */; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - BUNDLE_LOADER = "$(TEST_HOST)"; - COPY_PHASE_STRIP = NO; - INFOPLIST_FILE = BigBlueButtonTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - OTHER_LDFLAGS = ( - "-ObjC", - "-lc++", - "$(inherited)", - ); - PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; - PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/BigBlueButton.app/BigBlueButton"; - }; - name = Release; - }; 13B07F941A680F5B00A75B9A /* Debug */ = { isa = XCBuildConfiguration; baseConfigurationReference = C0A881CF5CF3F2B244570E2A /* Pods-BigBlueButton.debug.xcconfig */; @@ -613,7 +451,9 @@ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = BigBlueButton/BigBlueButton.entitlements; CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = N69T9W23TC; ENABLE_BITCODE = NO; INFOPLIST_FILE = BigBlueButton/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 14.7; @@ -642,7 +482,9 @@ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = BigBlueButton/BigBlueButton.entitlements; CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = N69T9W23TC; INFOPLIST_FILE = BigBlueButton/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 14.7; LD_RUNPATH_SEARCH_PATHS = ( @@ -795,9 +637,11 @@ CLANG_ENABLE_OBJC_WEAK = YES; CLANG_WARN_DOCUMENTATION_COMMENTS = YES; CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_ENTITLEMENTS = "BigBlueButton Broadcast/BigBlueButton Broadcast.entitlements"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEBUG_INFORMATION_FORMAT = dwarf; + DEVELOPMENT_TEAM = N69T9W23TC; GCC_C_LANGUAGE_STANDARD = gnu11; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "BigBlueButton Broadcast/Info.plist"; @@ -833,10 +677,12 @@ CLANG_ENABLE_OBJC_WEAK = YES; CLANG_WARN_DOCUMENTATION_COMMENTS = YES; CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_ENTITLEMENTS = "BigBlueButton Broadcast/BigBlueButton Broadcast.entitlements"; CODE_SIGN_STYLE = Automatic; COPY_PHASE_STRIP = NO; CURRENT_PROJECT_VERSION = 1; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + DEVELOPMENT_TEAM = N69T9W23TC; GCC_C_LANGUAGE_STANDARD = gnu11; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "BigBlueButton Broadcast/Info.plist"; @@ -864,15 +710,6 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ - 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "BigBlueButtonTests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 00E356F61AD99517003FC87E /* Debug */, - 00E356F71AD99517003FC87E /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "BigBlueButton" */ = { isa = XCConfigurationList; buildConfigurations = ( diff --git a/ios/BigBlueButton/BigBlueButton.entitlements b/ios/BigBlueButton/BigBlueButton.entitlements new file mode 100644 index 0000000..6a1a5f0 --- /dev/null +++ b/ios/BigBlueButton/BigBlueButton.entitlements @@ -0,0 +1,10 @@ + + + + + com.apple.security.application-groups + + group.org.bigbluebutton.mobile + + + diff --git a/ios/Constants.swift b/ios/Constants.swift new file mode 100644 index 0000000..e71892f --- /dev/null +++ b/ios/Constants.swift @@ -0,0 +1,10 @@ +import Foundation + +class Constants { + // This is used to filter the list of broadcast applications offered to the user (it must match with bundle id of the broadcast extension target) + public static var broadcastExtensionBundleId="org.bigbluebutton.mobile.BigBlueButton-Broadcast"; + + // This is used to allow both applications (main and broadcast) to share information + public static var appGroupName="group.org.bigbluebutton.mobile"; + +} diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 674007e..7b88598 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -1,8 +1,8 @@ PODS: - - bigbluebutton-mobile-sdk (0.1.7): + - bigbluebutton-mobile-sdk (0.1.8): - React-Core - WebRTC-lib - - bigbluebutton-mobile-sdk-common (0.1.7): + - bigbluebutton-mobile-sdk-common (0.1.8): - WebRTC-lib - boost (1.76.0) - DoubleConversion (1.1.6) @@ -471,8 +471,8 @@ EXTERNAL SOURCES: :path: "../node_modules/react-native/ReactCommon/yoga" SPEC CHECKSUMS: - bigbluebutton-mobile-sdk: 21fd7113a5bf0d791376af62fb480af997cea8ec - bigbluebutton-mobile-sdk-common: 77be58379eee95b767c160b9d09ffb7ce39983d0 + bigbluebutton-mobile-sdk: d8a1abd3059fcacfdd1a1edd3fb1153076a1b0a3 + bigbluebutton-mobile-sdk-common: ce78a6beb967b562b2fc7c6ea1570e6abf94a4ed boost: a7c83b31436843459a1961bfd74b96033dc77234 DoubleConversion: 831926d9b8bf8166fd87886c4abab286c2422662 FBLazyVector: 244195e30d63d7f564c55da4410b9a24e8fbceaa @@ -491,8 +491,8 @@ SPEC CHECKSUMS: React-jsiexecutor: 52beb652bbc61201bd70cbe4f0b8edb607e8da4f React-jsinspector: 595f76eba2176ebd8817a1fffd47b84fbdab9383 React-logger: 23de8ea0f44fa00ee77e96060273225607fd4d78 - react-native-safe-area-context: 114e9a74df2643012b9d6cc1460b94f3b6a90780 - react-native-webview: 380c1a03ec94b7ed764dac8db1e7c9952d08c93a + react-native-safe-area-context: 1bda964fb473c30913cd44ebe1ebd2a2574107fa + react-native-webview: 77ee909f73e1fcab76380f7dcc3344771fe61bd8 React-perflogger: 3c9bb7372493e49036f07a82c44c8cf65cbe88db React-RCTActionSheet: 052606483045a408693aa7e864410b4a052f541a React-RCTAnimation: 08d4cac13222bb1348c687a0158dfd3b577cdb63 @@ -505,9 +505,9 @@ SPEC CHECKSUMS: React-RCTVibration: 99c7f67fba7a5ade46e98e870c6ff2444484f995 React-runtimeexecutor: 2450b43df7ffe8e805a0b3dcb2abd4282f1f1836 ReactCommon: d98c6c96b567f9b3a15f9fd4cc302c1eda8e3cf2 - ReactNativeLocalization: 076497d7ca70341c751cd3b3e7c86187332a182d - RNCAsyncStorage: b49b4e38a1548d03b74b30e558a1d18465b94be7 - RNCMaskedView: 0e1bc4bfa8365eba5fbbb71e07fbdc0555249489 + ReactNativeLocalization: be60e3a0e6e8db88d9f8190719ffb75e1cdab22a + RNCAsyncStorage: c0754b486fec6e532d358bfd7337cb45c8d2c897 + RNCMaskedView: f127cd9652acfa31b91dcff613e07ba18b774db6 RNGestureHandler: 77d59828d40838c9fabb76a12d2d0a80c006906f RNLanguages: 962e562af0d34ab1958d89bcfdb64fafc37c513e RNReanimated: 32c91e28f5780937b8efc07ddde1bab8d373fe0b diff --git a/package.json b/package.json index 1b4adf4..8b2eb8e 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "@react-navigation/native": "^6.0.8", "@react-navigation/native-stack": "^6.5.0", "@types/styled-components-react-native": "^5.1.3", - "bigbluebutton-mobile-sdk": "^0.1.7", + "bigbluebutton-mobile-sdk": "^0.1.8", "i18next": "^21.6.12", "i18next-browser-languagedetector": "^6.1.3", "react": "17.0.2", diff --git a/react-native/bootstrap/sdk/container.tsx b/react-native/bootstrap/sdk/container.tsx index 2f2552c..aa5becf 100644 --- a/react-native/bootstrap/sdk/container.tsx +++ b/react-native/bootstrap/sdk/container.tsx @@ -1,32 +1,27 @@ -import { BigbluebuttonMobile } from 'bigbluebutton-mobile-sdk' -import React from 'react' +import {BigbluebuttonMobile} from 'bigbluebutton-mobile-sdk'; +import React from 'react'; import {StyleSheet, View, Platform} from 'react-native'; type ISdkContainer = { - url: string - props?: any + url: string; + props?: any; +}; +export default function SdkContainer({url}: ISdkContainer) { + return ( + <> + + + + + ); } -export default function SdkContainer({url, ...props}: ISdkContainer){ - return ( - <> - - - - - ) -} - const styles = StyleSheet.create({ - container: { - flex: 1, - flexDirection: 'row', - }, - bbb: { - marginTop: Platform.select({ios: 20, android: 0}), - flex: 1, - }, -}); \ No newline at end of file + container: { + flex: 1, + flexDirection: 'row', + }, + bbb: { + marginTop: Platform.select({ios: 20, android: 0}), + flex: 1, + }, +}); diff --git a/yarn.lock b/yarn.lock index 9f0964a..59021cd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2165,10 +2165,10 @@ big-integer@1.6.x: resolved "https://registry.yarnpkg.com/big-integer/-/big-integer-1.6.51.tgz#0df92a5d9880560d3ff2d5fd20245c889d130686" integrity sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg== -bigbluebutton-mobile-sdk@^0.1.7: - version "0.1.7" - resolved "https://registry.yarnpkg.com/bigbluebutton-mobile-sdk/-/bigbluebutton-mobile-sdk-0.1.7.tgz#a2bd573e632635a8f9933344be4ffda8ea990a83" - integrity sha512-rCrQ13goukMSxUyoqpsQTVLaAr3kK/oZsHHk0cdrthrVIi16XPSzSk3xe/lR5W9iI5cLwZPrel45v2gWI0VwYA== +bigbluebutton-mobile-sdk@^0.1.8: + version "0.1.8" + resolved "https://registry.yarnpkg.com/bigbluebutton-mobile-sdk/-/bigbluebutton-mobile-sdk-0.1.8.tgz#3be60986629440c1c68ff3bd25c1f1ec3ded4bfb" + integrity sha512-fGzM4taZRgA2U/nTVVCU7g657zLKb2E74h6SQ0eCGJCz1Bi2BiiT+Dg8bYO244IpCUEs4nL+ma3ZGWLYrFZ7vQ== dependencies: react-native-webview "^11.17.2"