Skip to content

Commit cff097c

Browse files
committed
add cmd
1 parent 37e2456 commit cff097c

4 files changed

Lines changed: 27 additions & 1 deletion

File tree

install.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
# -r: replace existing application
3+
# -d: allow version code downgrade
4+
5+
#adb install -r -d ./app/build/outputs/apk/app-release.apk
6+
7+
/home/liyujiang/Android/Sdk/platform-tools/adb install -r -d ./app/build/outputs/apk/app-debug.apk

library/MultiplePicker/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apply plugin: 'com.android.library'
22

33
ext {
4-
isLibrary = true
4+
isLibrary = false
55
pomArtifactId = "MultiplePicker"
66
pomDescription = "multiple picker for android"
77
}

publish.cmd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@rem C:\Users\Administrator\.m2\repository
2+
@rem http://jcenter.bintray.com
3+
./gradlew.bat publishToMavenLocal bintrayUpload --stacktrace

publish.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env bash
2+
3+
p="$1";
4+
if [ -z "${p}" ]; then
5+
echo "can use parameter 'upload' to upload to jcenter, too";
6+
p="null";
7+
fi
8+
echo "parameter is ${p}";
9+
10+
if [ ${p} = "upload" ]; then
11+
# http://jcenter.bintray.com
12+
./gradlew publishToMavenLocal bintrayUpload --stacktrace
13+
else
14+
#/home/liyujiang/.m2/repository
15+
./gradlew publishToMavenLocal --stacktrace
16+
fi

0 commit comments

Comments
 (0)