Commit b1227ad7 authored by 王韦's avatar 王韦

[new] 引入maven

parent 424aa9d3
...@@ -31,5 +31,7 @@ dependencies { ...@@ -31,5 +31,7 @@ dependencies {
testImplementation 'junit:junit:4.12' testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0' androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation project(path: ':widgetlib') // implementation project(path: ':widgetlib')
implementation 'com.qmai.android.sdk:widget:1.1.1-SNAPSHOT@aar'
implementation project(path: ':tools')
} }
...@@ -3,9 +3,15 @@ ...@@ -3,9 +3,15 @@
buildscript { buildscript {
ext.kotlin_version = '1.3.41' ext.kotlin_version = '1.3.41'
repositories { repositories {
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }// 阿里云镜像
maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
google() google()
jcenter() jcenter()
maven {
url 'https://hub.zmcms.cn/repository/maven-public/'
}
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:3.4.2' classpath 'com.android.tools.build:gradle:3.4.2'
...@@ -17,11 +23,15 @@ buildscript { ...@@ -17,11 +23,15 @@ buildscript {
allprojects { allprojects {
repositories { repositories {
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }// 阿里云镜像
maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
google() google()
jcenter() jcenter()
maven { maven {
url 'https://hub.zmcms.cn/repository/maven-public/' url 'https://hub.zmcms.cn/repository/maven-public/'
} }
} }
} }
......
#### `QmTopBar` #### `QmTopBar`
----
接入方法 接入方法
项目的根 build.gradle加入
````
maven {
url 'https://hub.zmcms.cn/repository/maven-public/'
}
```` ````
app 的 build.gradle 中加入
````
debugImplementation 'com.qmai.android.sdk:widget:1.1.1-SNAPSHOT'
releaseImplementation 'com.qmai.android.sdk:widget:1.1.1'
```` ````
----------
用法 用法
``` ```
<com.qimai.android.widgetlib.topbar.QmTopBar <com.qimai.android.widgetlib.topbar.QmTopBar
...@@ -97,4 +115,6 @@ ...@@ -97,4 +115,6 @@
#### changelog #### changelog
\ No newline at end of file
version 1.1.1 创建项目
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment