slowlane 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +106 -0
- package/build/src/appstoreconnect.d.ts +155 -0
- package/build/src/appstoreconnect.js +417 -0
- package/build/src/appstoreconnect.js.map +1 -0
- package/build/src/config.d.ts +5 -0
- package/build/src/config.js +66 -0
- package/build/src/config.js.map +1 -0
- package/build/src/googleplay.d.ts +31 -0
- package/build/src/googleplay.js +175 -0
- package/build/src/googleplay.js.map +1 -0
- package/build/src/index.d.ts +2 -0
- package/build/src/index.js +249 -0
- package/build/src/index.js.map +1 -0
- package/build/src/output.d.ts +39 -0
- package/build/src/output.js +269 -0
- package/build/src/output.js.map +1 -0
- package/package.json +58 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Alexander Fenster
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# slowlane
|
|
2
|
+
|
|
3
|
+
A simple CLI for managing App Store and Google Play metadata.
|
|
4
|
+
|
|
5
|
+
Fastlane is powerful but complex to set up. Slowlane focuses on one thing: making it easy to update localized metadata (titles, descriptions, keywords) across multiple languages. Screenshots, builds, and submitting for review are left to the respective console UIs.
|
|
6
|
+
|
|
7
|
+
## Setup
|
|
8
|
+
|
|
9
|
+
### Apple App Store Connect
|
|
10
|
+
|
|
11
|
+
1. Go to [App Store Connect > Users and Access > Integrations > App Store Connect API](https://appstoreconnect.apple.com/access/integrations/api)
|
|
12
|
+
2. Generate a new API key with "App Manager" role
|
|
13
|
+
3. Download the `.p8` private key file
|
|
14
|
+
4. Note the Key ID and Issuer ID
|
|
15
|
+
|
|
16
|
+
### Google Play Console
|
|
17
|
+
|
|
18
|
+
1. Go to [Google Cloud Console](https://console.cloud.google.com/)
|
|
19
|
+
2. Create a project (or use existing)
|
|
20
|
+
3. Enable both APIs:
|
|
21
|
+
- **Google Play Developer Reporting API** (for listing apps)
|
|
22
|
+
- **Google Play Android Developer API** (for metadata operations)
|
|
23
|
+
4. Create a Service Account with a JSON key
|
|
24
|
+
5. In [Google Play Console > Setup > API access](https://play.google.com/console/developers/api-access), link the service account and grant "Release to production" permission
|
|
25
|
+
|
|
26
|
+
### Configuration
|
|
27
|
+
|
|
28
|
+
Create `slowlane.toml` in your project directory:
|
|
29
|
+
|
|
30
|
+
```toml
|
|
31
|
+
[appstore_connect]
|
|
32
|
+
issuer_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
|
33
|
+
key_id = "XXXXXXXXXX"
|
|
34
|
+
private_key_path = "./AuthKey_XXXXXXXXXX.p8"
|
|
35
|
+
|
|
36
|
+
[google_play]
|
|
37
|
+
service_account_path = "./your-service-account.json"
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Add sensitive files to `.gitignore`:
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
slowlane.toml
|
|
44
|
+
*.p8
|
|
45
|
+
*-service-account.json
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Usage
|
|
49
|
+
|
|
50
|
+
### Apple App Store Connect
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
# List all apps
|
|
54
|
+
npx slowlane apple list-apps
|
|
55
|
+
|
|
56
|
+
# View metadata for all languages (from editable version)
|
|
57
|
+
npx slowlane apple get-metadata com.example.app
|
|
58
|
+
|
|
59
|
+
# View full metadata for a specific language
|
|
60
|
+
npx slowlane apple get-metadata com.example.app en-US
|
|
61
|
+
|
|
62
|
+
# Save metadata from live version to JSON
|
|
63
|
+
npx slowlane apple get-metadata com.example.app --from live --json > metadata.json
|
|
64
|
+
|
|
65
|
+
# Create a new version
|
|
66
|
+
npx slowlane apple create-version com.example.app 2.0.0
|
|
67
|
+
|
|
68
|
+
# Update metadata from JSON file
|
|
69
|
+
npx slowlane apple set-metadata com.example.app -f metadata.json
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Google Play
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
# List all apps
|
|
76
|
+
npx slowlane google list-apps
|
|
77
|
+
|
|
78
|
+
# View metadata for all languages
|
|
79
|
+
npx slowlane google get-metadata com.example.app
|
|
80
|
+
|
|
81
|
+
# View full metadata for a specific language
|
|
82
|
+
npx slowlane google get-metadata com.example.app en-US
|
|
83
|
+
|
|
84
|
+
# Save metadata to JSON
|
|
85
|
+
npx slowlane google get-metadata com.example.app --json > metadata.json
|
|
86
|
+
|
|
87
|
+
# Update metadata from JSON (staged, not sent for review)
|
|
88
|
+
npx slowlane google set-metadata com.example.app -f metadata.json
|
|
89
|
+
|
|
90
|
+
# Update and send for review immediately
|
|
91
|
+
npx slowlane google set-metadata com.example.app -f metadata.json --send-for-review
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## Typical Workflow
|
|
95
|
+
|
|
96
|
+
1. **Export current metadata** from the live version as a starting point
|
|
97
|
+
2. **Edit the JSON** file to update descriptions, keywords, etc.
|
|
98
|
+
3. **Create a new version** (Apple only - Google doesn't require this for metadata)
|
|
99
|
+
4. **Import the updated metadata** from the JSON file
|
|
100
|
+
5. **Review and submit** in the respective console UI
|
|
101
|
+
|
|
102
|
+
## Author
|
|
103
|
+
|
|
104
|
+
Alexander Fenster, slowlane@fenster.name
|
|
105
|
+
|
|
106
|
+
100% vibe coded with [Claude Code](https://claude.ai/code)
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
export interface AppStoreConnectConfig {
|
|
2
|
+
issuer_id: string;
|
|
3
|
+
key_id: string;
|
|
4
|
+
private_key_path: string;
|
|
5
|
+
}
|
|
6
|
+
export interface GooglePlayConfig {
|
|
7
|
+
service_account_path: string;
|
|
8
|
+
packages?: string[];
|
|
9
|
+
}
|
|
10
|
+
export interface SlowlaneConfig {
|
|
11
|
+
appstore_connect?: AppStoreConnectConfig;
|
|
12
|
+
google_play?: GooglePlayConfig;
|
|
13
|
+
}
|
|
14
|
+
interface ResourceLinks {
|
|
15
|
+
self: string;
|
|
16
|
+
}
|
|
17
|
+
interface AppAttributes {
|
|
18
|
+
name: string;
|
|
19
|
+
bundleId: string;
|
|
20
|
+
sku: string;
|
|
21
|
+
primaryLocale: string;
|
|
22
|
+
isOrEverWasMadeForKids: boolean;
|
|
23
|
+
subscriptionStatusUrl?: string;
|
|
24
|
+
subscriptionStatusUrlVersion?: string;
|
|
25
|
+
subscriptionStatusUrlForSandbox?: string;
|
|
26
|
+
subscriptionStatusUrlVersionForSandbox?: string;
|
|
27
|
+
contentRightsDeclaration?: string;
|
|
28
|
+
streamlinedPurchasingEnabled: boolean;
|
|
29
|
+
}
|
|
30
|
+
interface AppRelationships {
|
|
31
|
+
appStoreVersions?: {
|
|
32
|
+
links: ResourceLinks;
|
|
33
|
+
};
|
|
34
|
+
builds?: {
|
|
35
|
+
links: ResourceLinks;
|
|
36
|
+
};
|
|
37
|
+
betaAppLocalizations?: {
|
|
38
|
+
links: ResourceLinks;
|
|
39
|
+
};
|
|
40
|
+
betaGroups?: {
|
|
41
|
+
links: ResourceLinks;
|
|
42
|
+
};
|
|
43
|
+
preReleaseVersions?: {
|
|
44
|
+
links: ResourceLinks;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export interface App {
|
|
48
|
+
type: 'apps';
|
|
49
|
+
id: string;
|
|
50
|
+
attributes: AppAttributes;
|
|
51
|
+
relationships?: AppRelationships;
|
|
52
|
+
links: ResourceLinks;
|
|
53
|
+
}
|
|
54
|
+
interface AppInfoAttributes {
|
|
55
|
+
appStoreState: string;
|
|
56
|
+
appStoreAgeRating?: string;
|
|
57
|
+
brazilAgeRating?: string;
|
|
58
|
+
brazilAgeRatingV2?: string;
|
|
59
|
+
kidsAgeBand?: string;
|
|
60
|
+
state: string;
|
|
61
|
+
}
|
|
62
|
+
interface AppInfo {
|
|
63
|
+
type: 'appInfos';
|
|
64
|
+
id: string;
|
|
65
|
+
attributes: AppInfoAttributes;
|
|
66
|
+
links: ResourceLinks;
|
|
67
|
+
}
|
|
68
|
+
interface AppInfoLocalizationAttributes {
|
|
69
|
+
locale: string;
|
|
70
|
+
name?: string;
|
|
71
|
+
subtitle?: string;
|
|
72
|
+
privacyPolicyUrl?: string;
|
|
73
|
+
privacyChoicesUrl?: string;
|
|
74
|
+
privacyPolicyText?: string;
|
|
75
|
+
}
|
|
76
|
+
export interface AppInfoLocalization {
|
|
77
|
+
type: 'appInfoLocalizations';
|
|
78
|
+
id: string;
|
|
79
|
+
attributes: AppInfoLocalizationAttributes;
|
|
80
|
+
links: ResourceLinks;
|
|
81
|
+
}
|
|
82
|
+
interface AppStoreVersionLocalizationAttributes {
|
|
83
|
+
locale: string;
|
|
84
|
+
description?: string;
|
|
85
|
+
keywords?: string;
|
|
86
|
+
marketingUrl?: string;
|
|
87
|
+
promotionalText?: string;
|
|
88
|
+
supportUrl?: string;
|
|
89
|
+
whatsNew?: string;
|
|
90
|
+
}
|
|
91
|
+
export interface AppStoreVersionLocalization {
|
|
92
|
+
type: 'appStoreVersionLocalizations';
|
|
93
|
+
id: string;
|
|
94
|
+
attributes: AppStoreVersionLocalizationAttributes;
|
|
95
|
+
links: ResourceLinks;
|
|
96
|
+
}
|
|
97
|
+
export type Platform = 'IOS' | 'MAC_OS' | 'TV_OS' | 'VISION_OS';
|
|
98
|
+
interface AppStoreVersionAttributes {
|
|
99
|
+
platform: Platform;
|
|
100
|
+
versionString: string;
|
|
101
|
+
appStoreState: string;
|
|
102
|
+
appVersionState: string;
|
|
103
|
+
copyright?: string;
|
|
104
|
+
releaseType?: string;
|
|
105
|
+
earliestReleaseDate?: string;
|
|
106
|
+
downloadable: boolean;
|
|
107
|
+
createdDate: string;
|
|
108
|
+
}
|
|
109
|
+
export interface AppStoreVersion {
|
|
110
|
+
type: 'appStoreVersions';
|
|
111
|
+
id: string;
|
|
112
|
+
attributes: AppStoreVersionAttributes;
|
|
113
|
+
links: ResourceLinks;
|
|
114
|
+
}
|
|
115
|
+
export interface AppMetadata {
|
|
116
|
+
app: App;
|
|
117
|
+
appInfo: AppInfo;
|
|
118
|
+
liveVersion?: AppStoreVersion;
|
|
119
|
+
editableVersion?: AppStoreVersion;
|
|
120
|
+
localizations: LocalizedMetadata[];
|
|
121
|
+
}
|
|
122
|
+
export interface LocalizedMetadata {
|
|
123
|
+
locale: string;
|
|
124
|
+
name?: string;
|
|
125
|
+
subtitle?: string;
|
|
126
|
+
description?: string;
|
|
127
|
+
keywords?: string;
|
|
128
|
+
whatsNew?: string;
|
|
129
|
+
promotionalText?: string;
|
|
130
|
+
marketingUrl?: string;
|
|
131
|
+
supportUrl?: string;
|
|
132
|
+
privacyPolicyUrl?: string;
|
|
133
|
+
}
|
|
134
|
+
export declare class AppStoreConnectClient {
|
|
135
|
+
private readonly issuerId;
|
|
136
|
+
private readonly keyId;
|
|
137
|
+
private readonly privateKey;
|
|
138
|
+
private readonly baseUrl;
|
|
139
|
+
constructor(config: AppStoreConnectConfig, configDir: string);
|
|
140
|
+
private generateToken;
|
|
141
|
+
private request;
|
|
142
|
+
listApps(): Promise<App[]>;
|
|
143
|
+
getAppByBundleId(bundleId: string): Promise<App | null>;
|
|
144
|
+
getAppMetadata(bundleId: string, fromVersion?: 'live' | 'editable'): Promise<AppMetadata>;
|
|
145
|
+
getLatestVersion(bundleId: string): Promise<AppStoreVersion | null>;
|
|
146
|
+
createVersion(bundleId: string, versionString: string, platform?: Platform): Promise<AppStoreVersion>;
|
|
147
|
+
setMetadata(bundleId: string, localizations: LocalizedMetadata[]): Promise<SetMetadataResult>;
|
|
148
|
+
}
|
|
149
|
+
export interface SetMetadataResult {
|
|
150
|
+
appInfoLocalizationsUpdated: string[];
|
|
151
|
+
appInfoLocalizationsCreated: string[];
|
|
152
|
+
versionLocalizationsUpdated: string[];
|
|
153
|
+
versionLocalizationsCreated: string[];
|
|
154
|
+
}
|
|
155
|
+
export {};
|