1。先下载 Sentry CLI(例如Windows)
下载地址:Release 2.27.0 · getsentry/sentry-cli · GitHub
下载完毕解压之后在文件夹上cmd,打开命令
没有配置环境变量的使用如下命令
.\sentry-cli-Windows-x86_64.exe login
配置了环境变量的使用如下命令
sentry-cli login
请输入n手动输入token,验证成功之后就会在 C:\users\用户名\.sentryclirc 文件。
如果你是本地搭建的 Sentry ,就打开上边的生成的文件添加一句你本地ip路劲,例如
[defaults]
url=http://127.0.0.1:9000
加上这句,然后在使用上述命令登录,登录成功之后
2.使用命令上传符号表
sentry-cli-Windows-x86_64.exe upload-proguard --version 1.0.0 --project test_app --app-id com.lhy.dev --version-code 10000 --uuid a4b5662d-7b8e-4df4-a90c-383f1a195b39 mapping路径
--version 版本号
--project 项目名称
--app-id 包名
--version-code 版本code
-uuid 根据自己在下边这句的value值,有了uuid,他就能找到对应的更好的解析
<meta-data android:name="io.sentry.proguard-uuid" android:value="uuid自己生成" />
更多api或者说明见官方文档 :Browser JavaScript | Sentry Documentation