mundler 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8bff85e95c9055e66797b7e104e4781625b8184b0d9a8e1992e0e05a2db566ec
4
- data.tar.gz: b1afb00af0ef0a556f7be323cbe7dab1e8e14ce84026e75079c5498173a291ce
3
+ metadata.gz: 71a4b590a91eeb9a5838d644baa01abc5e398f89b4714ed49f7b39428093d060
4
+ data.tar.gz: 2301967224368ec42e971b8f00a23c2b90ad9f31619e0665a4f431a1d82f3a4d
5
5
  SHA512:
6
- metadata.gz: cb8b8c78f8d369b30d670b60da360c7ee33a6c990a82bf424aa309ac49ecde96c1a525baf4b0e182ff670288093b7321c073540f41082d3b15ef2f53d2b4fff1
7
- data.tar.gz: 07da326cea2279e896f5f05b33c74f71e1fcd7b0245d5f2f1794d6ccd916aef652a798c9f1a8613ab4b5010628fd0ce4b03e130a9da4c84eb46bf41186448f3d
6
+ metadata.gz: d8c927b5e931475c20891f251e4e4436526bc03e6f8d46166db46b03f460fb4cfbac95d2f8798b6478b8dadb257fce497bd37af568ae82aad129a169d1d40619
7
+ data.tar.gz: b17b31322372c81490c7367f3e119bd828054ef68511c5275f62ccfc807c667a5738d2afdc20baeb803e59d751b6e9e99f7164105414bd394bb7c87a31c9cd51
@@ -36,7 +36,7 @@ module Mundler
36
36
  config.platform_types[name.to_s] = platform_class
37
37
  end
38
38
 
39
- def platform(name, options)
39
+ def platform(name, options = {})
40
40
  config.platforms << { name: name.to_s, options: options }
41
41
  end
42
42
 
@@ -0,0 +1,34 @@
1
+ module AndroidPlatform
2
+ def self.config(options, build_config)
3
+ valid_archs = [:"arm64-v8a", :armeabi, :"armeabi-v7a"]
4
+ options[:archs] ||= valid_archs
5
+
6
+ options[:archs].map do |arch|
7
+ unless valid_archs.include?(arch)
8
+ raise "Invalid architecture #{arch}. Valid values: #{valid_archs}"
9
+ end
10
+
11
+ <<~BUILD
12
+ MRuby::CrossBuild.new("android__#{arch}") do |conf|
13
+ params = {
14
+ :arch => #{arch.inspect},
15
+ :platform => 'android-24',
16
+ :toolchain => :clang,
17
+ }
18
+
19
+ if #{arch.inspect} == :"armeabi-v7a"
20
+ params[:mfpu] = "neon"
21
+ params[:mfloat_abi] = "hard"
22
+ end
23
+
24
+ toolchain :android, params
25
+
26
+ #{build_config.gemboxes}
27
+ #{build_config.gems}
28
+ end
29
+ BUILD
30
+ end.join("\n")
31
+ end
32
+ end
33
+
34
+ define_platform "android", AndroidPlatform
@@ -0,0 +1,3 @@
1
+ module Mundler
2
+ VERSION = "0.6.0"
3
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mundler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Inkpen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-07-15 00:00:00.000000000 Z
11
+ date: 2021-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -60,17 +60,18 @@ executables:
60
60
  extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
63
- - "/Users/dan2552/Dropbox/experiments/mundler/lib/mundler.rb"
64
- - "/Users/dan2552/Dropbox/experiments/mundler/lib/mundler/build_config.rb"
65
- - "/Users/dan2552/Dropbox/experiments/mundler/lib/mundler/cli.rb"
66
- - "/Users/dan2552/Dropbox/experiments/mundler/lib/mundler/config.rb"
67
- - "/Users/dan2552/Dropbox/experiments/mundler/lib/mundler/dsl.rb"
68
- - "/Users/dan2552/Dropbox/experiments/mundler/lib/mundler/mruby.rb"
69
- - "/Users/dan2552/Dropbox/experiments/mundler/lib/mundler/platforms/ios.rb"
70
- - "/Users/dan2552/Dropbox/experiments/mundler/lib/mundler/platforms/ios_simulator.rb"
71
- - "/Users/dan2552/Dropbox/experiments/mundler/lib/mundler/project.rb"
72
- - "/Users/dan2552/Dropbox/experiments/mundler/lib/mundler/version.rb"
73
63
  - exe/mundle
64
+ - lib/mundler.rb
65
+ - lib/mundler/build_config.rb
66
+ - lib/mundler/cli.rb
67
+ - lib/mundler/config.rb
68
+ - lib/mundler/dsl.rb
69
+ - lib/mundler/mruby.rb
70
+ - lib/mundler/platforms/android.rb
71
+ - lib/mundler/platforms/ios.rb
72
+ - lib/mundler/platforms/ios_simulator.rb
73
+ - lib/mundler/project.rb
74
+ - lib/mundler/version.rb
74
75
  homepage: https://github.com/Dan2552/mundler
75
76
  licenses:
76
77
  - MIT
@@ -1,3 +0,0 @@
1
- module Mundler
2
- VERSION = "0.5.0"
3
- end