// Path: opfpush/src/main/java/org/onepf/opfpush/listener/CheckManifestHandler.java
// public interface CheckManifestHandler {
// 
//     /**
//      * Called when some check manifest error occurred.
//      *
//      * @param reportMessage The information about error.
//      */
//     void onCheckManifestError(@NonNull final String reportMessage);
// }


import java.util.List;
import java.util.Locale;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.text.TextUtils;
import org.onepf.opfpush.listener.CheckManifestHandler;
import org.onepf.opfutils.OPFChecks;
/*
 * Copyright 2012-2015 One Platform Foundation
 *
 * 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 org.onepf.opfpush.utils;




/**
 * @author Roman Savin
 * @since 22.04.2015
 */
public final class CheckUtils {

    private static final String LINE_SEPARATOR = System.getProperty("line.separator");

    private CheckUtils() {
        throw new UnsupportedOperationException();
    }

    /**
     * Checks is a service has been described in the AndroidManifest.xml file.
     *
     * @param context The instance of {@link android.content.Context}.
     * @param service The checked service.
     */
    @SuppressWarnings("PMD.PreserveStackTrace")
    public static void checkService(@NonNull final Context context,
                                    @NonNull final ComponentName service,
// Path: opfpush/src/main/java/org/onepf/opfpush/listener/CheckManifestHandler.java
// public interface CheckManifestHandler {
// 
//     /**
//      * Called when some check manifest error occurred.
//      *
//      * @param reportMessage The information about error.
//      */
//     void onCheckManifestError(@NonNull final String reportMessage);
// }


// Path: opfpush/src/main/java/org/onepf/opfpush/utils/CheckUtils.java
import java.util.List;
import java.util.Locale;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.text.TextUtils;
import org.onepf.opfpush.listener.CheckManifestHandler;
import org.onepf.opfutils.OPFChecks;

/*
 * Copyright 2012-2015 One Platform Foundation
 *
 * 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 org.onepf.opfpush.utils;




/**
 * @author Roman Savin
 * @since 22.04.2015
 */
public final class CheckUtils {

    private static final String LINE_SEPARATOR = System.getProperty("line.separator");

    private CheckUtils() {
        throw new UnsupportedOperationException();
    }

    /**
     * Checks is a service has been described in the AndroidManifest.xml file.
     *
     * @param context The instance of {@link android.content.Context}.
     * @param service The checked service.
     */
    @SuppressWarnings("PMD.PreserveStackTrace")
    public static void checkService(@NonNull final Context context,
                                    @NonNull final ComponentName service,
                                    @Nullable final CheckManifestHandler checkManifestHandler) {