Skip to content

Instantly share code, notes, and snippets.

View kalyaganov's full-sized avatar

Alexey Kalyaganov kalyaganov

View GitHub Profile
@kalyaganov
kalyaganov / creating.swift
Created May 25, 2021 12:23
Ktor self signed certs
let skipSessionDelegate = SkipSSLSessionDelegate()
SDK(
// ....
challengeHandler: { (session, task, authenticationChallenge, completionHandler) in
skipSessionDelegate.urlSession?(session, didReceive: authenticationChallenge) {
(authChallengeDisposition, urlCredentials) in
completionHandler(KotlinLong(integerLiteral: authChallengeDisposition.rawValue), urlCredentials)
}
}
This file has been truncated, but you can view the full file.
{"version": "v3.0.9 Beta", "title": "Static Analysis", "file_name": "FacebookPlus_145.0_v1.6r-35.ipa", "app_name": "Facebook", "app_type": "Objective C", "size": "154.91MB", "md5": "b1a0e43df845be3414ea1e4a44f3a1ba", "sha1": "b93d231fe55bb744168a296e6ef66312052d5e24", "sha256": "c0e5338ebd3915642b53fa64244848ebbd356e7029c715a02def589382aefcc2", "build": "74951375", "app_version": "145.0", "sdk_name": "iphoneos11.0", "platform": "11.0", "min_os_version": "8.0", "bundle_id": "com.facebook.Facebook", "bundle_url_types": [{"CFBundleTypeRole": "Editor", "CFBundleURLName": "com.facebook", "CFBundleURLSchemes": ["fbauth2", "fbauth", "fb", "fblogin", "fbapi", "fbapi20130214", "fbapi20130410", "fbapi20130702", "fbapi20131010", "fbapi20131219", "fbapi20140116", "fbapi20140410", "fbapi20150313", "fbapi20150629", "fbapi20160328", "fbshareextension", "fb-creative-platform", "fb-creative-platform-20150615", "fb-event-create", "fb-profile-media-frame", "fb-profile-media-platform", "fb-profile-media-platform-20160202", "fb-p
class RouterVisiter {
fun route(item: TypeA){
//route for TypeA
}
fun route(item: TypeB){
//route for TypeB
}
}
/**
* A tree which logs important information for crash reporting.
*/
private class CrashReportingTree : Timber.Tree() {
override fun log(priority: Int, tag: String?, message: String, t: Throwable?) {
if (priority == Log.VERBOSE || priority == Log.DEBUG) {
return
}
Crashlytics.log(priority, tag, message)
if (t != null) {