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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/ann_flavor_flutter/version.rb +1 -1
- data/lib/vendor/ann_flavor_core/lib/ann_flavor_core/model.rb +19 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 447122ad8d1119d28bf0aa610fbdaca4c59ef0c4049fd61f6e7020df8d69423a
|
|
4
|
+
data.tar.gz: dbd5b81ae7e31e7c866c50487d34ba891bf74666a91d74652d0e6ac7273f5242
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
@@ -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)
|