[ ] Generate a API Keys.xcconfig file and ask for the keys when running tuist focus/tuist generate
File should show up in Xcode. Should have a reference in the Derived group but the file should be in a different folder since Derived is deleted when running tuist focus/tuist generate.
If all keys are already in the file don't ask again. If there are missing keys in the file ask only for those keys.
[ ] Add each key to the Info.plists
[ ] Make ApiKeys.swift:
enum ApiKeys {
static let alchemyMainnet = try! Configuration.value(for: "WALLET_ALCHEMY_MAINNET_KEY")
static let alchemyRopsten = try! Configuration.value(for: "WALLET_ALCHEMY_ROPSTEN_KEY")
static let infuraRopsten = try! Configuration.value(for: "WALLET_INFURA_ROPSTEN_KEY")
static let infuraMainnet = try! Configuration.value(for: "WALLET_INFURA_MAINNET_KEY")
static let covalent = try! Configuration.value(for: "WALLET_COVALENT_KEY")
static let unmarshal = try! Configuration.value(for: "WALLET_UNMARSHAL_KEY")
static let etherscan = try! Configuration.value(for: "WALLET_ETHERSCAN_KEY")
}
Discord thread: https://discord.com/channels/922963239241928705/925863978511503400
To do:
Wallet.xcodeproj
com.safari-wallet
in the whole projectConstants.swift
parcel watch
is running and skip the build process or introduce aSKIP_JAVASCRIPT_BUILD
variable in a.xcconfig
incremental
in the TypeScript configurationpost-checkout
hook which runstuist dependencies fetch
andtuist generate
Assets.swift
fileAssets+AppIOS.swift
file and aAssets+AppMacOS.swift
file which have the same content but different targetskeys.swift
API Keys.xcconfig
file and ask for the keys when runningtuist focus
/tuist generate
Derived
group but the file should be in a different folder sinceDerived
is deleted when runningtuist focus
/tuist generate
.Info.plist
sApiKeys.swift
: