Skip to content
This repository was archived by the owner on Jul 21, 2024. It is now read-only.

Commit 26dcc24

Browse files
committed
+ Maven Center 发布
1 parent 484716c commit 26dcc24

File tree

31 files changed

+260
-189
lines changed

31 files changed

+260
-189
lines changed

.dockerignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44
/Dockerfile
55
/webdav.log
66
/webdav.log*
7-
/build
7+
/build
8+
/ext/secring.gpg
9+
local.properties

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,5 @@ out/
3939
*.log.*
4040

4141
local.properties
42-
/conf/meta.json
42+
/conf/meta.json
43+
/ext/secring.gpg

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,35 @@ sudo kubectl apply -f k8s_app.yaml
135135

136136

137137
```
138+
139+
# SDK使用
140+
```gradle
141+
//依赖
142+
compileOnly "org.projectlombok:lombok:1.18.26"
143+
annotationProcessor "org.projectlombok:lombok"
144+
implementation "com.squareup.okhttp3:okhttp:3.12.13" //api19
145+
implementation "com.squareup.okhttp3:logging-interceptor:3.12.13" //api19
146+
implementation "com.google.code.gson:gson:2.8.9"
147+
148+
//主要
149+
implementation "net.xdow:aliyundrive-sdk-openapi:1.0.2"
150+
implementation "net.xdow:aliyundrive-sdk-webapi:1.0.2"
151+
152+
//可选
153+
implementation "net.xdow:webdav:1.0.2"
154+
implementation "net.xdow:webdav-jakarta:1.0.2"
155+
implementation "net.xdow:webdav-javax:1.0.2"
156+
implementation "net.xdow:aliyundrive-webdav-internal:1.0.2"
157+
implementation "net.xdow:aliyundrive-android-core:1.0.2"
158+
implementation "net.xdow:jap-http:1.0.2"
159+
implementation "net.xdow:jap-http-jakarta-adapter:1.0.2"
160+
implementation "net.xdow:jap-http-javax-adapter:1.0.2"
161+
```
162+
## 基础用法
163+
```java
164+
AliyunDrive.newAliyunDrive()
165+
```
166+
138167
# QQ群
139168
> 群号(已满):789738128
140169
File renamed without changes.

android-core/build.gradle renamed to aliyundrive-android-core/build.gradle

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ buildscript {
1212
}
1313
}
1414

15-
plugins {
16-
id 'maven-publish'
17-
}
1815
apply plugin: 'com.android.library'
1916

17+
group 'net.xdow'
18+
version '1.0.2'
19+
description 'AliyunDrive Webdav Android Core'
20+
2021
repositories {
2122
google()
2223
mavenCentral()
@@ -28,7 +29,7 @@ android {
2829
minSdk 19
2930
targetSdk 30
3031
versionCode 1
31-
versionName "1.0"
32+
versionName project.version
3233
multiDexEnabled false //设置为true会导致低端设备崩溃 模拟器API30-19
3334
}
3435

@@ -94,18 +95,4 @@ android.libraryVariants.all { variant ->
9495
tasks["generate${variant.name.capitalize()}Assets"].dependsOn(buildWarTask)
9596
}
9697

97-
afterEvaluate {
98-
publishing {
99-
publications {
100-
release(MavenPublication) {
101-
groupId = 'net.xdow' //publish
102-
artifactId = 'aliyundrive-android-core'
103-
version = '1.0.0'
104-
from components.release
105-
}
106-
}
107-
repositories {
108-
mavenLocal()
109-
}
110-
}
111-
}
98+
apply from: rootProject.file('gradle/maven-center-publish-android.gradle')

0 commit comments

Comments
 (0)