ann-flavor-flutter 0.4.9 → 0.4.10

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 148c47a3d06aabc1cf846252061bb38bbb0cbd67e27048bd04cfdb9a059b399e
4
- data.tar.gz: 39cf77d42b97848a64a19f5ebfb8c995df92b37132995f7c60b7bbcc7fbae3c0
3
+ metadata.gz: 447122ad8d1119d28bf0aa610fbdaca4c59ef0c4049fd61f6e7020df8d69423a
4
+ data.tar.gz: dbd5b81ae7e31e7c866c50487d34ba891bf74666a91d74652d0e6ac7273f5242
5
5
  SHA512:
6
- metadata.gz: 8cd05ae6c3b175a9fa68efa35ed3504a46667e7a85c9a36962e748d727fc0fb5d362e3fe0d2c8df2ab1ca59ca6e7c28f39f97f8390c8bcbf32d51f58bd6c5b41
7
- data.tar.gz: 1322abdd31694ff5118a6c222604a75a1359ca98eb3724c316b59a680b561152886f513216c293e5f43755a16c09f10c936605de8a40f3ffc8a9e83f21e40495
6
+ metadata.gz: 5bb57612673800eab64900e93aefde7faac4a27d78b898cd3e080c872b68e893393dd4180b791f9260434bb5d0369bff7e6df3ebf529cf5d7165cdd75ca8a63d
7
+ data.tar.gz: 0d4aba9d47ab1061a2dedd1bd874fab7797d0591d9efc3b8a951f1c45f530e1c56c8793c046af0f04af396cd4d677cbc75468d71ff175ac6b08cf6847928a185
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.10
4
+
5
+ ### Fixed
6
+ - `AnnFlavorCore::AnnSpec#flavor_exists_on?(platform_key, flavor_key)` added to the shared core (`ann-flavor-core-ruby`, vendored into this gem at publish time). Core-only in this release — `YamlSpecLoader`/`PodspecBridge` do not call this method yet; no functional change to Fastlane lane behavior. Included here purely because this gem vendors the shared core's source and versions travel together.
7
+
3
8
  ## 0.4.9
4
9
 
5
10
  ### Fixed
@@ -1,3 +1,3 @@
1
1
  module AnnFlavorFlutter
2
- VERSION = "0.4.9"
2
+ VERSION = "0.4.10"
3
3
  end
@@ -13,6 +13,25 @@ module AnnFlavorCore
13
13
 
14
14
  AnnSpec = Struct.new(:app, :enabled, :debug_config, :tooling, keyword_init: true) do
15
15
  def self.defaults = new(app: AnnApp.new, enabled: true, debug_config: DebugConfig.new)
16
+
17
+ # Whether flavor +flavor_key+ has an entry under app.<platform_key>.flavor
18
+ # in the spec — i.e. whether this flavor actually targets that platform.
19
+ #
20
+ # +platform_key+ is 'android', 'ios', 'web', or 'windows' (any other
21
+ # value returns false). This says nothing about whether the platform
22
+ # itself is configured for the app at all — a platform absent from app
23
+ # entirely also returns false here, the same as a platform that exists
24
+ # but doesn't list this flavor. Callers that need to distinguish those
25
+ # two cases should check app.<platform_key>.nil? separately.
26
+ def flavor_exists_on?(platform_key, flavor_key)
27
+ platform = case platform_key
28
+ when 'android' then app&.android
29
+ when 'ios' then app&.ios
30
+ when 'web' then app&.web
31
+ when 'windows' then app&.windows
32
+ end
33
+ platform&.flavors&.key?(flavor_key) || false
34
+ end
16
35
  end
17
36
 
18
37
  AnnApp = Struct.new(:android, :ios, :web, :windows, :general, :integrations, keyword_init: true)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ann-flavor-flutter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.9
4
+ version: 0.4.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - ANN Solutions