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
/** | |
* Copyright (c) 2015-present, Facebook, Inc. | |
* All rights reserved. | |
* | |
* This source code is licensed under the BSD-style license found in the | |
* LICENSE file in the root directory of this source tree. An additional grant | |
* of patent rights can be found in the PATENTS file in the same directory. | |
*/ | |
#import "AppDelegate.h" |
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
platform :ios, '8.0' | |
target 'MyApp' do | |
pod 'UXFramework' | |
end |
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
// | |
// ViewController.swift | |
// uptoyou | |
// | |
// Created by Rex on 4/25/15. | |
// Copyright (c) 2015 huijun.org. All rights reserved. | |
// | |
import UIKit | |
import Realm |
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
<!--設定Manifest所需權限:--> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> | |
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | |
<uses-permission android:name="android.permission.RECORD_AUDIO" /> | |
<!--設定Custom Application--> | |
android:name=".MyApplication" | |
<!--設定UXTService--> |
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
// 在專案中的repositories加入 | |
repositories { | |
flatDir { | |
dirs 'libs' | |
} | |
} | |
// 在專案中的dependencies加入 | |
compile 'org.bytedeco:javacv:0.10' | |
compile (name:'uxtestingsdk', ext:'aar') |
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
UXTFramework.Init(this, "UXTesting_App_Key", 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
//method 1 | |
for v in myView.subviews as [UIView] { | |
v.removeFromSuperview() | |
} | |
//method 2 | |
(myView.subviews as [UIView]).map{$0.removeFromSuperview()} |
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 | |
@UIApplicationMain | |
class AppDelegate : UIResponder, UIApplicationDelegate { | |
var window : UIWindow? | |
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { | |
self.window = UIWindow(frame:UIScreen.mainScreen().bounds) | |
self.window!.rootViewController = UIViewController() | |
let mainView = self.window!.rootViewController!.view |
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
// | |
// AppDelegate.swift | |
// testswift | |
// | |
// Created by Rex on 12/1/14. | |
// Copyright (c) 2014 galf.cc. All rights reserved. | |
// | |
import UIKit | |
import UXTesting |
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
// | |
// AppDelegate.m | |
// testobjc | |
// | |
// Created by Rex on 12/1/14. | |
// Copyright (c) 2014 galf.cc. All rights reserved. | |
// | |
#import "AppDelegate.h" | |
#import <UXTesting/UXTesting.h> |
NewerOlder