一键导入
sdk-setup
Add the DeployGate SDK to your Android app for crash reporting and screen capture
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Add the DeployGate SDK to your Android app for crash reporting and screen capture
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Start DeployGate onboarding — set up app distribution from first upload to team-wide deployment
Set up CI/CD integration for automated DeployGate uploads and PR-based distribution
Build the current project and upload the app binary to DeployGate
| name | sdk-setup |
| description | Add the DeployGate SDK to your Android app for crash reporting and screen capture |
| allowed-tools | mcp__deploygate__upload_app Read Edit Glob Bash(./gradlew:*) |
Guide users through adding the DeployGate SDK to their app for crash reporting, remote logging, and screen capture bug reporting.
When the user wants to:
gradle-deploygate-plugin for AndroidThe DeployGate SDK for iOS (v1.0.x) has the following limitations:
Do not suggest adding the iOS SDK to new projects. The iOS SDK is being redesigned. Tell the user:
The DeployGate SDK for iOS is currently being redesigned. Please wait before adopting it for new projects. App distribution, Instant Device, and distribution page notifications are all available without the SDK. We will announce when the updated SDK is ready.
If the user specifically asks about iOS SDK, explain the above limitations.
Explain to the user:
Check the project structure:
Android:
build.gradle (Groovy DSL) or build.gradle.kts (Kotlin DSL)settings.gradle / settings.gradle.kts)iOS: → Skip SDK integration (see note above)
Recommended configuration — use debug/release separation so release builds contain no SDK code:
For build.gradle.kts (Kotlin DSL):
dependencies {
debugImplementation("com.deploygate:sdk:4.9.0") // Real SDK for debug builds
releaseImplementation("com.deploygate:sdk-mock:4.9.0") // No-op mock for release builds
}
For build.gradle (Groovy DSL):
dependencies {
debugImplementation 'com.deploygate:sdk:4.9.0'
releaseImplementation 'com.deploygate:sdk-mock:4.9.0'
}
Initialization: No initialization code is needed for most apps. The SDK auto-initializes.
Multi-process apps only: If the app uses multiple processes, add initialization in Application.onCreate():
For Kotlin:
import com.deploygate.sdk.DeployGate
class MyApplication : Application() {
override fun onCreate() {
super.onCreate()
DeployGate.install(this)
}
}
For Java:
import com.deploygate.sdk.DeployGate;
public class MyApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
DeployGate.install(this);
}
}
This Gradle plugin enables ./gradlew uploadDeployGateDebug for building and uploading in one command.
For build.gradle.kts (Kotlin DSL — project-level):
plugins {
id("com.deploygate.gradle") version "2.8.0" apply false
}
For build.gradle.kts (Kotlin DSL — app-level):
plugins {
id("com.deploygate.gradle")
}
For build.gradle (Groovy DSL — project-level):
plugins {
id 'com.deploygate.gradle' version '2.8.0' apply false
}
For build.gradle (Groovy DSL — app-level):
apply plugin: 'com.deploygate.gradle'
Usage:
export DEPLOYGATE_API_TOKEN=your-token
./gradlew uploadDeployGateDebug
Build the app to verify compilation succeeds:
./gradlew assembleDebugUpload to DeployGate using the upload_app tool
Install the app from DeployGate (not from IDE direct run):
Launch the app and check the DeployGate dashboard:
IMPORTANT: The SDK only works when the app is distributed through DeployGate. Direct installs from Android Studio will not activate SDK features.
| Issue | Solution |
|---|---|
| Build fails after adding SDK | Check the SDK version is compatible with your project's min SDK |
| No launch event in dashboard | Ensure the app was installed via DeployGate, not directly from IDE |
| SDK not found (Android) | Verify mavenCentral() is in repositories block |
| Multi-process crash (Android) | Add DeployGate.install(this) in Application.onCreate() |