Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix RestrictTo permissions for the networking package #2049

Merged
merged 1 commit into from Apr 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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.