mirror of
https://github.com/RxReader/tencent_kit.git
synced 2025-05-21 09:16:31 +08:00
37 lines
770 B
Dart
37 lines
770 B
Dart
//
|
|
//使用方法
|
|
//
|
|
//apply from: 'tencent-setup.gradle'
|
|
//
|
|
|
|
buildscript {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:7.1.2'
|
|
classpath 'com.squareup.okio:okio:1.17.2'
|
|
}
|
|
}
|
|
|
|
android {
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
}
|
|
|
|
apply plugin: TencentSetupPlugin
|
|
|
|
class TencentSetupPlugin implements Plugin<Project> {
|
|
@Override
|
|
void apply(Project target) {
|
|
target.plugins.withId('com.android.application') {
|
|
target.android.defaultConfig.manifestPlaceholders += [
|
|
TENCENT_APP_ID: "your tencent appId"
|
|
]
|
|
}
|
|
}
|
|
}
|