Skip to content
Permalink
Browse files

Refine plugin sign and upload

  • Loading branch information...
madeye committed Feb 21, 2019
1 parent d775978 commit 0a2480227f8d07e1ecf5c6312bbabd4c671b3908
Showing with 47 additions and 137 deletions.
  1. +1 −0 build.gradle
  2. +24 −4 plugin/build.gradle
  3. +0 −133 plugin/gradle-mvn-push.gradle
  4. +22 −0 plugin/gradle.properties
@@ -26,6 +26,7 @@ buildscript {
}

dependencies {
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.8.0'
classpath 'com.android.tools.build:gradle:3.3.1'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.20.0'
classpath 'com.google.gms:google-services:4.2.0'
@@ -1,8 +1,17 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'com.vanniktech.maven.publish'

apply from: 'gradle-mvn-push.gradle'
@SuppressWarnings("GroovyUnusedDeclaration")
def getRepositoryUsername() {
return hasProperty('NEXUS_USERNAME') ? NEXUS_USERNAME : ""
}

@SuppressWarnings("GroovyUnusedDeclaration")
def getRepositoryPassword() {
return hasProperty('NEXUS_PASSWORD') ? NEXUS_PASSWORD : ""
}

android {
buildToolsVersion rootProject.buildToolsVersion
@@ -11,10 +20,10 @@ android {
defaultConfig {
minSdkVersion rootProject.minSdkVersion
targetSdkVersion rootProject.sdkVersion
versionCode 9
versionName "1.2.0"
versionCode Integer.parseInt(VERSION_CODE)
versionName VERSION_NAME

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunner "androidx.testgetRepositoryPassword().runner.AndroidJUnitRunner"
}

buildTypes {
@@ -28,6 +37,17 @@ androidExtensions {
experimental = true
}

mavenPublish {
targets {
uploadArchives {
releaseRepositoryUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
snapshotRepositoryUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
repositoryUsername = getRepositoryUsername()
repositoryPassword = getRepositoryPassword()
}
}
}

dependencies {
api "androidx.core:core-ktx:1.0.1"
api "com.google.android.material:material:1.1.0-alpha03"

This file was deleted.

Oops, something went wrong.
@@ -0,0 +1,22 @@
GROUP=com.github.shadowsocks
VERSION_NAME=1.2.0
VERSION_CODE=9

POM_ARTIFACT_ID=plugin
POM_NAME=Shadowsocks Plugin
POM_PACKAGING=aar

POM_DESCRIPTION=SIP003 plugin for Shadowsocks
POM_INCEPTION_YEAR=2018

POM_URL=https://github.com/shadowsocks/shadowsocks-android
POM_SCM_URL=https://github.com/shadowsocks/shadowsocks-android
POM_SCM_CONNECTION=scm:git:git://github.com/shadowsocks/shadowsocks-android.git
POM_SCM_DEV_CONNECTION=scm:git:ssh://git@github.com/shadowsocks/shadowsocks-android.git

POM_LICENCE_NAME=The GNU General Public License v3.0
POM_LICENCE_URL=https://www.gnu.org/licenses/gpl-3.0.html
POM_LICENCE_DIST=repo

POM_DEVELOPER_ID=Mygod
POM_DEVELOPER_NAME=Mygod Studio

2 comments on commit 0a24802

@DearTanker

This comment has been minimized.

Copy link

replied Feb 21, 2019

universal-4.7.1.apk
这个包大小比上个版本小了一倍多。

@pexcn

This comment has been minimized.

Copy link
Contributor

replied Feb 21, 2019

可能是因为替换掉了 overtrue 吧

Please sign in to comment.
You can’t perform that action at this time.