Skip to content

Commit ca8264d

Browse files
committed
스크립트 수정
1 parent 5e8df91 commit ca8264d

File tree

5 files changed

+68
-25
lines changed

5 files changed

+68
-25
lines changed

Demo/Demo.iml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@
8181
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" />
8282
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/symbols" />
8383
<excludeFolder url="file://$MODULE_DIR$/build/outputs" />
84-
<excludeFolder url="file://$MODULE_DIR$/build/tmp" />
8584
</content>
8685
<orderEntry type="jdk" jdkName="Android API 21 Platform" jdkType="Android SDK" />
8786
<orderEntry type="sourceFolder" forTests="false" />

Demo/src/main/res/layout/activity_main.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
android:layout_height="wrap_content"
3939
android:text="@string/lbl_open_app"
4040
android:id="@+id/play_button_02"
41+
4142
style="@style/Base.TextAppearance.AppCompat.Small"/>
4243

4344
<Button

Library/Library.iml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<module external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="AppStoreLibrary" external.system.module.version="1.0.0" type="JAVA_MODULE" version="4">
2+
<module external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="AppStoreLibrary" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
33
<component name="FacetManager">
44
<facet type="android-gradle" name="Android-Gradle">
55
<configuration>
@@ -62,6 +62,7 @@
6262
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/java" isTestSource="true" />
6363
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/jni" isTestSource="true" />
6464
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" />
65+
<excludeFolder url="file://$MODULE_DIR$/build/docs" />
6566
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/assets" />
6667
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/bundles" />
6768
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" />
@@ -81,7 +82,9 @@
8182
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/res" />
8283
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" />
8384
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/symbols" />
85+
<excludeFolder url="file://$MODULE_DIR$/build/libs" />
8486
<excludeFolder url="file://$MODULE_DIR$/build/outputs" />
87+
<excludeFolder url="file://$MODULE_DIR$/build/poms" />
8588
<excludeFolder url="file://$MODULE_DIR$/build/tmp" />
8689
</content>
8790
<orderEntry type="jdk" jdkName="Android API 21 Platform" jdkType="Android SDK" />

Library/build.gradle

Lines changed: 59 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
1+
/*
12
buildscript {
23
repositories {
3-
maven {
4-
url "https://plugins.gradle.org/m2/"
5-
}
4+
jcenter()
65
}
6+
77
dependencies {
8-
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.1"
8+
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'
9+
//classpath 'com.github.dcendents:android-maven-plugin:1.2'
910
}
1011
}
12+
*/
1113

12-
import java.text.SimpleDateFormat
14+
//import java.text.SimpleDateFormat
1315

14-
def globalVersion = new Version(currentVersion)
16+
//def globalVersion = new Version(currentVersion)
17+
18+
def group = 'net.sjava.appstore'
19+
def version = '1.0.0'
1520

1621
apply plugin: 'com.android.library'
1722
apply plugin: 'com.github.dcendents.android-maven'
@@ -24,7 +29,22 @@ android {
2429
compileSdkVersion 21
2530
buildToolsVersion "21.1.2"
2631

27-
resourcePrefix "appstorelibrary__"
32+
/*
33+
sourceSets {
34+
main {
35+
manifest.srcFile '/src/main/AndroidManifest.xml'
36+
java.srcDirs = ['src']
37+
38+
resources.srcDirs = ['src']
39+
aidl.srcDirs = ['src']
40+
41+
renderscript.srcDirs = ['src']
42+
43+
res.srcDirs = ['res']
44+
assets.srcDirs = ['assets']
45+
}
46+
}
47+
*/
2848

2949
defaultConfig {
3050
minSdkVersion 8
@@ -43,27 +63,44 @@ android {
4363
dependencies {
4464
compile fileTree(dir: 'libs', include: ['*.jar'])
4565
compile 'com.android.support:appcompat-v7:21.0.3'
46-
4766
}
4867

4968
def siteUrl = 'https://github.com/mcsong/AppStoreLibrary' // Homepage URL of the library
5069
def gitUrl = 'https://github.com/mcsong/AppStoreLibrary.git' // Git repository URL
5170

52-
group = "<maven group id>" // Maven Group ID for the artifact
71+
Properties properties = new Properties()
72+
properties.load(project.rootProject.file('local.properties').newDataInputStream())
5373

74+
def bintray_user = properties.getProperty("bintray.user")
75+
def bintray_api_key = properties.getProperty("bintray.apikey")
76+
77+
bintray {
78+
user = bintray_user
79+
key = bintray_api_key
80+
81+
configurations = ['archives'] //When uploading configuration files
82+
pkg {
83+
repo = 'maven'
84+
name = 'AppStoreLibrary'
85+
desc = 'This is a library with some AppStore features'
86+
websiteUrl = siteUrl
87+
issueTrackerUrl = 'https://github.com/mcsong/AppStoreLibrary/issues'
88+
vcsUrl = gitUrl
89+
licenses = ['Apache-2.0']
90+
labels = ['aar', 'android', 'appstore']
91+
publicDownloadNumbers = true
92+
}
93+
}
94+
95+
group ='net.sjava.appstore'
5496

5597
install {
5698
repositories.mavenInstaller {
57-
// This generates POM.xml with proper parameters
5899
pom {
59100
project {
60101
packaging 'aar'
61-
62-
// Add your description here
63-
name '<Your library description>'
102+
name 'AppStoreLibrary'
64103
url siteUrl
65-
66-
// Set your license
67104
licenses {
68105
license {
69106
name 'The Apache Software License, Version 2.0'
@@ -72,31 +109,29 @@ install {
72109
}
73110
developers {
74111
developer {
75-
id '<your user ID>'
76-
name '<your name>'
77-
email '<your email>'
112+
id 'mcsong'
113+
name 'Justin(Moo Chan) Song'
114+
email 'mcsong@gmail.com'
78115
}
79116
}
80117
scm {
81118
connection gitUrl
82119
developerConnection gitUrl
83120
url siteUrl
84-
85121
}
86122
}
87123
}
88124
}
89125
}
90126

91-
dependencies {
92-
}
93127

94128
task sourcesJar(type: Jar) {
95129
from android.sourceSets.main.java.srcDirs
96130
classifier = 'sources'
97131
}
98132

99133
task javadoc(type: Javadoc) {
134+
options.charSet = 'UTF-8'
100135
source = android.sourceSets.main.java.srcDirs
101136
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
102137
}
@@ -111,6 +146,8 @@ artifacts {
111146
archives sourcesJar
112147
}
113148

149+
150+
/*
114151
Properties properties = new Properties()
115152
properties.load(project.rootProject.file('local.properties').newDataInputStream())
116153
@@ -158,4 +195,4 @@ class Version {
158195
thisVersion
159196
}
160197
}
161-
198+
*/

build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ buildscript {
44
repositories {
55
jcenter()
66
}
7+
78
dependencies {
8-
classpath 'com.android.tools.build:gradle:1.1.0'
9+
classpath 'com.android.tools.build:gradle:1.1.2'
10+
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.1'
911
classpath 'com.github.dcendents:android-maven-plugin:1.2'
1012
// NOTE: Do not place your application dependencies here; they belong
1113
// in the individual module build.gradle files
@@ -17,3 +19,4 @@ allprojects {
1719
jcenter()
1820
}
1921
}
22+

0 commit comments

Comments
 (0)