Skip to content

Commit 137e0a7

Browse files
committed
Update md file
1 parent 5a72b4a commit 137e0a7

File tree

4 files changed

+82
-13
lines changed

4 files changed

+82
-13
lines changed

Demo/Demo.iml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
</content>
8888
<orderEntry type="jdk" jdkName="Android API 22 Platform" jdkType="Android SDK" />
8989
<orderEntry type="sourceFolder" forTests="false" />
90+
<orderEntry type="library" exported="" name="library-1.0.1" level="project" />
9091
<orderEntry type="library" exported="" name="support-v4-22.0.0" level="project" />
9192
<orderEntry type="library" exported="" name="support-annotations-22.0.0" level="project" />
9293
<orderEntry type="library" exported="" name="appcompat-v7-22.0.0" level="project" />

Demo/build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
apply plugin: 'com.android.application'
22

3+
/*
4+
buildscript {
5+
repositories {
6+
mavenCentral()
7+
}
8+
}
9+
*/
10+
311
android {
412
compileSdkVersion 22
513
buildToolsVersion "22.0.1"
@@ -23,4 +31,6 @@ dependencies {
2331
compile fileTree(dir: 'libs', include: ['*.jar'])
2432
compile project(':Library')
2533
compile 'com.android.support:appcompat-v7:22.0.0'
34+
//compile 'net.sjava.appstore:library:1.0.0-SNAPSHOT'
35+
compile 'net.sjava.appstore:library:1.0.1@aar'
2636
}

Library/Library.iml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@
7474
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/res" />
7575
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" />
7676
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/symbols" />
77+
<excludeFolder url="file://$MODULE_DIR$/build/libs" />
7778
<excludeFolder url="file://$MODULE_DIR$/build/outputs" />
79+
<excludeFolder url="file://$MODULE_DIR$/build/poms" />
80+
<excludeFolder url="file://$MODULE_DIR$/build/reports" />
81+
<excludeFolder url="file://$MODULE_DIR$/build/test-results" />
7882
<excludeFolder url="file://$MODULE_DIR$/build/tmp" />
7983
</content>
8084
<orderEntry type="jdk" jdkName="Android API 22 Platform" jdkType="Android SDK" />

README.md

Lines changed: 67 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,84 @@
1-
# AppStoreLibrary
2-
This is a library for Android AppStore features.
1+
## AppStore Library
32

4-
# Gradle & Maven
5-
dependencies {
6-
compile 'net.sjava.appstore:library:1.0.1@aar'
7-
}
3+
This library make easy to use AppStore app' features.
84

9-
<dependency>
10-
<groupId>net.sjava.appstore</groupId>
11-
<artifactId>library</artifactId>
12-
<version>1.0.1</version>
13-
</dependency>
5+
- Play AppStore
6+
- Amazon AppStore
7+
- T Store
8+
- Naver AppStore
149

10+
## Gradle & Maven
11+
Gradle
12+
```groovy
13+
dependencies {
14+
compile 'net.sjava.appstore:library:1.0.1@aar'
15+
}
16+
```
1517

16-
# Licence:
18+
Maven
19+
```xml
20+
<dependency>
21+
<groupId>net.sjava.appstore</groupId>
22+
<artifactId>library</artifactId>
23+
<version>1.0.1</version>
24+
</dependency>
25+
```
26+
## Usage
27+
28+
```java
29+
private void initPlayAppStore() {
30+
Button btn01 = (Button)findViewById(R.id.play_button_01);
31+
Button btn02 = (Button)findViewById(R.id.play_button_02);
32+
Button btn03 = (Button)findViewById(R.id.play_button_03);
33+
Button btn04 = (Button)findViewById(R.id.play_button_04);
34+
35+
btn01.setOnClickListener(new View.OnClickListener() {
36+
@Override
37+
public void onClick(View v) {
38+
appStore = PlayAppStore.newInstance();
39+
Toast.makeText(ctx, "설치 여부 : " + appStore.isInstalled(ctx), Toast.LENGTH_SHORT).show();
40+
}
41+
});
42+
43+
btn02.setOnClickListener(new View.OnClickListener() {
44+
@Override
45+
public void onClick(View v) {
46+
appStore = PlayAppStore.newInstance();
47+
appStore.openApp(ctx, "com.google.android.gm");
48+
}
49+
});
50+
51+
btn03.setOnClickListener(new View.OnClickListener() {
52+
@Override
53+
public void onClick(View v) {
54+
publisherAppOpener = PlayAppStore.newInstance();
55+
publisherAppOpener.openPublisherApps(ctx, "Google Inc.");
56+
}
57+
});
58+
59+
btn04.setOnClickListener(new View.OnClickListener() {
60+
@Override
61+
public void onClick(View v) {
62+
appStore = PlayAppStore.newInstance();
63+
appStore.searchApp(ctx, "gmail");
64+
}
65+
});
66+
}
67+
```
68+
69+
## License
1770

1871
Copyright 2015 Justin Song
1972

2073
Licensed under the Apache License, Version 2.0 (the "License");
2174
you may not use this file except in compliance with the License.
2275
You may obtain a copy of the License at
2376

24-
http://www.apache.org/licenses/LICENSE-2.0
77+
http://www.apache.org/licenses/LICENSE-2.0
2578

2679
Unless required by applicable law or agreed to in writing, software
2780
distributed under the License is distributed on an "AS IS" BASIS,
2881
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2982
See the License for the specific language governing permissions and
3083
limitations under the License.
84+

0 commit comments

Comments
 (0)