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 ItunesApiAuthenticatedLoadTest extends Simulation { | |
private val loadTestName = "api-itunes-load-test" | |
private val repeatTimes = 1 // How often to repeat the test scenario per user | |
private val httpProtocol = http.baseUrl("https://itunes.apple.com") | |
private val users = csv("users.csv") | |
private val loadTestAPI = repeat(repeatTimes, "n") { | |
exec(http(loadTestName) | |
.get("/search?term=michael+jackson&limit=25") | |
.basicAuth("${username}", "${password}") | |
) |
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 AppReview : NSObject { | |
static let minimumAppLaunchCountForAppReview = 1 | |
@objc static func requestReview() { | |
if (getAppLaunchCount() > minimumAppLaunchCountForAppReview) { | |
if #available(iOS 10.3, *) { | |
SKStoreReviewController.requestReview() | |
} | |
} |
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 UIKit | |
import TVMLKit | |
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate, TVApplicationControllerDelegate { | |
var window: UIWindow? | |
var appController: TVApplicationController? | |
static let TVBaseURL = "http://localhost:9001/" | |
static let TVBootURL = "\(AppDelegate.TVBaseURL)js/application.js" |