Thanks to visit codestin.com
Credit goes to github.com

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

Commit 44bb074

Browse files
committed
Using pubman gradle script
1 parent 0ef2a63 commit 44bb074

3 files changed

Lines changed: 20 additions & 127 deletions

File tree

build.gradle

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,28 +19,6 @@ buildscript {
1919
deps.test = "com.android.support.test:runner:1.0.2"
2020
deps.espresso = "com.android.support.test.espresso:espresso-core:3.0.2"
2121

22-
def pub = [:]
23-
ext.pub = pub
24-
25-
pub.packaging = 'aar'
26-
pub.groupId = 'com.samelody.modapter'
27-
pub.artifactId = 'modapter'
28-
pub.libraryRepo = 'maven'
29-
pub.libraryId = 'modapter'
30-
pub.libraryName = 'Modapter'
31-
pub.libraryDescription = 'Modular adapter for Android RecyclerView.'
32-
pub.libraryVersion = deps.libVersionName
33-
pub.libraryVersionCode = deps.libVersionCode
34-
pub.siteUrl = 'https://github.com/samelody/modapter'
35-
pub.gitUrl = 'https://github.com/samelody/modapter.git'
36-
pub.issueUrl = 'https://github.com/samelody/modapter/issues'
37-
pub.developerId = 'belinwu'
38-
pub.developerName = 'Belin Wu'
39-
pub.developerEmail = '[email protected]'
40-
pub.licenseName = 'Apache License 2.0'
41-
pub.licenseUrl = 'https://raw.githubusercontent.com/samelody/modapter/master/LICENSE'
42-
pub.licenses = ["Apache-2.0"]
43-
4422
repositories {
4523
google()
4624
jcenter()

library/build.gradle

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,23 @@ dependencies {
2929
androidTestImplementation deps.espresso
3030
}
3131

32-
apply from: "../publish.gradle"
32+
ext.pubspec = [:]
33+
34+
pubspec.packaging = 'aar'
35+
pubspec.groupId = 'com.samelody.modapter'
36+
pubspec.artifactId = 'modapter'
37+
pubspec.repo = 'maven'
38+
pubspec.name = 'Modapter'
39+
pubspec.description = 'Modular adapter for Android RecyclerView.'
40+
pubspec.version = deps.libVersionName
41+
pubspec.url = 'https://github.com/samelody/modapter'
42+
pubspec.gitUrl = 'https://github.com/samelody/modapter.git'
43+
pubspec.issueUrl = 'https://github.com/samelody/modapter/issues'
44+
pubspec.developerId = 'belinwu'
45+
pubspec.developerName = 'Belin Wu'
46+
pubspec.developerEmail = '[email protected]'
47+
pubspec.licenseName = 'Apache License 2.0'
48+
pubspec.licenseUrl = 'https://raw.githubusercontent.com/samelody/modapter/master/LICENSE'
49+
pubspec.licenses = ["Apache-2.0"]
50+
51+
apply from: "https://raw.githubusercontent.com/samelody/pubman/master/pub.gradle"

publish.gradle

Lines changed: 0 additions & 104 deletions
This file was deleted.

0 commit comments

Comments
 (0)