Split the repo into two sub-specs.
diff --git a/MotionInterchange.podspec b/MotionInterchange.podspec
index ed1131f..e6bb879 100644
--- a/MotionInterchange.podspec
+++ b/MotionInterchange.podspec
@@ -9,6 +9,16 @@
s.platform = :ios, "8.0"
s.requires_arc = true
- s.public_header_files = "src/*.h"
- s.source_files = "src/*.{h,m,mm}", "src/private/*.{h,m,mm}"
+ s.subspec "Interchange" do |ss|
+ ss.public_header_files = "src/*.h"
+ ss.source_files = "src/interchange/*.{h,m,mm}", "src/interchange/private/*.{h,m,mm}"
+ end
+
+ s.subspec "Animator" do |ss|
+ ss.public_header_files = "src/*.h"
+ ss.source_files = "src/animator/*.{h,m,mm}", "src/animator/private/*.{h,m,mm}"
+
+ ss.dependency "MotionInterchange/Interchange"
+ end
+
end
diff --git a/Podfile.lock b/Podfile.lock
index 23ac1c3..4dd01d9 100644
--- a/Podfile.lock
+++ b/Podfile.lock
@@ -1,6 +1,11 @@
PODS:
- CatalogByConvention (2.1.1)
- - MotionInterchange (1.0.0)
+ - MotionInterchange (1.0.0):
+ - MotionInterchange/Animator (= 1.0.0)
+ - MotionInterchange/Interchange (= 1.0.0)
+ - MotionInterchange/Animator (1.0.0):
+ - MotionInterchange/Interchange
+ - MotionInterchange/Interchange (1.0.0)
DEPENDENCIES:
- CatalogByConvention
@@ -12,7 +17,7 @@
SPEC CHECKSUMS:
CatalogByConvention: c3a5319de04250a7cd4649127fcfca5fe3322a43
- MotionInterchange: cc9f36ff14ccd09d02355075b37180da7cc8c6d2
+ MotionInterchange: ff5c4881d6c377c0791423dc8ae0b1982e107675
PODFILE CHECKSUM: '09090d12db5aab00a13fe82da94f338ebd03f5dc'
diff --git a/examples/MaterialMaskedTransitionMotion.h b/examples/MaterialMaskedTransitionMotion.h
index 18e04f7..0310ede 100644
--- a/examples/MaterialMaskedTransitionMotion.h
+++ b/examples/MaterialMaskedTransitionMotion.h
@@ -15,7 +15,8 @@
*/
#import <Foundation/Foundation.h>
-#import <MotionInterchange/MotionInterchange.h>
+
+@import MotionInterchange;
struct MaterialMaskedTransitionMotion {
MDMMotionTiming floodColorTransformation;
diff --git a/src/MotionInterchange.h b/src/MotionInterchange.h
deleted file mode 100644
index e6a3cdd..0000000
--- a/src/MotionInterchange.h
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- Copyright 2017-present The Material Motion Authors. All Rights Reserved.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- */
-
-#import "CoreGraphics+SwiftCompat.h"
-#import "MDMAnimator.h"
-#import "MDMMotionCurve.h"
-#import "MDMMotionTiming.h"
-#import "UIView+Animator.h"
diff --git a/src/CoreGraphics+SwiftCompat.h b/src/animator/CoreGraphics+SwiftCompat.h
similarity index 100%
rename from src/CoreGraphics+SwiftCompat.h
rename to src/animator/CoreGraphics+SwiftCompat.h
diff --git a/src/MDMAnimator.h b/src/animator/MDMAnimator.h
similarity index 100%
rename from src/MDMAnimator.h
rename to src/animator/MDMAnimator.h
diff --git a/src/MDMAnimator.m b/src/animator/MDMAnimator.m
similarity index 100%
rename from src/MDMAnimator.m
rename to src/animator/MDMAnimator.m
diff --git a/src/UIView+Animator.h b/src/animator/UIView+Animator.h
similarity index 100%
rename from src/UIView+Animator.h
rename to src/animator/UIView+Animator.h
diff --git a/src/UIView+Animator.m b/src/animator/UIView+Animator.m
similarity index 100%
rename from src/UIView+Animator.m
rename to src/animator/UIView+Animator.m
diff --git a/src/MDMMotionCurve.h b/src/interchange/MDMMotionCurve.h
similarity index 100%
rename from src/MDMMotionCurve.h
rename to src/interchange/MDMMotionCurve.h
diff --git a/src/MDMMotionCurve.m b/src/interchange/MDMMotionCurve.m
similarity index 100%
rename from src/MDMMotionCurve.m
rename to src/interchange/MDMMotionCurve.m
diff --git a/src/MDMMotionTiming.h b/src/interchange/MDMMotionTiming.h
similarity index 100%
rename from src/MDMMotionTiming.h
rename to src/interchange/MDMMotionTiming.h