| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- apply plugin: 'com.android.application'
- apply plugin: 'com.huawei.agconnect'
- android {
- compileSdkVersion 29
- buildToolsVersion "29.0.3"
- defaultConfig {
- applicationId "com.anji.plus.pushdemo"
- minSdkVersion 21
- targetSdkVersion 29
- versionCode 1
- versionName "1.0.0"
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- flavorDimensions "versionCode"
- //统一配置
- manifestPlaceholders = [
- "JPUSH_PKGNAME" : applicationId,
- "JPUSH_APPKEY" : "66c9266fc53b8025cb0dd919", //极光开发平台上注册的包名对应的appkey.
- "JPUSH_CHANNEL" : "developer-default", //暂时填写默认值即可.
- "appspHost" : "https://openappsp.anji-plus.com",//push请求的host
- "appspAppKey" : "3fffc7ab4e704965b3d7ebc034addef7",//为移动服务平台申请的appkey
- "appspSecretKey": "12d606b4ab5b496992c48048e2a035f1",//为移动服务平台申请的appspSecretKey
- "vivoAppId" : "105303997",//vivo 厂商通道 appID
- "vivoAppKey" : "ecaa359c8bbe601d7bbc86d29f5cc58e",//vivo 厂商通道 appKey
- "xmAppId" : "\\ 2882303761518880022",//小米 厂商通道 appID,记得如果是长数,前面加“\\ ”,有空格
- "xmAppKey" : "\\ 5161888025022",//小米 厂商通道 appKey,记得如果是长数,前面加“\\ ”,有空格
- "oppoAppKey" : "c160669462604212962064ffa2df36af",//oppo 厂商通道 appKey
- "oppoAppSecret" : "b77b1509f99043e3b695795366e929ef"//oppo 厂商通道 appSecret
- ]
- }
- signingConfigs {
- config {
- keyAlias 'pushdemo'
- keyPassword '123456'
- storeFile file('pushDemo.jks')
- storePassword '123456'
- }
- }
- buildTypes {
- debug {
- signingConfig signingConfigs.config
- }
- release {
- signingConfig signingConfigs.config
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
- }
- dependencies {
- implementation fileTree(dir: 'libs', include: ['*.jar'])
- implementation 'androidx.appcompat:appcompat:1.2.0'
- implementation 'com.google.android.material:material:1.2.1'
- implementation project(path: ':ajpushlibrary')
- testImplementation 'junit:junit:4.+'
- androidTestImplementation 'androidx.test.ext:junit:1.1.2'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
- }
|