Pgyer internal test distribution service is a leading mobile application internal test distribution platform in China, dedicated to providing easy-to-use App internal test distribution services for mobile developers and test users.
Pgyer Developer Service Platform is committed to providing excellent upstream and downstream services for developers, addressing the various needs of developers throughout the developer life cycle.
Scan QR code to follow
Pgyer WeChat Official Account
Get the latest news, official benefits, promotions and other information
Pgyer document center
登录蒲公英官网后,ukey
和apiKey
可以在蒲公英的「账户设置」中找到,之后在初始化sdk 方法中使用
到需要集成 sdk 的 App 详情页面的撒大事,获取 appKey
,如下图所示
添加代码到project下的build.gradle文件中:
allprojects {
repositories {
jcenter()
maven { url "https://raw.githubusercontent.com/Pgyer/mvn_repo_pgyer/master" }
}
}
然后在module下的build.gradle文件中添加依赖即可:
dependencies {
compile 'com.pgyer.welfare:library:0.1'
}
方法一:在工程的 Application
中 onCreate()
方法中初始化:
PgyerWelfare.initi(<ukey>,<api_key>,<appKey>);
方法二:在需要使用的Activity
中的onCreate()
方法中初始化:
PgyerWelfare.initi(<ukey>,<api_key>,<appKey>);
注意:
在使用激活 sdk 展示页面的方法前必须初始化参数,否则不能激活 sdk 功能:
DEBUG
模式下不正确的集成方式会抛出异常,例如:
java.lang.IllegalStateException: please invoke before inti();
REALSE
模式下不正确的集成方式会打印 Log 在控制台,例如:
E/Welfare -PgyerWelfare: please invoke before initi();
PgyerWelfare.invoke();
开发者在确保初始化完成前,可以通过任意的方式集成,示例中是通过设置按钮的点击事件激活广告页面的展示,通过点击将会触发以下效果:
About Us
Product Services
Your account information is under review and can not be used temporarily; you can:
Check out the help documentation for common ways to work on the Pgyer's platform;
Check Pgyer's App Auditing , which must be viewed before uploading.
Currently, the real-name authentication has not been completed, and the number of downloads for each version is limited to 0 times/day, After real-name authentication, it can be extended to 500 times/day
TestFlight is only available to Professional users.(Click understand pgyer's price plan)
支付成功
Pgyer VIP User Group
(Please open WeChat - Sweep and join the group chat)