提交 ea0268a5 编写于 作者: L libb

add swift demo2

Change-Id: I32bd791b27408695bedffdafe089016751a97e83
上级 1b4cea3f
......@@ -313,6 +313,7 @@
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 6TZ958XNMU;
INFOPLIST_FILE = ScreenRecordDemo/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
......@@ -331,6 +332,7 @@
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 6TZ958XNMU;
INFOPLIST_FILE = ScreenRecordDemo/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
......
......@@ -32,10 +32,12 @@ class WindowUtil: NSObject, Overlayable
deinit {
print(String.init(format: "\(#function):%s", object_getClassName(self)))
}
func initViews()
{
overlayWindow = UIWindow(frame: CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height: 30))
let statusBarHeight = UIApplication.shared.statusBarFrame.height;
let height = statusBarHeight+10
overlayWindow = UIWindow(frame: CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height: height))
stopButton = UIButton(type: UIButton.ButtonType.custom)
}
......
# OS X
.DS_Store
# Xcode
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/
*.xccheckout
profile
*.moved-aside
DerivedData
*.hmap
*.ipa
# Bundler
.bundle
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts
Carthage/Build
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
#
# Note: if you ignore the Pods directory, make sure to uncomment
# `pod install` in .travis.yml
#
Pods/
# references:
# * https://www.objc.io/issues/6-build-tools/travis-ci/
# * https://github.com/supermarin/xcpretty#usage
osx_image: xcode7.3
language: objective-c
# cache: cocoapods
# podfile: Example/Podfile
# before_install:
# - gem install cocoapods # Since Travis is not always on latest version
- pod install --project-directory=Example
script:
- set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/AppMain.xcworkspace -scheme AppMain-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty
- pod lib lint
#
# Be sure to run `pod lib lint AppMusic.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'AppMusic'
s.version = '1.0.0'
s.summary = 'Application music module.'
s.homepage = 'Coming soon...'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Archer' => 'code4archer@163.com' }
s.source = { :git => 'Coming soon...', :tag => s.version.to_s }
s.ios.deployment_target = '9.0'
s.dependency 'Fate'
s.dependency 'RxMoya'
s.dependency 'FOLDin'
s.dependency 'Mediator'
s.dependency 'SwiftyHUD'
s.dependency 'AudioService'
s.dependency 'YYKit', '~> 1.0.9'
s.dependency 'SnapKit', '~> 4.2.0'
s.dependency 'SkeletonView', '~> 1.4.2'
s.dependency 'RxSwift', '~> 4.4.2'
s.dependency 'RxCocoa', '~> 4.4.2'
s.dependency 'RxOptional', '~> 3.6.2'
s.dependency 'RxSwiftExt', '~> 3.4.0'
s.dependency 'MJRefresh', '~> 3.1.15.7'
s.dependency 'SDCycleScrollView', '~> 1.75'
s.resource_bundles = {
'AppMusic' => ['AppMusic/Assets/*.{png,jpg}']
}
s.subspec "Controller" do |cs|
cs.source_files = "AppMusic/Classes/Controller"
end
s.subspec "ViewModel" do |cs|
cs.source_files = "AppMusic/Classes/ViewModel"
end
s.subspec "View" do |cs|
cs.source_files = "AppMusic/Classes/View"
end
s.subspec "Model" do |cs|
cs.source_files = "AppMusic/Classes/Model"
end
s.subspec "Utility" do |cs|
cs.source_files = "AppMusic/Classes/Utility"
end
s.subspec "DataSource" do |cs|
cs.source_files = "AppMusic/Classes/DataSource"
end
end
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册