motion-fabric 0.5 → 0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/motion-fabric.rb +16 -1
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e83fc3b225b1ec4d3b1e546dbc739af849142c35
4
- data.tar.gz: 5e08fae2357fd556715bab9b4f27d2c50703422e
3
+ metadata.gz: 6fb9b887a9bde8b27368791de163b5ac4fc7163b
4
+ data.tar.gz: b9a7c17ee33271ce1abc0812a0c8dae61793f49a
5
5
  SHA512:
6
- metadata.gz: 0be175a2a9d4a8889354ca45a3834698671738afc1310621f953b79f8705b6597010bad57ec0db6c04c228f1596af86d6c78c3859f1dc98705da414018194c49
7
- data.tar.gz: 5fed7cd8be906df435579d9b61af182cfbc4cbb7bb4e19a89035764fc3bc1ab17e5f8f633933b490aa91d42348e8e9b4eac5aa7c8fcea676724f797ca3bfe9a2
6
+ metadata.gz: a78596780ea40d6da5dae3286611618e7c36b2b4a9c7f5bfb6727583858a2ec53390eb72949368a456999e26006b6195946928e88df42d51421b48aea50dc35f
7
+ data.tar.gz: 16c085055a812eca29bf9f559f42a21cc9435981bc5df079b7f69975c082a309dc4800336f241a77325eb0d1f63a83c59e5f866af2e7fdc6fec1b3b89a48c0e5
data/lib/motion-fabric.rb CHANGED
@@ -27,6 +27,8 @@ unless defined?(Motion::Project::Config)
27
27
  raise "This file must be required within a RubyMotion project Rakefile."
28
28
  end
29
29
 
30
+ require 'motion-cocoapods'
31
+
30
32
  class FabricKitConfig
31
33
  attr_accessor :name, :info
32
34
 
@@ -80,11 +82,24 @@ module Motion::Project
80
82
  end
81
83
  end
82
84
 
85
+ require 'motion-cocoapods'
86
+
83
87
  Motion::Project::App.setup do |app|
84
88
  app.pods do
85
89
  pod 'Fabric', '~> 1.6'
86
90
  pod 'Crashlytics', '~> 3.7'
87
91
  end
92
+
93
+ # FIXME: TwitterCore and TwitterKit are static ios frameworks, but the .o
94
+ # files inside the archives include the "-framework Fabric" flag in their
95
+ # auto link section information. The linker will look for that framework and
96
+ # fail. As a workaround we include the Fabric framework path as a framework
97
+ # search path. The following warning will be printed, but everything will
98
+ # work fine at runtime:
99
+ # ld: warning: Auto-Linking supplied '/Users/mark/src/motion-fabric/sample_app/vendor/Pods/Fabric/iOS/Fabric.framework/Fabric', framework linker option at /Users/mark/src/motion-fabric/sample_app/vendor/Pods/Fabric/iOS/Fabric.framework/Fabric is not a dylib
100
+ # We will be able to fix this when motion-cocoapods supports the
101
+ # "use_frameworks!" option from Cocoapods.
102
+ app.framework_search_paths << './vendor/Pods/Fabric/iOS'
88
103
  end
89
104
 
90
105
  def fabric_setup(&block)
@@ -160,7 +175,7 @@ namespace :fabric do
160
175
  args << " -groupAliases \"#{ENV['groups']}\"" if ENV['groups']
161
176
  args << " -notifications \"#{ENV['notifications']}\"" if ENV['notifications']
162
177
 
163
- system(%Q{#{pods_root}/Crashlytics/submit #{api_key} #{build_secret} #{args}})
178
+ sh %Q{#{pods_root}/Crashlytics/submit #{api_key} #{build_secret} #{args}}
164
179
  end
165
180
  end
166
181
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-fabric
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.5'
4
+ version: '0.6'
5
5
  platform: ruby
6
6
  authors:
7
7
  - HipByte
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-14 00:00:00.000000000 Z
11
+ date: 2016-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: motion-cocoapods
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.7'
19
+ version: '1.8'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.7'
26
+ version: '1.8'
27
27
  description: Fabric in your RubyMotion applications.
28
28
  email: info@hipbyte.com
29
29
  executables: []