This file contains 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
GeoIPFile C:/Program Files/Tor/data/geoip | |
GeoIPv6File C:/Program Files/Tor/data/geoip6 | |
ExcludeNodes {ru}, {by}, {ua}, {kz} | |
StrictNodes 1 | |
GeoIPExcludeUnknown 1 | |
ExitNodes {de}, {fr}, {fi}, {nl}, {nz}, {no}, {ch}, {se}, {dk}, {ee} | |
ClientTransportPlugin obfs2,obfs3,obfs4,scramblesuit exec C:/Program Files/Tor/tor/pluggable_transports/lyrebird.exe |
This file contains 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
ExcludeNodes {ru}, {by}, {ua}, {kz} | |
StrictNodes 1 | |
GeoIPExcludeUnknown 1 | |
ExitNodes {de}, {fr}, {fi}, {nl}, {nz}, {no}, {ch}, {se}, {dk}, {ee} | |
ClientTransportPlugin obfs4 exec /usr/local/bin/lyrebird managed | |
UseBridges 1 | |
# Brides here |
This file contains 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
@HiltWorker | |
class GeneratePDFWorker @AssistedInject constructor( | |
@Assisted context: Context, | |
@Assisted params: WorkerParameters, | |
private val repository: Repository | |
) : CoroutineWorker(context, params) { | |
private val notificationBuilder: NotificationCompat.Builder | |
private var pdfGenerator: PdfGenerator? = null |
This file contains 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
class HtmlToPdfConvertor(private val context: Context) { | |
private var enableJavascript: Boolean? = null | |
// Экземпляр WebView с базовыми настройками | |
private val pdfWebView = WebView(context).apply { | |
this.settings.allowContentAccess = true | |
this.settings.allowFileAccess = true | |
this.settings.cacheMode = WebSettings.LOAD_NO_CACHE | |
} | |
fun setJavaScriptEnabled(flag: Boolean) { |
This file contains 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
class PdfGenerator(private val context: Context) { | |
private val htmlToPdfConvertor = HtmlToPdfConvertor(context) | |
// Функция генерации и сохранения | |
suspend fun generateExpertAct( | |
act: ActSave, | |
images: List<File>, | |
outFile: File | |
): Result<Unit> { | |
return suspendCoroutine { continuation -> |
This file contains 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
class YandexMapProtocolImpl: YandexMapProtocol { | |
var mapViewController: MapViewController | |
var viewController: UIViewController | |
init() { | |
self.mapViewController = MapViewController() | |
self.viewController = (self.mapViewController as UIViewController) | |
} | |
func addCameraListener(onDragged: @escaping () -> Void) { |
This file contains 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
interface YandexMapProtocol { | |
val viewController: UIViewController | |
fun addCameraListener(onDragged: () -> Unit) | |
fun addMapListener(onPositionSelect: (latitude: Double, longitude: Double) -> Unit) | |
fun addMapPointListener(onPointClick: (id: Long) -> Unit) |
This file contains 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
@OptIn(ExperimentalForeignApi::class) | |
@Composable | |
actual fun YandexMap( | |
modifier: Modifier, | |
enabled: Boolean, | |
zoom: Float, | |
location: LatLng?, | |
startPosition: LatLng?, | |
points: List<PointMapModel>, | |
onPointClick: (id: Long) -> Unit, |
This file contains 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
import Foundation | |
import YandexMapsMobile | |
import ComposeApp | |
import UIKit | |
class MapViewController: UIViewController { | |
private let locationMark: UIImage = UIImage(named: "location_mark")! | |
private let myLocatioPoint: UIImage = UIImage(named: "my_location_point")! | |
This file contains 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
GeoIPFile "C:/tor/data/geoip" | |
GeoIPv6File "C:/tor/data/geoip6" | |
ExcludeNodes {ru}, {by}, {ua}, {kz} | |
StrictNodes 1 | |
GeoIPExcludeUnknown 1 | |
ExitNodes {de}, {fr}, {fi}, {nl}, {nz}, {no}, {ch}, {se}, {dk}, {ee} | |
ClientTransportPlugin obfs2,obfs3,obfs4,scramblesuit exec C:\tor\tor\pluggable_transports\obfs4proxy.exe | |
Bridge obfs4 ... | |
Bridge obfs4 ... |
NewerOlder