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

Commit

Permalink
Using pubman gradle script
Browse files Browse the repository at this point in the history
  • Loading branch information
belinwu committed Jan 24, 2019
1 parent 0ef2a63 commit 44bb074
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 127 deletions.
22 changes: 0 additions & 22 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,6 @@ buildscript {
deps.test = "com.android.support.test:runner:1.0.2"
deps.espresso = "com.android.support.test.espresso:espresso-core:3.0.2"

def pub = [:]
ext.pub = pub

pub.packaging = 'aar'
pub.groupId = 'com.samelody.modapter'
pub.artifactId = 'modapter'
pub.libraryRepo = 'maven'
pub.libraryId = 'modapter'
pub.libraryName = 'Modapter'
pub.libraryDescription = 'Modular adapter for Android RecyclerView.'
pub.libraryVersion = deps.libVersionName
pub.libraryVersionCode = deps.libVersionCode
pub.siteUrl = 'https://github.com/samelody/modapter'
pub.gitUrl = 'https://github.com/samelody/modapter.git'
pub.issueUrl = 'https://github.com/samelody/modapter/issues'
pub.developerId = 'belinwu'
pub.developerName = 'Belin Wu'
pub.developerEmail = '[email protected]'
pub.licenseName = 'Apache License 2.0'
pub.licenseUrl = 'https://raw.githubusercontent.com/samelody/modapter/master/LICENSE'
pub.licenses = ["Apache-2.0"]

repositories {
google()
jcenter()
Expand Down
21 changes: 20 additions & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,23 @@ dependencies {
androidTestImplementation deps.espresso
}

apply from: "../publish.gradle"
ext.pubspec = [:]

pubspec.packaging = 'aar'
pubspec.groupId = 'com.samelody.modapter'
pubspec.artifactId = 'modapter'
pubspec.repo = 'maven'
pubspec.name = 'Modapter'
pubspec.description = 'Modular adapter for Android RecyclerView.'
pubspec.version = deps.libVersionName
pubspec.url = 'https://github.com/samelody/modapter'
pubspec.gitUrl = 'https://github.com/samelody/modapter.git'
pubspec.issueUrl = 'https://github.com/samelody/modapter/issues'
pubspec.developerId = 'belinwu'
pubspec.developerName = 'Belin Wu'
pubspec.developerEmail = '[email protected]'
pubspec.licenseName = 'Apache License 2.0'
pubspec.licenseUrl = 'https://raw.githubusercontent.com/samelody/modapter/master/LICENSE'
pubspec.licenses = ["Apache-2.0"]

apply from: "https://raw.githubusercontent.com/samelody/pubman/master/pub.gradle"
104 changes: 0 additions & 104 deletions publish.gradle

This file was deleted.

0 comments on commit 44bb074

Please sign in to comment.