forked from momotech/ArgoKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathArgoKit.podspec
More file actions
60 lines (50 loc) · 2.33 KB
/
ArgoKit.podspec
File metadata and controls
60 lines (50 loc) · 2.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Copyright (c) MoMo, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
podspec = Pod::Spec.new do |spec|
spec.name = 'ArgoKit'
spec.version = '1.0.15'
spec.license = { :type => 'MIT', :file => "LICENSE" }
spec.homepage = 'https://git.wemomo.com/module/argokit'
spec.documentation_url = 'https://momotech.github.io/argokit/'
spec.summary = 'A Declarative and Reactive Framework.'
spec.description = <<-DESC
ArgoKit is a declarative and reactive Framework and based on UIKit, inspired by SwiftUI, compatible with iOS 11+.
- **Declarative** ArgoKit uses almost the same `DSL` as SwiftUI(e.g., `Text` `Button` `List` ).You simply describe the UI elements and Animation, and the framework takes care of the rest.
- **React** The created view automatically listens directly to streams and updates the DOM accordingly.
- **Flexbox Layout** ArgoKit uses [Yoga](https://facebook.github.io/yoga/) as layout engine.
- **Preview and templating** ArgoKit uses the same preview approach as SwiftUI, and you can be easily developed through the template files.
DESC
spec.authors = 'MoMo'
spec.source = {
:git => 'https://git.wemomo.com/module/argokit.git',
:tag => spec.name + '/' + spec.version.to_s,
}
spec.platform = :ios
spec.ios.deployment_target = '11.0'
spec.ios.frameworks = 'UIKit'
spec.dependency 'Yoga'
spec.module_name = 'ArgoKit'
spec.header_dir = '.'
# spec.source_files = 'Source/ArgoKit.h'
# spec.module_map = 'Source/module.modulemap'
spec.libraries = 'z','c++'
spec.subspec 'AnimationKit' do |ani|
ani.name = 'AnimationKit'
ani.dependency 'ArgoAnimation'
ani.source_files = 'Source/AnimationKit/**/*.{h,m,mm,c,cpp,swift}'
# ani.public_header_files = 'Source/AnimationKit/*.h', 'Source/AnimationKit/MLAnimator/*.h', 'Source/AnimationKit/MLAnimator/Animations/*.h'
# ani.compiler_flags = '-x objective-c++'
end
spec.subspec "Bind" do |s|
s.source_files = 'Source/Bind/**/*.{swift}'
end
spec.subspec "Core" do |ss|
ss.source_files = 'Source/Core/**/*.{h,m,mm}','Source/Core/**/*.{swift}'
ss.dependency 'ArgoKit/AnimationKit'
ss.dependency 'ArgoKit/Bind'
# ss.private_header_files = 'ArgoKit/Source/*.h'
ss.public_header_files = 'ArgoKit/Source/*.h'
end
end