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

Commit 78ac32b

Browse files
author
Jeff Verkoeyen
committed
Merge branch 'release-candidate' into stable
2 parents 994fd02 + 02d98df commit 78ac32b

File tree

9 files changed

+111
-58
lines changed

9 files changed

+111
-58
lines changed

.kokoro

Lines changed: 38 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,43 @@ set -e
2020
# Display commands to stderr.
2121
set -x
2222

23-
KOKORO_RUNNER_VERSION="v3.*"
23+
BAZEL_VERSION="0.20.0"
24+
IOS_MINIMUM_OS="8.0"
25+
IOS_CPUS="i386,x86_64"
26+
27+
get_xcode_version_from_path() {
28+
path="$1"
29+
cat "$path/version.plist" \
30+
| grep "CFBundleShortVersionString" -A1 \
31+
| grep string \
32+
| cut -d'>' -f2 \
33+
| cut -d'<' -f1
34+
}
35+
36+
run_bazel() {
37+
echo "Running bazel builds..."
38+
39+
if [ -n "$KOKORO_BUILD_NUMBER" ]; then
40+
bazel version
41+
use_bazel.sh "$BAZEL_VERSION"
42+
bazel version
43+
44+
# Move into our cloned repo
45+
cd github/repo
46+
fi
47+
48+
# Run against whichever Xcode is currently selected.
49+
selected_xcode_developer_path=$(xcode-select -p)
50+
selected_xcode_contents_path=$(dirname "$selected_xcode_developer_path")
51+
52+
xcode_version=$(get_xcode_version_from_path "$selected_xcode_contents_path")
53+
54+
bazel clean
55+
bazel test //... \
56+
--xcode_version "$xcode_version" \
57+
--ios_minimum_os="$IOS_MINIMUM_OS" \
58+
--ios_multi_cpus="$IOS_CPUS"
59+
}
2460

2561
fix_bazel_imports() {
2662
if [ -z "$KOKORO_BUILD_NUMBER" ]; then
@@ -39,18 +75,7 @@ fix_bazel_imports() {
3975
trap reset_imports EXIT
4076
}
4177

42-
if [ ! -d .kokoro-ios-runner ]; then
43-
git clone https://github.com/material-foundation/kokoro-ios-runner.git .kokoro-ios-runner
44-
fi
45-
46-
pushd .kokoro-ios-runner
47-
git fetch > /dev/null
48-
TAG=$(git tag --sort=v:refname -l "$KOKORO_RUNNER_VERSION" | tail -n1)
49-
git checkout "$TAG" > /dev/null
50-
popd
51-
5278
fix_bazel_imports
53-
54-
./.kokoro-ios-runner/bazel.sh test //:UnitTests 8.1.0
79+
run_bazel
5580

5681
echo "Success!"

.travis.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,23 @@
11
language: objective-c
2-
osx_image: xcode8.1
32
sudo: false
3+
env:
4+
global:
5+
- LC_CTYPE=en_US.UTF-8
6+
- LANG=en_US.UTF-8
7+
- LANGUAGE=en_US.UTF-8
8+
matrix:
9+
include:
10+
- osx_image: xcode9.2
11+
env: COVERAGE=code_coverage SDK="iphonesimulator11.2" DESTINATION="name=iPhone 6s,OS=11.2"
12+
- osx_image: xcode9.2
13+
env: SDK="iphonesimulator11.2" DESTINATION="name=iPhone 6s,OS=10.3.1"
14+
- osx_image: xcode9.2
15+
env: SDK="iphonesimulator11.2" DESTINATION="name=iPhone 6s,OS=9.3"
416
before_install:
517
- gem install cocoapods --no-rdoc --no-ri --no-document --quiet
618
- pod install --repo-update
719
script:
820
- set -o pipefail
9-
- xcodebuild build -workspace MotionTransitioning.xcworkspace -scheme TransitionsCatalog -sdk "iphonesimulator10.1" -destination "name=iPhone 6s,OS=10.1" ONLY_ACTIVE_ARCH=YES | xcpretty -c;
21+
- xcodebuild test -workspace MotionTransitioning.xcworkspace -scheme TransitionsCatalog -sdk "$SDK" -destination "$DESTINATION" ONLY_ACTIVE_ARCH=YES | xcpretty -c;
1022
after_success:
1123
- bash <(curl -s https://codecov.io/bash)

BUILD

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ licenses(["notice"]) # Apache 2.0
1919

2020
exports_files(["LICENSE"])
2121

22+
load("@build_bazel_rules_apple//apple:ios.bzl", "ios_ui_test")
23+
load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library")
2224
load("@bazel_ios_warnings//:strict_warnings_objc_library.bzl", "strict_warnings_objc_library")
2325

2426
strict_warnings_objc_library(
@@ -36,8 +38,6 @@ strict_warnings_objc_library(
3638
visibility = ["//visibility:public"],
3739
)
3840

39-
load("@build_bazel_rules_apple//apple:swift.bzl", "swift_library")
40-
4141
swift_library(
4242
name = "UnitTestsSwiftLib",
4343
srcs = glob([
@@ -57,14 +57,13 @@ objc_library(
5757
visibility = ["//visibility:private"],
5858
)
5959

60-
load("@build_bazel_rules_apple//apple:ios.bzl", "ios_unit_test")
61-
62-
ios_unit_test(
60+
ios_ui_test(
6361
name = "UnitTests",
6462
deps = [
6563
":UnitTestsLib",
6664
":UnitTestsSwiftLib"
6765
],
66+
test_host = "@build_bazel_rules_apple//apple/testing/default_host/ios",
6867
minimum_os_version = "8.0",
6968
timeout = "short",
7069
visibility = ["//visibility:private"],

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# 6.0.0
2+
3+
This major release upgrades the bazel dependencies and workspace. This change is breaking for anyone
4+
using bazel to build this library. In order to use this library with bazel, you will also need to
5+
upgrade your workspace versions to match the ones now used in this library's `WORKSPACE` file.
6+
7+
## Source changes
8+
9+
* [Add missing import (#60)](https://github.com/material-motion/motion-transitioning-objc/commit/7708bb26c383b88f79a60a8737a26d12cdea498d) (Louis Romero)
10+
11+
## Non-source changes
12+
13+
* [Update bazel workspace to latest versions. (#63)](https://github.com/material-motion/motion-transitioning-objc/commit/09350359468b6e5de09634a67130491761d8fffc) (featherless)
14+
115
# 5.0.0
216

317
This major change introduces a breaking API change for Swift clients.

MotionTransitioning.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 = "MotionTransitioning"
33
s.summary = "Light-weight API for building UIViewController transitions."
4-
s.version = "5.0.0"
4+
s.version = "6.0.0"
55
s.authors = "The Material Motion Authors"
66
s.license = "Apache 2.0"
77
s.homepage = "https://github.com/material-motion/transitioning-objc"

Podfile.lock

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,18 @@ DEPENDENCIES:
66
- CatalogByConvention
77
- MotionTransitioning (from `./`)
88

9+
SPEC REPOS:
10+
https://github.com/cocoapods/specs.git:
11+
- CatalogByConvention
12+
913
EXTERNAL SOURCES:
1014
MotionTransitioning:
11-
:path: ./
15+
:path: "./"
1216

1317
SPEC CHECKSUMS:
1418
CatalogByConvention: c3a5319de04250a7cd4649127fcfca5fe3322a43
15-
MotionTransitioning: 23d25edc2f4606efb922403cbac6d81af37aa33a
19+
MotionTransitioning: 42968eefaeb185d70dad5d891bf1229e84c0ccc9
1620

1721
PODFILE CHECKSUM: 25d5942fb7698339a03667bb46c3fbb77529b92d
1822

19-
COCOAPODS: 1.3.1
23+
COCOAPODS: 1.5.3

WORKSPACE

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,43 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
16+
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
17+
1518
git_repository(
1619
name = "build_bazel_rules_apple",
1720
remote = "https://github.com/bazelbuild/rules_apple.git",
18-
commit = "7ea0557",
21+
tag = "0.9.0",
22+
)
23+
24+
load(
25+
"@build_bazel_rules_apple//apple:repositories.bzl",
26+
"apple_rules_dependencies",
27+
)
28+
29+
apple_rules_dependencies()
30+
31+
git_repository(
32+
name = "build_bazel_rules_swift",
33+
remote = "https://github.com/bazelbuild/rules_swift.git",
34+
tag = "0.4.0",
35+
)
36+
37+
load(
38+
"@build_bazel_rules_swift//swift:repositories.bzl",
39+
"swift_rules_dependencies",
1940
)
2041

42+
swift_rules_dependencies()
43+
2144
git_repository(
2245
name = "bazel_ios_warnings",
2346
remote = "https://github.com/material-foundation/bazel_ios_warnings.git",
24-
tag = "v1.0.1",
47+
tag = "v2.0.0",
48+
)
49+
50+
http_file(
51+
name = "xctestrunner",
52+
executable = 1,
53+
urls = ["https://github.com/google/xctestrunner/releases/download/0.2.5/ios_test_runner.par"],
2554
)

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

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,6 @@
369369
666FAA7E1D384A6B000363DA /* Resources */,
370370
332B5EA9D6D03DB5A5EC0149 /* Frameworks */,
371371
EBE92D1BA3D06BD67925A4E0 /* [CP] Embed Pods Frameworks */,
372-
8FFB1F82A9D08AF069E44DFB /* [CP] Copy Pods Resources */,
373372
);
374373
buildRules = (
375374
);
@@ -389,7 +388,6 @@
389388
666FAA921D384A6B000363DA /* Resources */,
390389
03BB10DAA9B410FC78A061DE /* Frameworks */,
391390
B07B7D3E33EA12345D5D53CC /* [CP] Embed Pods Frameworks */,
392-
560BE48F7F0BF2FEBC8AF290 /* [CP] Copy Pods Resources */,
393391
);
394392
buildRules = (
395393
);
@@ -494,36 +492,6 @@
494492
/* End PBXResourcesBuildPhase section */
495493

496494
/* Begin PBXShellScriptBuildPhase section */
497-
560BE48F7F0BF2FEBC8AF290 /* [CP] Copy Pods Resources */ = {
498-
isa = PBXShellScriptBuildPhase;
499-
buildActionMask = 2147483647;
500-
files = (
501-
);
502-
inputPaths = (
503-
);
504-
name = "[CP] Copy Pods Resources";
505-
outputPaths = (
506-
);
507-
runOnlyForDeploymentPostprocessing = 0;
508-
shellPath = /bin/sh;
509-
shellScript = "\"${SRCROOT}/../../../Pods/Target Support Files/Pods-UnitTests/Pods-UnitTests-resources.sh\"\n";
510-
showEnvVarsInLog = 0;
511-
};
512-
8FFB1F82A9D08AF069E44DFB /* [CP] Copy Pods Resources */ = {
513-
isa = PBXShellScriptBuildPhase;
514-
buildActionMask = 2147483647;
515-
files = (
516-
);
517-
inputPaths = (
518-
);
519-
name = "[CP] Copy Pods Resources";
520-
outputPaths = (
521-
);
522-
runOnlyForDeploymentPostprocessing = 0;
523-
shellPath = /bin/sh;
524-
shellScript = "\"${SRCROOT}/../../../Pods/Target Support Files/Pods-TransitionsCatalog/Pods-TransitionsCatalog-resources.sh\"\n";
525-
showEnvVarsInLog = 0;
526-
};
527495
98D73D231683AA2871B76D81 /* [CP] Check Pods Manifest.lock */ = {
528496
isa = PBXShellScriptBuildPhase;
529497
buildActionMask = 2147483647;

src/private/MDMViewControllerTransitionCoordinator.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
#import "MDMViewControllerTransitionCoordinator.h"
1818

19+
#import <QuartzCore/QuartzCore.h>
20+
1921
#import "MDMTransition.h"
2022

2123
@class MDMViewControllerTransitionContextNode;

0 commit comments

Comments
 (0)