Skip to content

Commit

Permalink
Bitrise build 11920
Browse files Browse the repository at this point in the history
  • Loading branch information
Bitrise Buildbot committed Nov 13, 2024
1 parent d54b2f3 commit 92800a4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion geotabdrivesdk/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import java.util.Properties

val versionName = "6.7.1_72850"
val versionName = "6.7.1_72920"

plugins {
id("com.android.library")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ class DriveFragment :

private val mustacheFactory by lazy { DefaultMustacheFactory() }
private lateinit var preference: SharedPreferences
private var appPreferences: SharedPreferences? = null

private val userAgentUtil: UserAgentUtil by lazy {
UserAgentUtil(requireContext())
Expand Down Expand Up @@ -226,7 +227,7 @@ class DriveFragment :
}

private val ssoModule: SSOModule by lazy {
SSOModule(this.parentFragmentManager, preference)
SSOModule(this.parentFragmentManager, appPreferences)
}

private val secureStorageModule: SecureStorageModule by lazy {
Expand Down Expand Up @@ -392,10 +393,12 @@ class DriveFragment :
@JvmStatic
fun newInstance(
modules: ArrayList<Module> = arrayListOf(),
logger: Logging = Logger.shared
logger: Logging = Logger.shared,
appPreferences: SharedPreferences? = null
): DriveFragment =
DriveFragment().apply {
this.logger = logger
this.appPreferences = appPreferences
arguments = Bundle().apply {
putSerializable(ARG_MODULES, modules)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class MyGeotabFragment :
private val myGeotabUrl = "https://${MyGeotabConfig.serverAddress}"
private val mustacheFactory by lazy { DefaultMustacheFactory() }
private lateinit var preference: SharedPreferences
private var appPreferences: SharedPreferences? = null

private val pushScriptUtil: PushScriptUtil by lazy {
PushScriptUtil()
Expand Down Expand Up @@ -94,7 +95,7 @@ class MyGeotabFragment :
}

private val ssoModule: SSOModule by lazy {
SSOModule(this.parentFragmentManager, preference)
SSOModule(this.parentFragmentManager, appPreferences)
}

private val cookieManager: CookieManager by lazy {
Expand Down Expand Up @@ -137,8 +138,12 @@ class MyGeotabFragment :
*/
@Keep
@JvmStatic
fun newInstance(modules: ArrayList<Module> = arrayListOf()) =
fun newInstance(
modules: ArrayList<Module> = arrayListOf(),
appPreferences: SharedPreferences? = null
) =
MyGeotabFragment().apply {
this.appPreferences = appPreferences
arguments = Bundle().apply {
putSerializable(ARG_MODULES, modules)
}
Expand Down

0 comments on commit 92800a4

Please sign in to comment.