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

Commit 003ec84

Browse files
author
Jeff Verkoeyen
committed
Merge branch 'release-candidate' into stable
2 parents 1ddd7da + 0fbdbd7 commit 003ec84

File tree

13 files changed

+169
-96
lines changed

13 files changed

+169
-96
lines changed

.arcconfig

Lines changed: 0 additions & 26 deletions
This file was deleted.

.arclint

Lines changed: 0 additions & 45 deletions
This file was deleted.

.arcunit

Lines changed: 0 additions & 12 deletions
This file was deleted.

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
bazel-*
2+
.kokoro-ios-runner
3+
14
# Jazzy
25
docs/
36

.kokoro

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/bin/bash
2+
3+
# Fail on any error.
4+
set -e
5+
6+
# Display commands to stderr.
7+
set -x
8+
9+
if [ ! -d .kokoro-ios-runner ]; then
10+
git clone https://github.com/material-foundation/kokoro-ios-runner.git .kokoro-ios-runner
11+
fi
12+
13+
pushd .kokoro-ios-runner
14+
git fetch > /dev/null
15+
TAG=$(git tag -l "v3*" | sort | tail -n1)
16+
git checkout $TAG > /dev/null
17+
popd
18+
19+
if [ -z "$KOKORO_BUILD_NUMBER" ]; then
20+
tests_dir_prefix=""
21+
else
22+
tests_dir_prefix="github/repo/"
23+
fi
24+
25+
# Fixes a bug in bazel where objc_library targets have a _ prefix.
26+
find ${tests_dir_prefix}tests/unit -type f -name '*.swift' -exec sed -i '' -E "s/import Motion(.+)/import _Motion\1/" {} + || true
27+
stashed_dir=$(pwd)
28+
reset_imports() {
29+
# Undoes our source changes from above.
30+
find ${stashed_dir}/${tests_dir_prefix}tests/unit -type f -name '*.swift' -exec sed -i '' -E "s/import _Motion(.+)/import Motion\1/" {} + || true
31+
}
32+
trap reset_imports EXIT
33+
34+
./.kokoro-ios-runner/bazel.sh test //:UnitTests 8.1.0
35+
36+
echo "Success!"

.travis.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,9 @@ osx_image: xcode8.1
33
sudo: false
44
before_install:
55
- gem install cocoapods --no-rdoc --no-ri --no-document --quiet
6-
- git clone https://github.com/phacility/arcanist.git
7-
- git clone https://github.com/phacility/libphutil.git
8-
- git clone --recursive https://github.com/material-foundation/material-arc-tools.git
96
- pod install --repo-update
107
script:
118
- set -o pipefail
12-
- arcanist/bin/arc unit --everything --trace
139
- xcodebuild build -workspace MotionTransitioning.xcworkspace -scheme TransitionsCatalog -sdk "iphonesimulator10.1" -destination "name=iPhone 6s,OS=10.1" ONLY_ACTIVE_ARCH=YES | xcpretty -c;
1410
after_success:
1511
- bash <(curl -s https://codecov.io/bash)

BUILD

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Description:
2+
# Light-weight API for building UIViewController transitions.
3+
4+
licenses(["notice"]) # Apache 2.0
5+
6+
exports_files(["LICENSE"])
7+
8+
load("@bazel_ios_warnings//:strict_warnings_objc_library.bzl", "strict_warnings_objc_library")
9+
10+
strict_warnings_objc_library(
11+
name = "MotionTransitioning",
12+
srcs = glob([
13+
"src/*.m",
14+
"src/private/*.m",
15+
]),
16+
hdrs = glob([
17+
"src/*.h",
18+
"src/private/*.h",
19+
]),
20+
enable_modules = 1,
21+
includes = ["src"],
22+
visibility = ["//visibility:public"],
23+
)
24+
25+
load("@build_bazel_rules_apple//apple:swift.bzl", "swift_library")
26+
27+
swift_library(
28+
name = "UnitTestsSwiftLib",
29+
srcs = glob([
30+
"tests/unit/*.swift",
31+
"tests/unit/Transitions/*.swift",
32+
]),
33+
deps = [":MotionTransitioning"],
34+
visibility = ["//visibility:private"],
35+
)
36+
37+
objc_library(
38+
name = "UnitTestsLib",
39+
srcs = glob([
40+
"tests/unit/*.m",
41+
]),
42+
deps = [":MotionTransitioning"],
43+
visibility = ["//visibility:private"],
44+
)
45+
46+
load("@build_bazel_rules_apple//apple:ios.bzl", "ios_unit_test")
47+
48+
ios_unit_test(
49+
name = "UnitTests",
50+
deps = [
51+
":UnitTestsLib",
52+
":UnitTestsSwiftLib"
53+
],
54+
minimum_os_version = "8.0",
55+
timeout = "short",
56+
visibility = ["//visibility:private"],
57+
)

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# 4.0.1
2+
3+
This patch release resolves a build warning and migrates the project's continuous integration to
4+
bazel and kokoro.
5+
6+
## Source changes
7+
8+
* [Replace arc with bazel and kokoro build runner for continuous integration. (#47)](https://github.com/material-motion/motion-transitioning-objc/commit/a40eb1667a4c5c9b13e3770c1bd98f0ca15d5b7d) (featherless)
9+
* [Reorder if statement to avoid nullability warning. (#48)](https://github.com/material-motion/motion-transitioning-objc/commit/0406d3c933574b0b9f3d7a0ae1cc3e7556640ccb) (ianegordon)
10+
111
# 4.0.0
212

313
This major release adds support for composable transitions. See the catalog app for a variety of

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 = "4.0.0"
4+
s.version = "4.0.1"
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PODS:
22
- CatalogByConvention (2.1.1)
3-
- MotionTransitioning (4.0.0)
3+
- MotionTransitioning (4.0.1)
44

55
DEPENDENCIES:
66
- CatalogByConvention
@@ -12,7 +12,7 @@ EXTERNAL SOURCES:
1212

1313
SPEC CHECKSUMS:
1414
CatalogByConvention: c3a5319de04250a7cd4649127fcfca5fe3322a43
15-
MotionTransitioning: be4161ebcbff7911a1d9c4549e396f486041ca6f
15+
MotionTransitioning: 277501a1a1e6121c0ab523e6a3e00d64659c3367
1616

1717
PODFILE CHECKSUM: 25d5942fb7698339a03667bb46c3fbb77529b92d
1818

0 commit comments

Comments
 (0)