-
-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for z-index / transparent background / stacking of UIViews issue #98
Changes from all commits
386d047
add44c5
fe3d681
0a69759
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
/node_modules/ | ||
/TODO | ||
/NO_GIT/ | ||
/lib/libWebRTC-LATEST-Universal-Release.a | ||
/lib/.DS_Store | ||
.DS_Store | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please remove these lines from the .gitignore. OS's specific files can be globally ignored by creating your own |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,6 +57,7 @@ module.exports = function (context) { | |
xcconfigPath = path.join(projectRoot, '/platforms/ios/cordova/build.xcconfig'), | ||
xcodeProjectName = projectName + '.xcodeproj', | ||
xcodeProjectPath = path.join(projectRoot, 'platforms', 'ios', xcodeProjectName, 'project.pbxproj'), | ||
MainViewControllerPath = path.join(projectRoot, 'platforms', 'ios', projectName, 'Classes', 'MainViewController.m'), | ||
swiftBridgingHead = projectName + BRIDGING_HEADER_END, | ||
swiftBridgingHeadXcode = '"' + swiftBridgingHead + '"', | ||
swiftOptions = [''], // <-- begin to file appending AFTER initial newline | ||
|
@@ -99,6 +100,13 @@ module.exports = function (context) { | |
fs.appendFileSync(xcconfigPath, swiftOptions.join('\n')); | ||
debug('file correctly fixed: ' + xcconfigPath); | ||
|
||
var result = fs.readFileSync(MainViewControllerPath, 'utf8') | ||
var rep ='theWebView.backgroundColor = [UIColor blackColor];'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is that unused There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That line should be stripped out, sorry about that. |
||
result = result.replace('theWebView.backgroundColor = [UIColor blackColor];', 'theWebView.opaque = NO;'); | ||
fs.writeFileSync(MainViewControllerPath, result, 'utf8'); | ||
debug('MainViewController.m correctly fixed: ' + xcconfigPath); | ||
|
||
|
||
// "project.pbxproj" | ||
// Parsing it | ||
xcodeProject.parse(function (error) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand why
libWebRTC-LATEST-Universal-Release.a
is removed from the repository.