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
package lu.gian.uniwhere.features.home.ui | |
import androidx.lifecycle.LiveData | |
import androidx.lifecycle.MutableLiveData | |
import androidx.lifecycle.viewModelScope | |
import com.google.firebase.iid.FirebaseInstanceId | |
import com.uniwhere.kmp.elephas.localdatasource.LocalDataSource | |
import com.uniwhere.kmp.elephas.model.CredentialsManager | |
import com.uniwhere.kmp.elephas.model.ExamStatsAverageType | |
import com.uniwhere.kmp.elephas.model.UWErrorCodeClass |
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
package lu.gian.uniwhere.features.home.ui | |
import androidx.lifecycle.LiveData | |
import androidx.lifecycle.MutableLiveData | |
import androidx.lifecycle.viewModelScope | |
import com.google.firebase.iid.FirebaseInstanceId | |
import com.uniwhere.kmp.elephas.localdatasource.LocalDataSource | |
import com.uniwhere.kmp.elephas.model.ExamStatsAverageType | |
import com.uniwhere.kmp.elephas.model.UWErrorCodeClass | |
import com.uniwhere.kmp.elephas.model.UniAccountWrapper |
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
<html id="top" lang="it"><head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>Cambio password, Università di UNICAL</title> | |
<meta content="IE=edge" http-equiv="X-UA-Compatible"> | |
<meta content="width=device-width, initial-scale=1" name="viewport"> | |
<meta content="Servizi online dell'ateneo" name="description"> | |
<meta content="noindex, nofollow" name="robots"> | |
<base href="https://unical.esse3.cineca.it/"> | |
<link href="img/layout/favicons/apple-touch-icon.png" sizes="120x120" rel="apple-touch-icon" class="favicon"> | |
<link href="https://unical.esse3.cineca.it/img/layout/favicons/favicon-32x32.png" sizes="32x32" type="image/png" rel="icon" class="favicon"> |
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
<manifest> | |
<application> | |
<activity | |
android:name="com.yalantis.ucrop.UCropActivity" | |
android:screenOrientation="portrait" | |
android:theme="@style/Theme.AppCompat.Light.NoActionBar" /> | |
<provider | |
android:name="androidx.core.content.FileProvider" | |
android:authorities="${applicationId}.provider" | |
android:exported="false" |
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
private fun createGson(): Gson = GsonBuilder() | |
.registerTypeAdapter(OffsetDateTime::class.java, OffsetDateTimeTypeAdapter()) | |
.create() | |
class OffsetDateTimeTypeAdapter : JsonSerializer<OffsetDateTime>, JsonDeserializer<OffsetDateTime> { | |
override fun serialize( | |
src: OffsetDateTime, | |
typeOfSrc: Type, | |
context: JsonSerializationContext |
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
private fun observeViewModel() { | |
mainViewModel.observe(lifecycleScope) { | |
when (it) { | |
MainScreenState.InProgress -> showProgress() | |
} | |
} | |
} |
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
override fun onStart() { | |
super.onStart() | |
permissionManager.requestLocationPermission(this, object : LocationPermissionListener { | |
override fun permissionGranted() { | |
Timber.v("location permission granted!") | |
} | |
override fun permissionError(error: DexterError) { | |
Timber.w("location permission error: $error!") | |
} |
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
build: | |
maxIssues: 0 | |
comments: | |
active: true | |
excludes: "**/*Test.kt, **/*Spec.kt" | |
CommentOverPrivateFunction: | |
active: false | |
CommentOverPrivateProperty: | |
active: false |
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
apply plugin: "org.sonarqube" | |
buildscript { | |
dependencies { | |
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.6.2" | |
} | |
} | |
//ADD ALL THE TASKS (coverage, lint) FOR ALL THE MODULES YOU WANT TO BE REPORTED | |
project.tasks["sonarqube"].dependsOn ':library-core:testDebugUnitTestCoverage' |
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
buildscript { | |
dependencies { | |
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.6.2" | |
} | |
} |
NewerOlder