Atlas13 SDK
Private package registry for the Atlas13 Attribution SDKs: Swift Package Manager, Gradle and NuGet, all with one personal token.
1. Get a token
Ask your Atlas13 admin for an SDK token. Admins create it in BI › Company settings › SDK access. The token looks like a13sdk_… and is shown only once, so store it in your password manager.
~/.gradle/gradle.properties, user NuGet config) or a CI secret.| Package | Coordinates | Repository |
|---|---|---|
| iOS | atlas13.attribution → product Atlas13Attribution | https://sdk.atlas13.app/swift |
| Android | app.atlas13:attribution-referrer | https://sdk.atlas13.app/maven |
| .NET | Atlas13.Attribution | https://sdk.atlas13.app/nuget/v3/index.json |
2. iOS — Swift Package Manager
Requires Xcode 26 (the SDK targets iOS 26). Configure the registry once per Mac:
swift package-registry set --global --scope atlas13 https://sdk.atlas13.app/swift
swift package-registry login https://sdk.atlas13.app/swift --token a13sdk_…
On macOS the token is saved in the login Keychain, and Xcode uses it too.
Package.swift
dependencies: [
.package(id: "atlas13.attribution", from: "0.2.0"),
],
targets: [
.target(name: "App", dependencies: [
.product(name: "Atlas13Attribution", package: "atlas13.attribution"),
]),
]
Xcode project
File › Add Package Dependencies…, type atlas13.attribution in the search field, choose a version and add Atlas13Attribution to your app target.
CI
swift package-registry set --global --scope atlas13 https://sdk.atlas13.app/swift
swift package-registry login https://sdk.atlas13.app/swift --token "$ATLAS13_SDK_TOKEN" --no-confirm
3. Android — Gradle
In settings.gradle.kts:
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven("https://sdk.atlas13.app/maven") {
name = "atlas13"
credentials(PasswordCredentials::class)
content { includeGroup("app.atlas13") }
}
}
}
In ~/.gradle/gradle.properties (your user folder, not the project):
atlas13Username=token
atlas13Password=a13sdk_…
On CI set the environment variables ORG_GRADLE_PROJECT_atlas13Username=token and ORG_GRADLE_PROJECT_atlas13Password. Then in your app module:
dependencies {
implementation("app.atlas13:attribution-referrer:0.1.0")
}
The library depends on com.android.installreferrer:installreferrer from Google's Maven repository, so keep google() in the list.
4. .NET — NuGet
Add a NuGet.config next to your solution:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
<add key="atlas13" value="https://sdk.atlas13.app/nuget/v3/index.json" />
</packageSources>
<packageSourceMapping>
<packageSource key="nuget.org"><package pattern="*" /></packageSource>
<packageSource key="atlas13"><package pattern="Atlas13.*" /></packageSource>
</packageSourceMapping>
</configuration>
Store the token in your user NuGet config, not the one in the repository:
dotnet nuget add source https://sdk.atlas13.app/nuget/v3/index.json --name atlas13 \
--username token --password a13sdk_… --store-password-in-clear-text
If the source already exists, use dotnet nuget update source atlas13 --username token --password a13sdk_… --store-password-in-clear-text. On Windows you can drop --store-password-in-clear-text to keep it encrypted. On CI set NuGetPackageSourceCredentials_atlas13=Username=token;Password=a13sdk_…. Then:
dotnet add package Atlas13.Attribution
Visual Studio: Tools › NuGet Package Manager › Package Manager Settings › Package Sources picks up the same config. When asked to sign in, enter any user name (for example token) and the token as the password. Choose the atlas13 source in Manage NuGet Packages › Browse.
5. Rotate or revoke
An admin revokes a token in BI › Company settings › SDK access; it stops working within a minute. To rotate, ask for a new token, replace it in the places above, and have the old one revoked. Package versions never change once published, so builds stay reproducible.
6. Troubleshooting
| Symptom | Fix |
|---|---|
401 Unauthorized from any tool | The token is wrong, mistyped or revoked. Ask for a new one and update your config. |
Xcode cannot find atlas13.attribution | The registry is not set for scope atlas13. Run the two swift package-registry commands again, then File › Packages › Reset Package Caches. |
| Gradle: Could not find app.atlas13:attribution-referrer | Check that the maven("https://sdk.atlas13.app/maven") block is in settings.gradle.kts and that atlas13Username/atlas13Password are set. |
| NuGet: Unable to find package Atlas13.Attribution | Check the packageSourceMapping entry and the credentials of source atlas13 (dotnet nuget list source). |
503 | A short service hiccup. Retry in a minute. |