// Path: sdk/src/main/java/ru/assisttech/sdk/AssistSDK.java
// public class AssistSDK {
// 
//     public static AssistPayEngine getPayEngine(Activity activity) {
//         return AssistPayEngine.getInstance(activity.getApplicationContext());
//     }
// 
//     public static String getSdkVersion() {
//         return BuildConfig.VERSION_NAME;
//     }
// }


import android.app.Activity;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.widget.TextView;
import ru.assisttech.sdk.AssistSDK;
package ru.assisttech.assistsdk;



public class AboutActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_about);
        if (getActionBar() != null) {
            getActionBar().setDisplayHomeAsUpEnabled(true);
        }

        TextView tvVersion = (TextView)findViewById(R.id.tvAppVersion);
        try {
            PackageInfo pInfo = getPackageManager().getPackageInfo(getPackageName(), 0);
            tvVersion.setText(String.format(getString(R.string.app_version), pInfo.versionName));
        } catch (PackageManager.NameNotFoundException e) {
            tvVersion.setText(String.format(getString(R.string.app_version), "unknown"));
            e.printStackTrace();
        }
        TextView tvSDKVersion = (TextView)findViewById(R.id.tvSDKVersion);
// Path: sdk/src/main/java/ru/assisttech/sdk/AssistSDK.java
// public class AssistSDK {
// 
//     public static AssistPayEngine getPayEngine(Activity activity) {
//         return AssistPayEngine.getInstance(activity.getApplicationContext());
//     }
// 
//     public static String getSdkVersion() {
//         return BuildConfig.VERSION_NAME;
//     }
// }


// Path: TestAssistSDK/src/main/java/ru/assisttech/assistsdk/AboutActivity.java
import android.app.Activity;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.widget.TextView;
import ru.assisttech.sdk.AssistSDK;

package ru.assisttech.assistsdk;



public class AboutActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_about);
        if (getActionBar() != null) {
            getActionBar().setDisplayHomeAsUpEnabled(true);
        }

        TextView tvVersion = (TextView)findViewById(R.id.tvAppVersion);
        try {
            PackageInfo pInfo = getPackageManager().getPackageInfo(getPackageName(), 0);
            tvVersion.setText(String.format(getString(R.string.app_version), pInfo.versionName));
        } catch (PackageManager.NameNotFoundException e) {
            tvVersion.setText(String.format(getString(R.string.app_version), "unknown"));
            e.printStackTrace();
        }
        TextView tvSDKVersion = (TextView)findViewById(R.id.tvSDKVersion);
        tvSDKVersion.setText(String.format(getString(R.string.sdk_version), AssistSDK.getSdkVersion()));