Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9540bb9

Browse files
committed
netspylib-SpyApiService
1 parent bd4fb9d commit 9540bb9

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
xmlns:tools="http://schemas.android.com/tools"
4-
package="com.zhxh.coroutines">
3+
xmlns:tools="http://schemas.android.com/tools"
4+
package="com.zhxh.coroutines">
55

6-
<uses-permission android:name="android.permission.INTERNET" />
6+
<uses-permission android:name="android.permission.INTERNET"/>
77

88
<application
9-
android:name=".base.BaseApplication"
10-
android:allowBackup="true"
11-
android:icon="@mipmap/ic_launcher"
12-
android:label="@string/app_name"
13-
android:networkSecurityConfig="@xml/network_security_config"
14-
android:roundIcon="@mipmap/ic_launcher_round"
15-
android:supportsRtl="true"
16-
android:theme="@style/AppTheme"
17-
tools:ignore="GoogleAppIndexingWarning">
18-
<activity android:name=".ui.netspy.MainNetSpyActivity" />
19-
<activity android:name=".ui.MainMVPActivity" />
20-
<activity android:name="com.zhxh.coroutines.ui.KotlinCoroutineActivity" />
9+
android:name=".base.BaseApplication"
10+
android:allowBackup="true"
11+
android:icon="@mipmap/ic_launcher"
12+
android:label="@string/app_name"
13+
android:networkSecurityConfig="@xml/network_security_config"
14+
android:roundIcon="@mipmap/ic_launcher_round"
15+
android:supportsRtl="true"
16+
android:theme="@style/AppTheme"
17+
tools:ignore="GoogleAppIndexingWarning">
18+
<activity android:name=".ui.netspy.MainNetSpyActivity"/>
19+
<activity android:name=".ui.MainMVPActivity"/>
20+
<activity android:name="com.zhxh.coroutines.ui.KotlinCoroutineActivity"/>
2121
<activity android:name=".ui.GuideActivity">
2222
<intent-filter>
23-
<action android:name="android.intent.action.MAIN" />
23+
<action android:name="android.intent.action.MAIN"/>
2424

25-
<category android:name="android.intent.category.LAUNCHER" />
25+
<category android:name="android.intent.category.LAUNCHER"/>
2626
</intent-filter>
2727
</activity>
2828
</application>

app/src/main/java/com/zhxh/coroutines/ui/netspy/MainNetSpyActivity.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ private void launchNetSpyDirectly() {
5151
}
5252

5353
private void doHttpActivity() {
54-
SampleApiService.HttpbinApi api = SampleApiService.getInstance(getClient(this));
54+
SpyApiService.HttpbinApi api = SpyApiService.getInstance(getClient(this));
5555
Callback<Void> cb = new Callback<Void>() {
5656
@Override
5757
public void onResponse(Call call, Response response) {
@@ -63,9 +63,9 @@ public void onFailure(Call call, Throwable t) {
6363
}
6464
};
6565
api.get().enqueue(cb);
66-
api.post(new SampleApiService.Data("posted")).enqueue(cb);
67-
api.patch(new SampleApiService.Data("patched")).enqueue(cb);
68-
api.put(new SampleApiService.Data("put")).enqueue(cb);
66+
api.post(new SpyApiService.Data("posted")).enqueue(cb);
67+
api.patch(new SpyApiService.Data("patched")).enqueue(cb);
68+
api.put(new SpyApiService.Data("put")).enqueue(cb);
6969
api.delete().enqueue(cb);
7070

7171
}

app/src/main/java/com/zhxh/coroutines/ui/netspy/SampleApiService.java renamed to app/src/main/java/com/zhxh/coroutines/ui/netspy/SpyApiService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import retrofit2.http.Path;
1515
import retrofit2.http.Query;
1616

17-
class SampleApiService {
17+
class SpyApiService {
1818

1919
static HttpbinApi getInstance(OkHttpClient client) {
2020
Retrofit retrofit = new Retrofit.Builder()

0 commit comments

Comments
 (0)