Skip to content

Commit 0c08eba

Browse files
committed
no-op lib
1 parent 16af428 commit 0c08eba

File tree

7 files changed

+60
-2
lines changed

7 files changed

+60
-2
lines changed

library-no-op/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

library-no-op/build.gradle

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
apply plugin: 'com.android.library'
2+
3+
android {
4+
compileSdkVersion 25
5+
buildToolsVersion "25.0.0"
6+
7+
defaultConfig {
8+
minSdkVersion 16
9+
targetSdkVersion 25
10+
versionCode 1
11+
versionName "1.0"
12+
}
13+
}
14+
15+
dependencies {
16+
compile 'com.squareup.okhttp3:okhttp:3.6.0'
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="com.readystatesoftware.chuck">
3+
</manifest>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package com.readystatesoftware.chuck;
2+
3+
import android.content.Context;
4+
import android.content.Intent;
5+
6+
public class Chuck {
7+
8+
public static Intent getLaunchIntent(Context context) {
9+
return new Intent();
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package com.readystatesoftware.chuck;
2+
3+
import android.content.Context;
4+
5+
import java.io.IOException;
6+
7+
import okhttp3.Interceptor;
8+
import okhttp3.Request;
9+
import okhttp3.Response;
10+
11+
public class ChuckInterceptor implements Interceptor {
12+
13+
public ChuckInterceptor(Context context) {
14+
}
15+
16+
public ChuckInterceptor showNotification(boolean show) {
17+
return this;
18+
}
19+
20+
@Override
21+
public Response intercept(Chain chain) throws IOException {
22+
Request request = chain.request();
23+
return chain.proceed(request);
24+
}
25+
}

sample/build.gradle

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ android {
1919
}
2020

2121
dependencies {
22-
compile project(':library')
22+
debugCompile project(':library')
23+
releaseCompile project(':library-no-op')
2324
compile 'com.android.support:appcompat-v7:25.1.1'
2425
compile 'com.squareup.okhttp3:logging-interceptor:3.6.0'
2526
compile 'com.squareup.retrofit2:retrofit:2.1.0'

settings.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
include ':sample', ':library'
1+
include ':sample', ':library', ':library-no-op'

0 commit comments

Comments
 (0)