Skip to content

Commit

Permalink
Fix RestrictTo permissions for the networking package (#2049)
Browse files Browse the repository at this point in the history
Fixes #2046
  • Loading branch information
gpeal committed Apr 4, 2022
1 parent fa7840e commit 00a7612
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
Expand Up @@ -2,6 +2,7 @@

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.RestrictTo;

import com.airbnb.lottie.utils.Logger;

Expand All @@ -11,6 +12,7 @@
import java.io.InputStreamReader;
import java.net.HttpURLConnection;

@RestrictTo(RestrictTo.Scope.LIBRARY)
public class DefaultLottieFetchResult implements LottieFetchResult {

@NonNull
Expand Down
@@ -1,11 +1,13 @@
package com.airbnb.lottie.network;

import androidx.annotation.NonNull;
import androidx.annotation.RestrictTo;

import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;

@RestrictTo(RestrictTo.Scope.LIBRARY)
public class DefaultLottieNetworkFetcher implements LottieNetworkFetcher {

@Override
Expand Down
@@ -1,10 +1,11 @@
package com.airbnb.lottie.network;

import com.airbnb.lottie.utils.Logger;
import androidx.annotation.RestrictTo;

/**
* Helpers for known Lottie file types.
*/
@RestrictTo(RestrictTo.Scope.LIBRARY)
public enum FileExtension {
JSON(".json"),
ZIP(".zip");
Expand Down
Expand Up @@ -5,6 +5,7 @@

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.RestrictTo;
import androidx.annotation.WorkerThread;

import com.airbnb.lottie.utils.Logger;
Expand All @@ -20,6 +21,7 @@
/**
* Helper class to save and restore animations fetched from an URL to the app disk cache.
*/
@RestrictTo(RestrictTo.Scope.LIBRARY)
public class NetworkCache {

@NonNull
Expand Down
Expand Up @@ -4,6 +4,7 @@

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.RestrictTo;
import androidx.annotation.WorkerThread;

import com.airbnb.lottie.LottieComposition;
Expand All @@ -17,6 +18,7 @@
import java.io.InputStream;
import java.util.zip.ZipInputStream;

@RestrictTo(RestrictTo.Scope.LIBRARY)
public class NetworkFetcher {

@NonNull
Expand Down

This file was deleted.

0 comments on commit 00a7612

Please sign in to comment.