Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.natrium Directory is not created #33

Open
shreeLw opened this issue Jun 17, 2022 · 1 comment
Open

.natrium Directory is not created #33

shreeLw opened this issue Jun 17, 2022 · 1 comment

Comments

@shreeLw
Copy link

shreeLw commented Jun 17, 2022

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"


@basvankuijck
Copy link
Member

What does your pre-build script look like?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants