production
4
总安装量
2
周安装量
#49128
全站排名
安装命令
npx skills add https://github.com/pluginagentmarketplace/custom-plugin-android --skill production
Agent 安装分布
claude-code
2
mcpjam
1
moltbot
1
windsurf
1
zencoder
1
Skill 文档
Production Quality Skill
Quick Start
Unit Testing
@Test
fun loadUser_updates_state() = runTest {
val user = User(1, "John")
val mockRepo = mockk<UserRepository>()
coEvery { mockRepo.getUser(1) } returns user
val viewModel = UserViewModel(mockRepo)
viewModel.loadUser(1)
assertEquals(user, viewModel.state.value)
}
Security
// Encrypted storage
val prefs = EncryptedSharedPreferences.create(context, "secret",
MasterKey.Builder(context).build(), AES256_SIV, AES256_GCM)
// SSL pinning
CertificatePinner.Builder()
.add("api.example.com", "sha256/...").build()
Play Store Deployment
./gradlew bundleRelease
# Upload to Google Play Console
# Monitor crashes and ratings
Key Concepts
Testing
- Unit tests (70-80% coverage)
- Integration tests
- UI tests with Espresso
- Mock external dependencies
Performance
- ANR prevention
- Memory leak detection
- 60 FPS target
- Battery optimization
Security
- Data encryption
- HTTPS/SSL pinning
- Permission handling
- OWASP Top 10
Deployment
- Internal â Closed â Open â Production
- Staged rollout strategy
- Crash analytics monitoring
- User rating management
Best Practices
â Write comprehensive tests â Profile regularly â Implement security features â Monitor production apps â Use staged rollouts