// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package com.google.firebase.appcheck.safetynet;

import androidx.annotation.NonNull;
import com.google.firebase.FirebaseApp;
import com.google.firebase.appcheck.AppCheckProvider;
import com.google.firebase.appcheck.AppCheckProviderFactory;
import com.google.firebase.appcheck.safetynet.internal.SafetyNetAppCheckProvider;

/**
 * Implementation of an {@link AppCheckProviderFactory} that builds {@link
 * SafetyNetAppCheckProvider}s. This is the default implementation.
 *
 * @deprecated Use {@code PlayIntegrityAppCheckProviderFactory} instead.
 */
@Deprecated
public class SafetyNetAppCheckProviderFactory implements AppCheckProviderFactory {

  private static final SafetyNetAppCheckProviderFactory instance =
      new SafetyNetAppCheckProviderFactory();

  private SafetyNetAppCheckProviderFactory() {}

  /**
   * Gets an instance of this class for installation into a {@link
   * com.google.firebase.appcheck.FirebaseAppCheck} instance.
   *
   * @deprecated Use {@code PlayIntegrityAppCheckProviderFactory#getInstance} instead.
   */
  @Deprecated
  @NonNull
  public static SafetyNetAppCheckProviderFactory getInstance() {
    return instance;
  }

  @NonNull
  @Override
  public AppCheckProvider create(@NonNull FirebaseApp firebaseApp) {
    return new SafetyNetAppCheckProvider(firebaseApp);
  }
}

@@ -1058,97 +1058,9 @@
 .%0A *
-%0A * @deprecated Use %7B@code PlayIntegrityAppCheckProviderFactory%7D instead.%0A */%0A@Deprecated
+/
 %0Apub
@@ -1446,115 +1446,9 @@
    *
-%0A   * @deprecated Use %7B@code PlayIntegrityAppCheckProviderFactory#getInstance%7D instead.%0A   */%0A  @Deprecated
+/
 %0A  @

Remove `@Deprecated` annotations. (#4289)