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
// | |
// ForceUpdateChecker.swift | |
// OutApp | |
// | |
// Created by Sheeraz Ahmed Memon on 23/06/2018. | |
// Copyright © 2018 SamSoft. All rights reserved. | |
// | |
import Foundation | |
import Firebase |
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
implementation group: 'org.simpleframework', name: 'simple-xml', version: '2.7.1' |
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
<?xml version="1.0"?> | |
<!DOCTYPE DATA_FETCH SYSTEM "http://www.redata.com/Xml/DATA_FETCH.dtd"> | |
<DATA_FETCH> | |
<REC> | |
<COL NAME="SELLER4_MOBILEPHONE" VALUE=""/> | |
<COL NAME="SELLER_EMAIL" VALUE=""/> | |
<COL NAME="SELLER_CITY" VALUE=""/> | |
<COL NAME="SELLER3_HOMEPHONE" VALUE=""/> | |
<COL NAME="SELLER4_FULLNAME" VALUE=""/> | |
<COL NAME="BUYER4_ADDRESS1" VALUE=""/> |
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 SimpleXmlTest { | |
val xmlToParse = """ | |
<?xml version="1.0"?> | |
<!DOCTYPE DATA_FETCH SYSTEM "http://www.redata.com/Xml/DATA_FETCH.dtd"> | |
<DATA_FETCH> | |
<REC> | |
<COL NAME="SELLER4_MOBILEPHONE" VALUE=""/> | |
<COL NAME="SELLER_EMAIL" VALUE=""/> | |
<COL NAME="SELLER_CITY" VALUE=""/> | |
<COL NAME="SELLER3_HOMEPHONE" VALUE=""/> |
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
@Root(strict = false, name = "COL") | |
class Col { | |
@field:Attribute(name = "NAME", required = false) | |
var name: String? = null | |
@field:Attribute(name = "VALUE", required = false) | |
var value: String? = 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
override func applicationDidBecomeActive(_ application: UIApplication) { | |
print("AppDelegate : application applicationDidBecomeActive()") | |
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. | |
super.applicationDidBecomeActive(application) | |
//setup remote config | |
setupRemoteConfig() | |
ForceUpdateChecker(listener: self).check() |
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
//Mark:- RemoteConfig Setup | |
extension MyAppDelegate { | |
func setupRemoteConfig(){ | |
remoteConfig = RemoteConfig.remoteConfig() | |
remoteConfig.configSettings = RemoteConfigSettings(developerModeEnabled: true)! | |
//set in app defaults | |
let defaults : [String : Any] = [ | |
ForceUpdateChecker.FORCE_UPDATE_REQUIRED : false, |
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
// | |
// UIViewController+UrlOpener.swift | |
// OutApp | |
// | |
// Created by Sheeraz Ahmed Memon on 23/06/2018. | |
// Copyright © 2018 SamSoft. All rights reserved. | |
// | |
import UIKit | |
extension UIViewController { |
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 androidx.test.platform.app.InstrumentationRegistry | |
import okhttp3.mockwebserver.MockWebServer | |
import org.junit.After | |
import org.junit.Before | |
import org.koin.core.context.stopKoin | |
import org.koin.test.KoinTest | |
import java.io.BufferedReader | |
import java.io.Reader | |
abstract class BaseUITest : KoinTest { |
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
public final class ArcUtils { | |
private static final double FULL_CIRCLE_RADIANS = toRadians(360d); | |
private ArcUtils() { } | |
/** | |
* Draws a circular arc on the given {@code Canvas}. | |
* | |
* @param canvas The canvas to draw into. | |
* @param circleCenter The center of the circle on which to draw the arc. |
NewerOlder