Skip to content

Commit

Permalink
Updating to Swift5
Browse files Browse the repository at this point in the history
  • Loading branch information
Clément DEUST committed Mar 27, 2019
2 parents 0cce1ad + 1b247a7 commit 0193f87
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 20 deletions.
16 changes: 2 additions & 14 deletions Bolts.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,8 @@ Pod::Spec.new do |s|
s.tvos.deployment_target = '9.0'

s.subspec 'Tasks' do |ss|
ss.ios.source_files = 'Bolts/Common/*.[hm]'
ss.ios.public_header_files = 'Bolts/Common/*.h'

ss.osx.source_files = 'Bolts/Common/*.[hm]'
ss.osx.public_header_files = 'Bolts/Common/*.h'

ss.watchos.source_files = 'Bolts/Common/*.[hm]'
ss.watchos.public_header_files = 'Bolts/Common/*.h'

ss.tvos.source_files = 'Bolts/Common/*.[hm]'
ss.tvos.public_header_files = 'Bolts/Common/*.h'
ss.source_files = 'Bolts/Common/*.[hm]'
ss.public_header_files = 'Bolts/Common/*.h'
end

s.subspec 'AppLinks' do |ss|
Expand All @@ -39,8 +30,5 @@ Pod::Spec.new do |s|

ss.ios.source_files = 'Bolts/iOS/**/*.[hm]'
ss.ios.public_header_files = 'Bolts/iOS/*.h'
ss.osx.source_files = ''
ss.watchos.source_files = ''
ss.tvos.source_files = ''
end
end
6 changes: 3 additions & 3 deletions Bolts/iOS/BFAppLinkReturnToRefererController.m
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ - (void)statusBarFrameWillChange:(NSNotification *)notification {
if (CGRectGetHeight(newFrame) == 40) {
UIViewAnimationOptions options = UIViewAnimationOptionBeginFromCurrentState;
[UIView animateWithDuration:kBFViewAnimationDuration delay:0.0 options:options animations:^{
self->_view.frame = CGRectMake(0.0, 0.0, CGRectGetWidth(_view.bounds), 0.0);
self->_view.frame = CGRectMake(0.0, 0.0, CGRectGetWidth(self->_view.bounds), 0.0);
} completion:nil];
}
}
Expand All @@ -141,7 +141,7 @@ - (void)statusBarFrameDidChange:(NSNotification *)notification {
CGRect newFrame;
[rectValue getValue:&newFrame];

if (_navigationController && !_view.closed) {
if (self->_navigationController && !self->_view.closed) {
if (CGRectGetHeight(newFrame) == 40) {
UIViewAnimationOptions options = UIViewAnimationOptionBeginFromCurrentState;
[UIView animateWithDuration:kBFViewAnimationDuration delay:0.0 options:options animations:^{
Expand Down Expand Up @@ -206,7 +206,7 @@ - (void)closeViewAnimated:(BOOL)animated explicitlyClosed:(BOOL)explicitlyClosed
} else {
closer();
if (explicitlyClosed) {
_view.closed = YES;
self->_view.closed = YES;
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions scripts/build_framework.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ progress_message Building Framework.
# -----------------------------------------------------------------------------
# Compile binaries
#
test -d "$BOLTS_BUILD" \
|| mkdir -p "$BOLTS_BUILD" \
rm -rf "$BOLTS_BUILD"
mkdir -p "$BOLTS_BUILD" \
|| die "Could not create directory $BOLTS_BUILD"

test -d "$BOLTS_IOS_BUILD" \
Expand Down Expand Up @@ -120,7 +120,7 @@ function xcode_build_target() {
-configuration "${2}" \
SYMROOT="$BOLTS_BUILD" \
CURRENT_PROJECT_VERSION="$BOLTS_VERSION_FULL" \
clean build \
build \
|| die "Xcode build failed for platform: ${1}."
}

Expand Down

0 comments on commit 0193f87

Please sign in to comment.