Skip to content

Commit

Permalink
split registerTexture logic & new example
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonWang9610 authored and shogo4405 committed Oct 12, 2023
1 parent 429d991 commit 9e4903c
Show file tree
Hide file tree
Showing 13 changed files with 1,149 additions and 28 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@
.idea/*
*.iml

.vscode/
**/.idea

# Files and directories created by pub
.dart_tool/
.packages
build/
**/.ruby-version


# Directory created by dartdoc
# If you don't generate documentation locally you can remove this line.
Expand Down
1 change: 0 additions & 1 deletion example/ios/.ruby-version

This file was deleted.

32 changes: 22 additions & 10 deletions example/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,27 @@ end

post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)

target.build_configurations.each do |config|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
'$(inherited)',
'PERMISSION_CAMERA=1',
'PERMISSION_MICROPHONE=1',
]
end

# target.build_configurations.each do |config|
# config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
# end
flutter_additional_ios_build_settings(target)
target.build_configurations.each do |config|
config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
xcconfig_path = config.base_configuration_reference.real_path
xcconfig = File.read(xcconfig_path)
xcconfig_mod = xcconfig.gsub(/DT_TOOLCHAIN_DIR/, "TOOLCHAIN_DIR")
File.open(xcconfig_path, "w") { |file| file << xcconfig_mod }

config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
'$(inherited)',
## dart: PermissionGroup.camera
'PERMISSION_CAMERA=1',

## dart: PermissionGroup.microphone
'PERMISSION_MICROPHONE=1',

]
end
flutter_additional_ios_build_settings(target)
end
end
4 changes: 2 additions & 2 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ SPEC CHECKSUMS:
Logboard: 3d98bb85de6a36b255ab637e8178eb5671c5c3a6
permission_handler_apple: e76247795d700c14ea09e3a2d8855d41ee80a2e6

PODFILE CHECKSUM: 1d4f584ecee31f81e6b1ae37103ab21a5f7aac05
PODFILE CHECKSUM: 6fd49e5c90a51be63a90793b37fb9104c2a1f489

COCOAPODS: 1.12.1
COCOAPODS: 1.12.0
4 changes: 2 additions & 2 deletions example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -604,14 +604,14 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = SUEQ2SZ2L5;
DEVELOPMENT_TEAM = 7365Z79CLK;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.haishinkit.haishinKitExample;
PRODUCT_BUNDLE_IDENTIFIER = com.haishinkit.haishinKitExample.local;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
Expand Down
8 changes: 6 additions & 2 deletions example/ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
<string></string>
<key>NSMicrophoneUsageDescription</key>
<string></string>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
Expand All @@ -57,7 +59,9 @@
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
<key>NSMicrophoneUsageDescription</key>
<string>To capture audio for live streaming</string>
<key>NSCameraUsageDescription</key>
<string>To capture profile photo please grant camera access</string>
</dict>
</plist>
Loading

0 comments on commit 9e4903c

Please sign in to comment.