This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| E FATAL EXCEPTION: main | |
| Process: ke.safaricom.mpesa.lifestyle.uat, PID: 17817 | |
| java.lang.RuntimeException: Unable to create application com.safaricom.mpesa.consumerapp.MPesaApplication: io.realm.exceptions.RealmMigrationNeededException: Migration is required due to the following errors: | |
| - Class 'GsmProductsCatalogPackageRealm' has been added. | |
| - Class 'GsmProductsCatalogProductRealm' has been added. | |
| - Property 'ConsumerUserRealm.requiresNewPin' has been added. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Composable | |
| fun InstagramLogo() { | |
| Canvas( | |
| modifier = Modifier | |
| .size(200.dp) | |
| .clip(RoundedCornerShape(10.dp)) | |
| ) { | |
| val width = size.width | |
| val height = size.height | |
| drawRoundRect(brush = InstaGradient) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This workflow deploys to production | |
| name: Deploy to Production | |
| # The workflow is triggered when a push is made to master | |
| on: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| build: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Use this in project level gradle | |
| subprojects { | |
| apply from: rootProject.file('tools/jacoco/jacoco.gradle') | |
| afterEvaluate { project -> | |
| // use the line below if you want to apply the config to dynamic features only. | |
| // if (project.plugins.hasPlugin("com.android.dynamic-feature")) { | |
| if (project.hasProperty('android')) { | |
| android.buildFeatures { | |
| viewBinding true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fun startNetworkCallback() { | |
| val cm: ConnectivityManager = | |
| application.getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager | |
| val builder: NetworkRequest.Builder = NetworkRequest.Builder() | |
| /**Check if version code is greater than API 24*/ | |
| if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.N) { | |
| cm.registerDefaultNetworkCallback(networkCallback) | |
| } else { | |
| cm.registerNetworkCallback( |