// Path: app/src/main/java/dynoapps/exchange_rates/App.java
// public class App extends Application {
//     private static App appInstance;
// 
//     public static App getInstance() {
//         return appInstance;
//     }
// 
//     @NonNull
//     public static Context context() {
//         return appInstance.getApplicationContext();
//     }
// 
//     public AlarmsRepository provideAlarmsRepository() {
//         return AlarmsRepository.getInstance(getApplicationContext());
//     }
// 
//     @SuppressLint("CheckResult")
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         appInstance = this;
// 
//         RxJavaPlugins.setErrorHandler(throwable -> L.e("App", throwable.getLocalizedMessage()));
//     }
// 
//     /**
//      * Enum used to identify the tracker that needs to be used for tracking.
//      * <p/>
//      * A single tracker is usually enough for most purposes. In case you do need multiple trackers,
//      * storing them all in Application object helps ensure that they are created only once per
//      * application instance.
//      */
//     public enum TrackerName {
//         APP_TRACKER, // Tracker used only in this app.
//         GLOBAL_TRACKER, // Tracker used by all the apps from a company. eg: roll-up tracking.
//     }
// 
// 
// }


import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.text.TextUtils;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import dynoapps.exchange_rates.App;
package dynoapps.exchange_rates.util;




/**
 * Created by erdemmac on 26/11/15.
 */
public class AppUtils {

    public static PackageInfo getPackageInfo(Context context) {
        try {
            return context.getPackageManager().getPackageInfo(context.getPackageName(), 0);
        } catch (PackageManager.NameNotFoundException e) {
            // Should not happen.
            throw new RuntimeException("Could not get package name: " + e);
        }
    }

    public static String getAppVersion() {
// Path: app/src/main/java/dynoapps/exchange_rates/App.java
// public class App extends Application {
//     private static App appInstance;
// 
//     public static App getInstance() {
//         return appInstance;
//     }
// 
//     @NonNull
//     public static Context context() {
//         return appInstance.getApplicationContext();
//     }
// 
//     public AlarmsRepository provideAlarmsRepository() {
//         return AlarmsRepository.getInstance(getApplicationContext());
//     }
// 
//     @SuppressLint("CheckResult")
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         appInstance = this;
// 
//         RxJavaPlugins.setErrorHandler(throwable -> L.e("App", throwable.getLocalizedMessage()));
//     }
// 
//     /**
//      * Enum used to identify the tracker that needs to be used for tracking.
//      * <p/>
//      * A single tracker is usually enough for most purposes. In case you do need multiple trackers,
//      * storing them all in Application object helps ensure that they are created only once per
//      * application instance.
//      */
//     public enum TrackerName {
//         APP_TRACKER, // Tracker used only in this app.
//         GLOBAL_TRACKER, // Tracker used by all the apps from a company. eg: roll-up tracking.
//     }
// 
// 
// }


// Path: app/src/main/java/dynoapps/exchange_rates/util/AppUtils.java
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.text.TextUtils;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import dynoapps.exchange_rates.App;

package dynoapps.exchange_rates.util;




/**
 * Created by erdemmac on 26/11/15.
 */
public class AppUtils {

    public static PackageInfo getPackageInfo(Context context) {
        try {
            return context.getPackageManager().getPackageInfo(context.getPackageName(), 0);
        } catch (PackageManager.NameNotFoundException e) {
            // Should not happen.
            throw new RuntimeException("Could not get package name: " + e);
        }
    }

    public static String getAppVersion() {
        Context context = App.context();