Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
Fix compiler warnings due to misconfigured Podfile. (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
jverkoey committed Jul 25, 2017
1 parent efb99f3 commit 90a8913
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Podfile
Expand Up @@ -16,7 +16,7 @@ post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |configuration|
configuration.build_settings['SWIFT_VERSION'] = "3.0"
if target.name.start_with?("Material")
if target.name.start_with?("MotionAnimator")
configuration.build_settings['WARNING_CFLAGS'] ="$(inherited) -Wall -Wcast-align -Wconversion -Werror -Wextra -Wimplicit-atomic-properties -Wmissing-prototypes -Wno-sign-conversion -Wno-unused-parameter -Woverlength-strings -Wshadow -Wstrict-selector-match -Wundeclared-selector -Wunreachable-code"
end
end
Expand Down
2 changes: 1 addition & 1 deletion Podfile.lock
Expand Up @@ -17,6 +17,6 @@ SPEC CHECKSUMS:
MotionAnimator: 9d025cda7572737e5db5ca779eb28c767fe6cf45
MotionInterchange: 7a7c355ba2ed5d36c5cf2ceb76cacd3d3680dbf5

PODFILE CHECKSUM: 634239e7b183e669593b273198da9227ed207777
PODFILE CHECKSUM: 32901d5f93aeff9d0bc9bb7dc89e4b9576f3ca35

COCOAPODS: 1.2.1
4 changes: 2 additions & 2 deletions src/MDMMotionAnimator.m
Expand Up @@ -205,8 +205,8 @@ static void makeAnimationAdditive(CABasicAnimation *animation) {
});

if ([animation.toValue isKindOfClass:[NSNumber class]]) {
CGFloat currentValue = [animation.fromValue doubleValue];
CGFloat delta = currentValue - [animation.toValue doubleValue];
CGFloat currentValue = (CGFloat)[animation.fromValue doubleValue];
CGFloat delta = currentValue - (CGFloat)[animation.toValue doubleValue];
animation.fromValue = @(delta);
animation.toValue = @0;
animation.additive = true;
Expand Down

0 comments on commit 90a8913

Please sign in to comment.