plugins {
    id 'com.android.library'
//    id 'maven-publish'
//    id 'signing'
}
apply from:'maven_publish.gradle' //依赖 maven 发布脚本

android {
    compileSdk compileSdkVer
//    compileSdkVersion compileSdkVer
    
    defaultConfig {
        minSdkVersion 21
        targetSdkVersion 25 // >23 宿主APP需要动态申请相关权限

//        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    repositories {

        // 添加下面的内容
//        flatDir {
//            dirs 'libs'
//        }

        // ... jcenter() 等其他仓库
    }
    namespace 'common.pay.sdk'

    publishing {
        singleVariant('release') {
            withSourcesJar() //带源码
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar','*.aar'])
//    androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.2' {
//        exclude group: 'com.android.support', module: 'support-annotations'
//    })
//    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
//    implementation(name: 'alipaySdk-15.6.2', ext: 'aar')
//    implementation files('libs/alipaySdk-20161009.jar') removed by fee 2019-04-24: 更新支付宝SDK
//    compile files('libs/libammsdk.jar')//
//    api 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.8.0'//2021-09-13

    api 'com.tencent.mm.opensdk:wechat-sdk-android:6.8.24'//2023-04-06

//    api 'com.alipay.sdk:alipaysdk-android:15.8.11'
    api 'com.alipay.sdk:alipaysdk-android:15.8.17'//2023-11-03
    implementation 'androidx.appcompat:appcompat:1.6.1'
    testImplementation 'junit:junit:4.13.2'
//    implementation  "androidx.activity:activity:1.8.0" appcompat 库已有依赖
//    implementation 'org.gradle.plugins:signing:7.5'
}
