From dbc61f849395c434aaa2fe71b98b4aeab4f37444 Mon Sep 17 00:00:00 2001 From: HarrisonXi Date: Mon, 27 Nov 2017 16:40:47 +0800 Subject: [PATCH] split TMUtils to a standalone pod --- .gitignore | 4 +++- LazyScroll.podspec | 10 ++++++---- LazyScrollView/TMMuiLazyScrollView.m | 2 +- .../project.xcworkspace/contents.xcworkspacedata | 7 ------- LazyScrollViewDemo/Podfile | 6 ++++-- README.md | 2 +- TMUtils.podspec | 15 +++++++++++++++ {LazyScrollView => TMUtils}/TMUtils.h | 0 {LazyScrollView => TMUtils}/TMUtils.m | 0 9 files changed, 30 insertions(+), 16 deletions(-) delete mode 100644 LazyScrollViewDemo/LazyScrollViewDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 TMUtils.podspec rename {LazyScrollView => TMUtils}/TMUtils.h (100%) rename {LazyScrollView => TMUtils}/TMUtils.m (100%) diff --git a/.gitignore b/.gitignore index 8f6e9a9..9d327fd 100644 --- a/.gitignore +++ b/.gitignore @@ -29,7 +29,9 @@ xcuserdata/ # CocoaPods Pods/ Podfile.lock +*.xcworkspace # Demo +*Demo/Pods/ +*Demo/Podfile.lock *Demo/*.xcworkspace - diff --git a/LazyScroll.podspec b/LazyScroll.podspec index c0fd69f..aa064b6 100644 --- a/LazyScroll.podspec +++ b/LazyScroll.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "LazyScroll" - s.version = "0.1.1" + s.version = "1.0" s.summary = "A ScrollView to resolve the problem of reusability of views." s.description = <<-DESC @@ -9,13 +9,15 @@ Pod::Spec.new do |s| DESC s.homepage = "https://github.com/alibaba/LazyScrollView" - s.license = {:type => 'MIT'} + s.license = { :type => 'MIT' } s.author = { "fydx" => "lbgg918@gmail.com", - "HarrisonXi" => "gpra8764@gmail.com"} + "HarrisonXi" => "gpra8764@gmail.com" } s.platform = :ios s.ios.deployment_target = "5.0" - s.source = { :git => "https://github.com/alibaba/LazyScrollView.git", :tag => "0.1.1" } + s.source = { :git => "https://github.com/alibaba/LazyScrollView.git", :tag => "1.0" } s.source_files = "LazyScrollView/*.{h,m}" s.requires_arc = true + # s.dependency 'TMUtils', '~> 1.0' + end diff --git a/LazyScrollView/TMMuiLazyScrollView.m b/LazyScrollView/TMMuiLazyScrollView.m index 84e6e88..5c8a62f 100644 --- a/LazyScrollView/TMMuiLazyScrollView.m +++ b/LazyScrollView/TMMuiLazyScrollView.m @@ -7,7 +7,7 @@ #import "TMMuiLazyScrollView.h" #import -#import "TMUtils.h" +#import #define RenderBufferWindow 20.f diff --git a/LazyScrollViewDemo/LazyScrollViewDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/LazyScrollViewDemo/LazyScrollViewDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 44dbfae..0000000 --- a/LazyScrollViewDemo/LazyScrollViewDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/LazyScrollViewDemo/Podfile b/LazyScrollViewDemo/Podfile index 5f82496..c3fb432 100644 --- a/LazyScrollViewDemo/Podfile +++ b/LazyScrollViewDemo/Podfile @@ -1,6 +1,8 @@ source "https://github.com/CocoaPods/Specs.git" +platform :ios, '8.0' + target 'LazyScrollViewDemo' do - platform :ios, '8.0' - pod 'LazyScroll', :path=>'../' + pod 'LazyScroll', :path => '../' + pod 'TMUtils', :path => '../' end diff --git a/README.md b/README.md index 85fd154..01e595e 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ > 依赖 LazyScrollView,我们创建了一个模块化页面UI解决方案,详情可见 [Tangram-iOS](https://github.com/alibaba/tangram-ios)。 -LazyScrollView is an iOS ScrollView , to resolve the problem of reusability of views. +LazyScrollView is an iOS ScrollView, to resolve the problem of reusability of views. We reply another way to control reuse in a ScrollView, it depends on give a special reuse identifier to every view controlled in LazyScrollView. diff --git a/TMUtils.podspec b/TMUtils.podspec new file mode 100644 index 0000000..79b16c2 --- /dev/null +++ b/TMUtils.podspec @@ -0,0 +1,15 @@ +Pod::Spec.new do |s| + + s.name = "TMUtils" + s.version = "1.0" + s.summary = "Common safe methods & utils for NSArray & NSDictionary." + s.homepage = "https://github.com/alibaba/LazyScrollView" + s.license = {:type => 'MIT'} + s.author = { "HarrisonXi" => "gpra8764@gmail.com" } + s.platform = :ios + s.ios.deployment_target = "5.0" + s.source = { :git => "https://github.com/alibaba/LazyScrollView.git", :tag => "1.0" } + s.source_files = "TMUtils/*.{h,m}" + s.requires_arc = true + +end diff --git a/LazyScrollView/TMUtils.h b/TMUtils/TMUtils.h similarity index 100% rename from LazyScrollView/TMUtils.h rename to TMUtils/TMUtils.h diff --git a/LazyScrollView/TMUtils.m b/TMUtils/TMUtils.m similarity index 100% rename from LazyScrollView/TMUtils.m rename to TMUtils/TMUtils.m