Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
* LICENSE file in the root directory of this source tree.
*/

package com.facebook.react.modules.network;
package com.facebook.react.modules.network

import okhttp3.OkHttpClient;
import okhttp3.OkHttpClient

public interface CustomClientBuilder {
public void apply(OkHttpClient.Builder builder);
public fun interface CustomClientBuilder {
public fun apply(builder: OkHttpClient.Builder)
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
* LICENSE file in the root directory of this source tree.
*/

package com.facebook.react.modules.network;
package com.facebook.react.modules.network

import okhttp3.Interceptor;
import okhttp3.Interceptor

/**
* Classes implementing this interface return a new {@link Interceptor} when the {@link #create}
* method is called.
*/
public interface NetworkInterceptorCreator {
Interceptor create();
public fun interface NetworkInterceptorCreator {
public fun create(): Interceptor
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/

package com.facebook.react.modules.network;
package com.facebook.react.modules.network

public interface ProgressListener {
void onProgress(long bytesWritten, long contentLength, boolean done);
public fun interface ProgressListener {
public fun onProgress(bytesWritten: Long, contentLength: Long, done: Boolean)
}