Skip to content

Instantly share code, notes, and snippets.

View mstfyvz's full-sized avatar

MUSTAFA YAVUZ mstfyvz

  • Ziraat Technology via Kafein Technology Solutions
  • Istanbul
View GitHub Profile
@mstfyvz
mstfyvz / gradle.properties
Created December 15, 2023 14:05
gradle.properties (Project Properties)
...
android.enableJetifier=true
@mstfyvz
mstfyvz / settings.gradle.kts
Created December 15, 2023 14:04
settings.gradle.kts (My Application)
...
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven(url = java.net.URI("https://jcenter.bintray.com"))
}
}
...
@mstfyvz
mstfyvz / build.gradle.kts
Created December 15, 2023 14:03
build.gradle.kts (:app)
...
dependencies {
...
// Android PdfViewer
implementation("com.github.barteksc:android-pdf-viewer:3.2.0-beta.1")
...
}
...
@mstfyvz
mstfyvz / PdfViewerScreen.kt
Created December 15, 2023 14:01
PdfViewerScreen
import android.util.Log
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.viewinterop.AndroidView
import androidx.hilt.navigation.compose.hiltViewModel
import androidx.navigation.NavController
import com.github.barteksc.pdfviewer.PDFView
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
@mstfyvz
mstfyvz / config.txt
Created June 12, 2020 09:52
Centos7 MongoDB Config Commends
Centos7 MongoDB Config Commends
start mongo : - sudo systemctl start mongod
status mongo : - sudo systemctl status mongod
stop mongo : - sudo systemctl stop mongod
MongoDB’nin başlangıçta otomatik olarak çalışmasını sağlamak için
aşağıdaki işlemleri yapmamız yeterli olacaktır.
- sudo systemctl is-enabled mongod; echo $?
@mstfyvz
mstfyvz / CustomAlert.kt
Last active May 30, 2020 14:12
Android (Kotlin) Custom Alert Dialog
// Model - Data Class
data class CustomAlert(
var icon: Int,
var title: String,
var message: String,
var btnPositiveText: String,
var btnNegative: Boolean? = false,
var btnNegativeText: String? = ""
)