motion-objc 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/motion/project/objc/version.rb +1 -1
- data/lib/motion-objc.rb +7 -4
- data/motion-objc.gemspec +2 -2
- metadata +14 -9
data/lib/motion-objc.rb
CHANGED
@@ -73,14 +73,17 @@ module Motion::Project
|
|
73
73
|
}
|
74
74
|
|
75
75
|
@project = Xcodeproj::Project.new
|
76
|
-
@target = @project.targets.new_static_library('MotionObjC')
|
77
|
-
@target.
|
78
|
-
config.
|
76
|
+
@target = @project.targets.new_static_library(:ios, 'MotionObjC')
|
77
|
+
@target.build_configurations.each do |config|
|
78
|
+
config.build_settings.merge!(@config)
|
79
79
|
end
|
80
|
+
file_descriptions = []
|
80
81
|
@files.each do |file|
|
81
82
|
full_path = File.expand_path(app.project_dir + '/' + file)
|
82
|
-
|
83
|
+
path = Pathname.new(full_path).relative_path_from(@project_path)
|
84
|
+
file_descriptions << Xcodeproj::Project::PBXNativeTarget::SourceFileDescription.new(path, nil, nil)
|
83
85
|
end
|
86
|
+
@target.add_source_files(file_descriptions)
|
84
87
|
|
85
88
|
@project.save_as(File.join(@project_path, 'MotionObjC.xcodeproj'))
|
86
89
|
end
|
data/motion-objc.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motion-objc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,19 +9,24 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-07-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: xcodeproj
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 0.2.3
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - '='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 0.2.3
|
25
30
|
description: Simply include Objective-C files in your RubyMotion projects
|
26
31
|
email:
|
27
32
|
- francis@ignition.hk
|
@@ -55,7 +60,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
55
60
|
version: '0'
|
56
61
|
segments:
|
57
62
|
- 0
|
58
|
-
hash:
|
63
|
+
hash: 3858492397316872147
|
59
64
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
60
65
|
none: false
|
61
66
|
requirements:
|
@@ -64,10 +69,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
64
69
|
version: '0'
|
65
70
|
segments:
|
66
71
|
- 0
|
67
|
-
hash:
|
72
|
+
hash: 3858492397316872147
|
68
73
|
requirements: []
|
69
74
|
rubyforge_project:
|
70
|
-
rubygems_version: 1.8.
|
75
|
+
rubygems_version: 1.8.24
|
71
76
|
signing_key:
|
72
77
|
specification_version: 3
|
73
78
|
summary: Simply include Objective-C files in your RubyMotion projects
|