Skip to content

Commit

Permalink
Solara
Browse files Browse the repository at this point in the history
  • Loading branch information
MalekKamel committed Sep 23, 2024
1 parent 9bb1d6e commit d60792b
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "object",
"brandName": {
"type": "string"
},
"required": [
"brandName"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ def validate
issues = ios_config
issues += ios_signing
issues += android_config
issues + android_signing
issues += android_signing
issues + brand_config
end

def ios_config
Expand Down Expand Up @@ -59,4 +60,11 @@ def android_config
issue_type: Issue::ERROR)
end

def brand_config
@validator.validate_single_property(
'brandName',
:brand_config,
issue_type: Issue::ERROR)
end

end
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ structure:
type: file
validations:
- type: valid_json
- type: json_schema
schema_path: platform/shared/brand_config.json
theme.json:
type: file
validations:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ structure:
type: file
validations:
- type: valid_json
- type: json_schema
schema_path: platform/shared/brand_config.json
theme.json:
type: file
validations:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ structure:
type: file
validations:
- type: valid_json
- type: json_schema
schema_path: platform/shared/brand_config.json
theme.json:
type: file
validations:
Expand Down
1 change: 1 addition & 0 deletions solara/lib/core/template/brands/shared/brand_config.json
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
{
"brandName": ""
}
5 changes: 5 additions & 0 deletions solara/lib/core/template/config/android_template_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
"target": "ios/xcassets/",
"condition": "true"
},
{
"source": "ios/InfoPlist.xcstrings",
"target": "ios/InfoPlist.xcstrings",
"condition": "true"
},
{
"source": "ios/assets/",
"target": "ios/assets/",
Expand Down

0 comments on commit d60792b

Please sign in to comment.