|
|
@@ -7,8 +7,6 @@ plugins { |
|
|
|
|
|
|
|
def versionCode = 1 |
|
|
|
def versionName = "0.0.1.011" |
|
|
|
def mavenUrl = "http://127.0.0.1:1022/repository/maven-releases/" |
|
|
|
def mavenUrlN = "https://nexus.51trust.net/repository/android-hosted/" |
|
|
|
|
|
|
|
android { |
|
|
|
namespace 'cn.org.bjca.trust.push' |
|
|
@@ -50,10 +48,20 @@ android { |
|
|
|
kotlinOptions { |
|
|
|
jvmTarget = '1.8' |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
repositories{ |
|
|
|
flatDir { |
|
|
|
dirs 'libs' |
|
|
|
} |
|
|
|
} |
|
|
|
repositories { |
|
|
|
flatDir { |
|
|
|
dirs 'libs' |
|
|
|
} |
|
|
|
} |
|
|
|
dependencies { |
|
|
|
|
|
|
|
implementation fileTree(dir: 'libs',includes: ['*.jar','*.aar']) |
|
|
|
implementation 'androidx.core:core-ktx:1.7.0' |
|
|
|
implementation 'androidx.appcompat:appcompat:1.4.1' |
|
|
|
implementation 'com.google.android.material:material:1.5.0' |
|
|
@@ -66,6 +74,9 @@ dependencies { |
|
|
|
kapt("androidx.room:room-compiler:2.5.0") |
|
|
|
// implementation("androidx.room:room-ktx:2.5.0") |
|
|
|
|
|
|
|
// 小米推送 |
|
|
|
// implementation (name: 'MiPush_SDK_Client_5_3_0-C_3rd', ext: 'aar') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// 这个是把源码打入aar包中的任务 |
|
|
@@ -87,7 +98,7 @@ afterEvaluate { |
|
|
|
// 这里除了有debug 还有release |
|
|
|
from components.release |
|
|
|
// 运行任务,把源码打进去 |
|
|
|
// artifact sourceJar |
|
|
|
artifact sourceJar |
|
|
|
} |
|
|
|
} |
|
|
|
// 添加仓库地址 |
|
|
@@ -95,19 +106,19 @@ afterEvaluate { |
|
|
|
maven { |
|
|
|
allowInsecureProtocol(true) |
|
|
|
name = "xuqm" |
|
|
|
url = mavenUrl |
|
|
|
url = mavenXuqm.mavenUrl |
|
|
|
credentials { |
|
|
|
username(maven.username) |
|
|
|
password(maven.password) |
|
|
|
username(mavenXuqm.username) |
|
|
|
password(mavenXuqm.password) |
|
|
|
} |
|
|
|
} |
|
|
|
maven { |
|
|
|
allowInsecureProtocol(true) |
|
|
|
name = "szyx" |
|
|
|
url = mavenUrlN |
|
|
|
url = mavenSzyx.mavenUrl |
|
|
|
credentials { |
|
|
|
username("deployment") |
|
|
|
password("deployment123") |
|
|
|
username(mavenSzyx.username) |
|
|
|
password(mavenSzyx.password) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|