Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
liyujiang-gzu committed Aug 21, 2017
2 parents 0e98003 + fa69bfb commit 30164e5
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1 deletion.
7 changes: 7 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
# -r: replace existing application
# -d: allow version code downgrade

#adb install -r -d ./app/build/outputs/apk/app-release.apk

/home/liyujiang/Android/Sdk/platform-tools/adb install -r -d ./app/build/outputs/apk/app-debug.apk
2 changes: 1 addition & 1 deletion library/MultiplePicker/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'com.android.library'

ext {
isLibrary = true
isLibrary = false
pomArtifactId = "MultiplePicker"
pomDescription = "multiple picker for android"
}
Expand Down
3 changes: 3 additions & 0 deletions publish.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@rem C:\Users\Administrator\.m2\repository
@rem http://jcenter.bintray.com
./gradlew.bat publishToMavenLocal bintrayUpload --stacktrace
16 changes: 16 additions & 0 deletions publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash

p="$1";
if [ -z "${p}" ]; then
echo "can use parameter 'upload' to upload to jcenter, too";
p="null";
fi
echo "parameter is ${p}";

if [ ${p} = "upload" ]; then
# http://jcenter.bintray.com
./gradlew publishToMavenLocal bintrayUpload --stacktrace
else
#/home/liyujiang/.m2/repository
./gradlew publishToMavenLocal --stacktrace
fi

0 comments on commit 30164e5

Please sign in to comment.