Skip to content

.natrium Directory is not created #33

Open
@shreeLw

Description

I tried to integrate the Natrium using SPM, Manually and cocoapods as well.
The ".natrium.yml" file which i am having a different variable. Through cococapods the Natrium.swift file is generated under "Pods/Natrium/Natrium/Natrium.swift" path but the configuration which is generated is not as per my .yml file.
Also with SPM the step 4 the .natrium directory is not generated.

Build your project (⌘ + B or ⌘ + R).
Then open the .natrium directory from your project root and:

Add the Natrium.swift file to your projects target.
Add all the Natrium.*.xcconfig files to your project and do NOT add them to your target(s).

Tried to integrate the Natrium using SPM in demo project as well.

Below is the sample of .natrium.yml which i am using.

settings:
  stringType: "StaticString"
  
environments:
  - QA
  - Staging

variables:
  stripeKey:
      QA: "pk_test_***"
    Staging: "pk_test_***"
   
  graphQLEndpoint:
    Staging: "https://graph.preview.helfie.io/graphql"
    QA: "https://graph.development.helfie.ai/graphql"
    
  restAPIEndpoint:
    Staging: "https://helfie-core-ojhavw35wq-ts.a.run.app/v1/helfie"
    QA: "https://helfie-core-ojhavw35wq-ts.a.run.app/v1/helfie"
  authenticationEndpoint:
   
    Staging: "https://graph.preview.helfie.io/v1"
    QA: "https://graph.development.helfie.ai/v1"


plists:
"NatriumDemo/Info.plist":
        CFBundleDisplayName:
            Staging: App_staging
            Production: App
    "NatriumDemo/App.entitlements":
        "aps-environment":
            "*":
                Debug: "development"
                Release: "production"


Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions