Comments (3)
I'm not quite following. If you have two targets then you would use two different blocks under the targets:
entry, right? And they would have different entries below, so you could replace them separately. Or if I'm not understanding can you rephrase it?
from trapeze.
@mlynch sorry I should have elaborated more.
With target I mean one of our clients (we use the same codebase and whitelabel it so that our clients get an application with the same features but different databases and color themes for example). And every client has their own domain with their own configs etc.
Trying to avoid redundancy in the code is why I'm using a single yaml file for the capacitor configuration with trapeze for all clients.
One of our clients has recently switched their domain. In order to preserve backwards compatibility with old deeplinks for only 1 single client, I was wondering if it's already possible to achieve this, so building the application for one client with all configs would give us the com.apple.developer.associated-domains
entitlements for both domains example.com and exampletwo.com. However for the other clients we only need 1 single value for that entitlement key: examplethree.com.
For now I just duplicate the examplethree.com domain for all other clients (as they dont need a secondary domain but still need this .env variable for a secondary domain, I guess), so far it seemed to work.
TLDR
Is there a way to omit the secondary domain (ALTERNATIVE_BASE_URL) from the array below for our customers that dont need one?
platforms:
ios:
targets:
App:
entitlements:
replace: true
entries:
- com.apple.developer.associated-domains: ['applinks:$BASE_URL', 'applinks:$ALTERNATIVE_BASE_URL', 'applinks:$NEWSAPP_PAGE_LINK']
If not we will just use the duplicated entry, seems to be no problem. Was just wondering if its possible somehow.
from trapeze.
Yea I'm not sure, I would just duplicate the entries for now. Sorry, I'm having trouble understanding the use case
from trapeze.
Related Issues (20)
- Missing licence in @trapezedev/gradle-parse HOT 1
- How to automatically configure the capacitor plug-in key when adding a plug-in HOT 5
- Add non-xml/json files to src HOT 1
- Using .env file for environnement variables HOT 2
- Merge intent-filter HOT 2
- Unable to execute more than one `replace` or `insert` value in `variables.gradle` HOT 1
- How to pass version from package.json to versionName in yaml? HOT 1
- Bug: Incompatible with latest Capacitor V5 Android Platform HOT 6
- `@types/jest` included in dependencies HOT 1
- Bug: Incompatible with latest Capacitor V5 Android Platform HOT 12
- iOS Display name HOT 1
- XML file namespace HOT 3
- Bug: appName has no effect (android, capacitor V5) HOT 23
- Error: Unable to load or parse gradle file: Error (on Windows, but on Mac is okay) HOT 9
- Plist & Entitlements have different replace syntax in YAML file HOT 1
- Specify the Xcode signing team using `config.yaml`? HOT 1
- Error with API Usage HOT 1
- Add a file to XCode Project (e.g., GoogleService-Info.plist)?
- License? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trapeze.