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

Commit c12d18f

Browse files
author
Jeff Verkoeyen
committed
Merge branch 'release-candidate' into stable
2 parents 86f068b + 5827a20 commit c12d18f

File tree

7 files changed

+48
-9
lines changed

7 files changed

+48
-9
lines changed

.swift-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
# 1.1.3
2+
3+
This patch release resolves an Xcode 9 build warning.
4+
5+
## Source changes
6+
7+
* [Disable partial availability warning for CASpringAnimation. (#12)](https://github.com/material-motion/motion-animator-objc/commit/e720f9f02b5d0d9d96e3acbba641bac6fba87045) (featherless)
8+
9+
## Non-source changes
10+
11+
* [Update CocoaPods and ensure that warnings are enabled for the project.](https://github.com/material-motion/motion-animator-objc/commit/4a70beb710a492e3162da040ee1ce22caa99c01a) (Jeff Verkoeyen)
12+
* [Add explicit swift version file for CocoaPods.](https://github.com/material-motion/motion-animator-objc/commit/b1b53c3bf648d0fc8c0788d24eb91a92b87f2aba) (Jeff Verkoeyen)
13+
114
# 1.1.2
215

316
Added support for Xcode 7 builds.

MotionAnimator.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22
s.name = "MotionAnimator"
33
s.summary = "A Motion Animator creates performant, interruptible animations from motion specs."
4-
s.version = "1.1.2"
4+
s.version = "1.1.3"
55
s.authors = "The Material Motion Authors"
66
s.license = "Apache 2.0"
77
s.homepage = "https://github.com/material-motion/motion-animator-objc"

Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ post_install do |installer|
1616
installer.pods_project.targets.each do |target|
1717
target.build_configurations.each do |configuration|
1818
configuration.build_settings['SWIFT_VERSION'] = "3.0"
19-
if target.name.start_with?("MotionAnimator")
19+
if target.name.start_with?("Motion")
2020
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"
2121
end
2222
end

Podfile.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PODS:
22
- CatalogByConvention (2.1.1)
3-
- MotionAnimator (1.1.2):
3+
- MotionAnimator (1.1.3):
44
- MotionInterchange
55
- MotionInterchange (1.0.1)
66

@@ -10,13 +10,13 @@ DEPENDENCIES:
1010

1111
EXTERNAL SOURCES:
1212
MotionAnimator:
13-
:path: "./"
13+
:path: ./
1414

1515
SPEC CHECKSUMS:
1616
CatalogByConvention: c3a5319de04250a7cd4649127fcfca5fe3322a43
17-
MotionAnimator: 5a1893b58fcf7a4664d81d69c9a09a0078c67e06
17+
MotionAnimator: f241c4acd49dea603c3a2ea131727d57853a281b
1818
MotionInterchange: 7a7c355ba2ed5d36c5cf2ceb76cacd3d3680dbf5
1919

20-
PODFILE CHECKSUM: 32901d5f93aeff9d0bc9bb7dc89e4b9576f3ca35
20+
PODFILE CHECKSUM: 3c50d819e57d8329e39f3f5677139bf93ac34b8b
2121

22-
COCOAPODS: 1.2.1
22+
COCOAPODS: 1.3.1

examples/apps/Catalog/MotionAnimatorCatalog.xcodeproj/project.pbxproj

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,14 @@
359359
files = (
360360
);
361361
inputPaths = (
362+
"${SRCROOT}/../../../Pods/Target Support Files/Pods-UnitTests/Pods-UnitTests-frameworks.sh",
363+
"${BUILT_PRODUCTS_DIR}/MotionAnimator/MotionAnimator.framework",
364+
"${BUILT_PRODUCTS_DIR}/MotionInterchange/MotionInterchange.framework",
362365
);
363366
name = "[CP] Embed Pods Frameworks";
364367
outputPaths = (
368+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MotionAnimator.framework",
369+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MotionInterchange.framework",
365370
);
366371
runOnlyForDeploymentPostprocessing = 0;
367372
shellPath = /bin/sh;
@@ -389,13 +394,16 @@
389394
files = (
390395
);
391396
inputPaths = (
397+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
398+
"${PODS_ROOT}/Manifest.lock",
392399
);
393400
name = "[CP] Check Pods Manifest.lock";
394401
outputPaths = (
402+
"$(DERIVED_FILE_DIR)/Pods-MotionAnimatorCatalog-checkManifestLockResult.txt",
395403
);
396404
runOnlyForDeploymentPostprocessing = 0;
397405
shellPath = /bin/sh;
398-
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";
406+
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";
399407
showEnvVarsInLog = 0;
400408
};
401409
5C96FE89C18D5F2BCCB526AD /* [CP] Copy Pods Resources */ = {
@@ -419,9 +427,16 @@
419427
files = (
420428
);
421429
inputPaths = (
430+
"${SRCROOT}/../../../Pods/Target Support Files/Pods-MotionAnimatorCatalog/Pods-MotionAnimatorCatalog-frameworks.sh",
431+
"${BUILT_PRODUCTS_DIR}/CatalogByConvention/CatalogByConvention.framework",
432+
"${BUILT_PRODUCTS_DIR}/MotionAnimator/MotionAnimator.framework",
433+
"${BUILT_PRODUCTS_DIR}/MotionInterchange/MotionInterchange.framework",
422434
);
423435
name = "[CP] Embed Pods Frameworks";
424436
outputPaths = (
437+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CatalogByConvention.framework",
438+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MotionAnimator.framework",
439+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MotionInterchange.framework",
425440
);
426441
runOnlyForDeploymentPostprocessing = 0;
427442
shellPath = /bin/sh;
@@ -434,13 +449,16 @@
434449
files = (
435450
);
436451
inputPaths = (
452+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
453+
"${PODS_ROOT}/Manifest.lock",
437454
);
438455
name = "[CP] Check Pods Manifest.lock";
439456
outputPaths = (
457+
"$(DERIVED_FILE_DIR)/Pods-UnitTests-checkManifestLockResult.txt",
440458
);
441459
runOnlyForDeploymentPostprocessing = 0;
442460
shellPath = /bin/sh;
443-
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";
461+
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";
444462
showEnvVarsInLog = 0;
445463
};
446464
/* End PBXShellScriptBuildPhase section */

src/MDMMotionAnimator.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,17 @@ - (void)addCoreAnimationTracer:(void (^)(CALayer *, CAAnimation *))tracer {
177177
break;
178178

179179
case MDMMotionCurveTypeSpring: {
180+
#pragma clang diagnostic push
181+
// CASpringAnimation is a private API on iOS 8 - we're able to make use of it because we're
182+
// linking against the public API on iOS 9+.
183+
#pragma clang diagnostic ignored "-Wpartial-availability"
180184
CASpringAnimation *spring = [CASpringAnimation animation];
185+
#pragma clang diagnostic pop
181186
spring.mass = timing.curve.data[MDMSpringMotionCurveDataIndexMass];
182187
spring.stiffness = timing.curve.data[MDMSpringMotionCurveDataIndexTension];
183188
spring.damping = timing.curve.data[MDMSpringMotionCurveDataIndexFriction];
189+
190+
// This API is only available on iOS 9+
184191
if ([spring respondsToSelector:@selector(settlingDuration)]) {
185192
spring.duration = spring.settlingDuration;
186193
} else {

0 commit comments

Comments
 (0)