Skip to content

Commit

Permalink
发布到jitpack
Browse files Browse the repository at this point in the history
  • Loading branch information
QDong415 committed Feb 19, 2022
1 parent ee0c9e0 commit 60ecd82
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
23 changes: 18 additions & 5 deletions drawgift/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,26 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

//编译成jitpack依赖库需要添加下面的这段
afterEvaluate {
publishing {
publications {
// Creates a Maven publication called "release".
release(MavenPublication) {
// Applies the component for the release build variant.
from components.release

// You can then customize attributes of the publication as shown below.
groupId = 'com.qdong.drawgift'
artifactId = 'drawgift'
version = '1.1'
}
}
}
}
}

dependencies {

implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.3.0'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
}
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ public void addDrawGifts(List<DrawGiftModel> currentDrawGiftArray, boolean inser
//添加到队列
if (insertToFirst){
if (allDrawGiftsLinkedList.size() > 0){
//说明队列里已经有画在draw了。由于我目前的逻辑是:取first节点,画完了再remove;而不是先remove再设置为全局变量
//所以要插入到第1个元素
//说明队列里已经有画在draw了。
//由于我目前的逻辑是:取first节点,画完了再remove;而不是先remove再设置为全局变量。所以要插入到第1个元素
allDrawGiftsLinkedList.add(1, currentDrawGiftArray);
} else {
//说明当前列表是空的,直接插入到表头
Expand Down

0 comments on commit 60ecd82

Please sign in to comment.