Found that enabling ProGuard's minify for the debug version breaks the debugger breakpoints functionality, minify was disabled until a solution is found.
This commit is contained in:
parent
f76f293811
commit
ba113e1a7f
4 changed files with 19 additions and 4 deletions
|
@ -21,8 +21,8 @@ android {
|
||||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||||
}
|
}
|
||||||
debug {
|
debug {
|
||||||
minifyEnabled true
|
// TODO enabling minify breaks the debugger breakpoints, find a way to fix it and enable minify again
|
||||||
shrinkResources true
|
minifyEnabled false
|
||||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||||
resValue("string", "PORT_NUMBER", "8082")
|
resValue("string", "PORT_NUMBER", "8082")
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,6 +16,7 @@ import cy.agorise.bitsybitshareswallet.viewmodels.BalanceDetailViewModel
|
||||||
import kotlinx.android.synthetic.main.fragment_balances.*
|
import kotlinx.android.synthetic.main.fragment_balances.*
|
||||||
|
|
||||||
class BalancesFragment: Fragment() {
|
class BalancesFragment: Fragment() {
|
||||||
|
private val TAG = this.javaClass.simpleName
|
||||||
|
|
||||||
private lateinit var mBalanceDetailViewModel: BalanceDetailViewModel
|
private lateinit var mBalanceDetailViewModel: BalanceDetailViewModel
|
||||||
|
|
||||||
|
@ -43,4 +44,12 @@ class BalancesFragment: Fragment() {
|
||||||
balancesAdapter.replaceAll(balancesDetails)
|
balancesAdapter.replaceAll(balancesDetails)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// override fun setUserVisibleHint(isVisibleToUser: Boolean) {
|
||||||
|
// super.setUserVisibleHint(isVisibleToUser)
|
||||||
|
// if (isVisibleToUser) {
|
||||||
|
// // TODO find a better way to recreate the fragment, that does it only when the theme has been changed
|
||||||
|
// fragmentManager!!.beginTransaction().detach(this).attach(this).commit()
|
||||||
|
// }
|
||||||
|
// }
|
||||||
}
|
}
|
|
@ -16,7 +16,6 @@ import cy.agorise.bitsybitshareswallet.database.entities.UserAccount
|
||||||
import cy.agorise.bitsybitshareswallet.utils.Constants
|
import cy.agorise.bitsybitshareswallet.utils.Constants
|
||||||
import cy.agorise.bitsybitshareswallet.viewmodels.UserAccountViewModel
|
import cy.agorise.bitsybitshareswallet.viewmodels.UserAccountViewModel
|
||||||
import kotlinx.android.synthetic.main.fragment_home.*
|
import kotlinx.android.synthetic.main.fragment_home.*
|
||||||
import kotlinx.android.synthetic.main.item_balance.view.*
|
|
||||||
|
|
||||||
class HomeFragment : Fragment() {
|
class HomeFragment : Fragment() {
|
||||||
|
|
||||||
|
@ -76,7 +75,6 @@ class HomeFragment : Fragment() {
|
||||||
|
|
||||||
override fun getItem(position: Int): Fragment {
|
override fun getItem(position: Int): Fragment {
|
||||||
// getItem is called to instantiate the fragment for the given page.
|
// getItem is called to instantiate the fragment for the given page.
|
||||||
// Return a PlaceholderFragment (defined as a static inner class below).
|
|
||||||
return if (position == 0)
|
return if (position == 0)
|
||||||
BalancesFragment()
|
BalancesFragment()
|
||||||
else
|
else
|
||||||
|
|
|
@ -17,4 +17,12 @@ class NetWorthFragment: Fragment() {
|
||||||
|
|
||||||
return inflater.inflate(R.layout.fragment_net_worth, container, false)
|
return inflater.inflate(R.layout.fragment_net_worth, container, false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// override fun setUserVisibleHint(isVisibleToUser: Boolean) {
|
||||||
|
// super.setUserVisibleHint(isVisibleToUser)
|
||||||
|
// if (isVisibleToUser) {
|
||||||
|
// // TODO find a better way to recreate the fragment, that does it only when the theme has been changed
|
||||||
|
// fragmentManager!!.beginTransaction().detach(this).attach(this).commit()
|
||||||
|
// }
|
||||||
|
// }
|
||||||
}
|
}
|
Loading…
Reference in a new issue