This repository has been archived by the owner on Jan 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathbuild.gradle
76 lines (69 loc) · 1.92 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
group 'io.github.nullptrx.pangleflutter'
version '2.0.1'
buildscript {
ext.kotlin_version = '[1.3.40,1.8.10]'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
rootProject.allprojects {
repositories {
google()
mavenCentral()
// maven { url 'http://localhost:8081/repository/m2/' }
// maven { url 'https://raw.githubusercontent.com/nullptrX/repo/master/m2' }
// maven { url 'https://cdn.jsdelivr.net/gh/nullptrX/repo/m2/' }
maven { url 'https://artifact.bytedance.com/repository/pangle' }
}
}
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader -> localProperties.load(reader)
}
}
android {
namespace 'io.github.nullptrx.pangleflutter'
compileSdkVersion 31
// compileOptions {
// sourceCompatibility JavaVersion.VERSION_17
// targetCompatibility JavaVersion.VERSION_17
// }
//
// kotlin {
// jvmToolchain(17)
// }
//
// kotlinOptions {
// jvmTarget = '17'
// }
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
defaultConfig {
minSdkVersion 19
}
lintOptions {
disable 'InvalidPackage'
}
buildTypes {
release {
consumerProguardFiles "proguard-rules.pro"
}
}
/*gradle.buildFinished { r ->
System.err.println "pangle_flutter: $kEnv"
}*/
}
dependencies {
api 'com.pangle.cn:ads-sdk-pro:[5.4,5.5)'
implementation 'androidx.appcompat:appcompat:[1.3,1.4)'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}