Commit 0b771d10 authored by Nihar Thakkar's avatar Nihar Thakkar

Add logs

parent 3e27fb31
Pipeline #12582 passed with stage
in 7 minutes and 21 seconds
......@@ -22,7 +22,7 @@ import android.app.Activity
import android.app.DownloadManager
import android.content.Context
import android.content.pm.PackageManager
import android.widget.ImageView
import android.util.Log
import foundation.e.apps.api.AppDetailRequest
import foundation.e.apps.api.PackageNameSearchRequest
import foundation.e.apps.application.model.State.*
......@@ -37,6 +37,8 @@ import java.util.concurrent.atomic.AtomicInteger
class Application(val packageName: String, private val applicationManager: ApplicationManager) :
DownloaderInterface, InstallerInterface {
private val TAG = "Application"
private val uses = AtomicInteger(0)
private val info = ApplicationInfo(packageName)
private val stateManager = StateManager(info, this, applicationManager)
......@@ -139,10 +141,12 @@ class Application(val packageName: String, private val applicationManager: Appli
private fun isAPKArchCompatible(): Boolean {
val apkArchitecture: String? = fullData!!.getLastVersion()?.apkArchitecture
Log.i(TAG, "${basicData!!.name} APK architecture: $apkArchitecture")
return if (apkArchitecture != null) {
if (apkArchitecture == "universal") {
true
} else {
Log.i(TAG, "Supported architectures: ${android.os.Build.SUPPORTED_ABIS}")
android.os.Build.SUPPORTED_ABIS.toList().contains(apkArchitecture)
}
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment