Skip to content

Commit fc03fc6

Browse files
committed
Removed Naver Appstore feature
1 parent afca833 commit fc03fc6

File tree

5 files changed

+22
-160
lines changed

5 files changed

+22
-160
lines changed

Demo/src/main/java/net/sjava/appstore/demo/MainActivity.java

Lines changed: 16 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
import net.sjava.appstore.AmazonStoreApp;
1111
import net.sjava.appstore.AppStore;
12-
import net.sjava.appstore.NaverAppStore;
1312
import net.sjava.appstore.OneStoreApp;
1413
import net.sjava.appstore.PlayAppStore;
1514
import net.sjava.appstore.PublisherAppOpenable;
@@ -26,23 +25,21 @@ protected void onCreate(Bundle savedInstanceState) {
2625

2726
initPlayAppStore();
2827
initAmazonAppStore();
29-
initTAppStore();
30-
initNaverAppStore();
31-
28+
initOneStore();
3229
}
3330

3431
private AppStore appStore;
3532
private PublisherAppOpenable publisherAppOpener;
3633

3734
//https://play.google.com/store/apps/details?id=com.google.android.gm
3835
private void initPlayAppStore() {
39-
Button btn01 = (Button)findViewById(R.id.play_button_01);
40-
Button btn02 = (Button)findViewById(R.id.play_button_02);
41-
Button btn03 = (Button)findViewById(R.id.play_button_03);
42-
Button btn04 = (Button)findViewById(R.id.play_button_04);
36+
Button btn01 = findViewById(R.id.play_button_01);
37+
Button btn02 = findViewById(R.id.play_button_02);
38+
Button btn03 = findViewById(R.id.play_button_03);
39+
Button btn04 = findViewById(R.id.play_button_04);
4340

44-
Button btn05 = (Button)findViewById(R.id.play_button_05);
45-
Button btn06 = (Button)findViewById(R.id.play_button_06);
41+
Button btn05 = findViewById(R.id.play_button_05);
42+
Button btn06 = findViewById(R.id.play_button_06);
4643

4744
btn01.setOnClickListener(new View.OnClickListener() {
4845
@Override
@@ -109,10 +106,10 @@ Staff Picks (Featured) featured
109106
}
110107

111108
private void initAmazonAppStore() {
112-
Button btn01 = (Button)findViewById(R.id.amazon_button_01);
113-
Button btn02 = (Button)findViewById(R.id.amazon_button_02);
114-
Button btn03 = (Button)findViewById(R.id.amazon_button_03);
115-
Button btn04 = (Button)findViewById(R.id.amazon_button_04);
109+
Button btn01 = findViewById(R.id.amazon_button_01);
110+
Button btn02 = findViewById(R.id.amazon_button_02);
111+
Button btn03 = findViewById(R.id.amazon_button_03);
112+
Button btn04 = findViewById(R.id.amazon_button_04);
116113

117114
btn01.setOnClickListener(new View.OnClickListener() {
118115
@Override
@@ -147,11 +144,11 @@ public void onClick(View v) {
147144
});
148145
}
149146

150-
private void initTAppStore() {
151-
Button btn01 = (Button)findViewById(R.id.tstore_button_01);
152-
Button btn02 = (Button)findViewById(R.id.tstore_button_02);
153-
Button btn03 = (Button)findViewById(R.id.tstore_button_03);
154-
Button btn04 = (Button)findViewById(R.id.tstore_button_04);
147+
private void initOneStore() {
148+
Button btn01 = findViewById(R.id.tstore_button_01);
149+
Button btn02 = findViewById(R.id.tstore_button_02);
150+
Button btn03 = findViewById(R.id.tstore_button_03);
151+
Button btn04 = findViewById(R.id.tstore_button_04);
155152

156153
btn01.setOnClickListener(new View.OnClickListener() {
157154
@Override
@@ -191,51 +188,4 @@ public void onClick(View v) {
191188
}); */
192189
}
193190

194-
195-
private void initNaverAppStore() {
196-
Button btn01 = (Button)findViewById(R.id.naver_button_01);
197-
Button btn02 = (Button)findViewById(R.id.naver_button_02);
198-
Button btn03 = (Button)findViewById(R.id.naver_button_03);
199-
Button btn04 = (Button)findViewById(R.id.naver_button_04);
200-
201-
btn01.setOnClickListener(new View.OnClickListener() {
202-
@Override
203-
public void onClick(View v) {
204-
appStore = NaverAppStore.newInstance();
205-
Toast.makeText(ctx, "설치 여부 : " + appStore.isInstalled(ctx), Toast.LENGTH_SHORT).show();
206-
}
207-
});
208-
209-
210-
btn02.setOnClickListener(new View.OnClickListener() {
211-
@Override
212-
public void onClick(View v) {
213-
appStore = NaverAppStore.newInstance();
214-
appStore.openApp(ctx, "409160");
215-
}
216-
});
217-
218-
btn03.setVisibility(View.INVISIBLE);
219-
/*
220-
btn03.setOnClickListener(new View.OnClickListener() {
221-
@Override
222-
public void onClick(View v) {
223-
publisherAppOpener = PlayAppStore.newInstance();
224-
publisherAppOpener.openPublisherApps(ctx, "Google Inc.");
225-
}
226-
}); */
227-
228-
btn04.setOnClickListener(new View.OnClickListener() {
229-
@Override
230-
public void onClick(View v) {
231-
appStore = NaverAppStore.newInstance();
232-
appStore.searchApp(ctx, "naver");
233-
}
234-
});
235-
}
236-
237-
238-
239-
240-
241191
}

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

Lines changed: 1 addition & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
android:layout_width="wrap_content"
145145
android:layout_height="wrap_content"
146146
android:layout_margin="4dp"
147-
android:text="TStore" />
147+
android:text="OneStore" />
148148
<LinearLayout
149149
android:orientation="horizontal"
150150
android:layout_width="match_parent"
@@ -188,54 +188,6 @@
188188

189189
</LinearLayout>
190190

191-
<TextView
192-
android:layout_width="wrap_content"
193-
android:layout_height="wrap_content"
194-
android:layout_margin="4dp"
195-
android:text="Naver"
196-
/>
197-
<LinearLayout
198-
android:orientation="horizontal"
199-
android:layout_width="match_parent"
200-
android:layout_height="wrap_content"
201-
android:weightSum="10.0">
202-
<Button
203-
android:layout_width="wrap_content"
204-
android:layout_height="wrap_content"
205-
android:text="@string/lbl_check_app_installed"
206-
android:layout_weight="2.5"
207-
android:ellipsize="middle"
208-
android:id="@+id/naver_button_01"
209-
style="@style/Base.TextAppearance.AppCompat.Small"/>
210-
211-
<Button
212-
android:layout_width="wrap_content"
213-
android:layout_height="wrap_content"
214-
android:text="@string/lbl_open_app"
215-
android:layout_weight="2.5"
216-
android:ellipsize="middle"
217-
android:id="@+id/naver_button_02"
218-
style="@style/Base.TextAppearance.AppCompat.Small"/>
219-
220-
<Button
221-
android:layout_width="wrap_content"
222-
android:layout_height="wrap_content"
223-
android:text="@string/lbl_open_publisher_apps"
224-
android:layout_weight="2.5"
225-
android:ellipsize="middle"
226-
android:id="@+id/naver_button_03"
227-
style="@style/Base.TextAppearance.AppCompat.Small"/>
228-
229-
<Button
230-
android:layout_width="wrap_content"
231-
android:layout_height="wrap_content"
232-
android:text="@string/lbl_search_app"
233-
android:layout_weight="2.5"
234-
android:ellipsize="middle"
235-
android:id="@+id/naver_button_04"
236-
style="@style/Base.TextAppearance.AppCompat.Small"/>
237-
238-
</LinearLayout>
239191

240192
</LinearLayout>
241193
</RelativeLayout>

Library/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ publish {
55
userOrg = 'mcsong'
66
groupId = 'net.sjava'
77
artifactId = 'appstore'
8-
publishVersion = '1.0.7'
8+
publishVersion = '1.0.8'
99
desc = 'Android AppStore Library'
1010
website = 'https://github.com/mcsong/AppStoreLibrary'
1111
issueTracker = "${website}/issues"
@@ -30,8 +30,8 @@ android {
3030
defaultConfig {
3131
minSdkVersion 9
3232
targetSdkVersion 27
33-
versionCode 1
34-
versionName "1.0.7"
33+
versionCode 8
34+
versionName "1.0.8"
3535
}
3636

3737
buildTypes {

Library/src/main/java/net/sjava/appstore/NaverAppStore.java

Lines changed: 0 additions & 39 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,12 @@ This library make easy to use AppStore app's features.
1919
- Play AppStore
2020
- Amazon AppStore
2121
- T Store
22-
- Naver AppStore
2322

2423
## Gradle & Maven
2524
Gradle
2625
```groovy
2726
dependencies {
28-
implementation 'net.sjava:appstore:1.0.7'
27+
implementation 'net.sjava:appstore:1.0.8'
2928
}
3029
```
3130

@@ -34,7 +33,7 @@ Maven
3433
<dependency>
3534
<groupId>net.sjava</groupId>
3635
<artifactId>appstore</artifactId>
37-
<version>1.0.5</version>
36+
<version>1.0.8</version>
3837
</dependency>
3938
```
4039
## Usage

0 commit comments

Comments
 (0)