This requires the latest version of apktool.
apktool d $APK_PATH -o $OUTPUT_FOLDER
# Open the apktool.yml text file
# Alter the versionCode and versionName entries
# now rebuild!
apktool build $OUTPUT_FOLDER
| # Put then name of your main app's target here. | |
| target 'MainApp' do | |
| pod 'Realm' | |
| pod 'NSDate+Calendar' | |
| pod 'Realm+JSON' | |
| # and any other dependencies | |
| end | |
| # Put the name of the Unit Testing Target here | |
| target 'MainAppTests' do |
| #import <XCTest/XCTest.h> | |
| // Inherit from this to automatically create and delete [RLMRealm defaultRealm] files between tests | |
| @interface RealmTestCase : XCTestCase | |
| @end |
| #import <Foundation/Foundation.h> | |
| #import <UIKit/UIKit.h> | |
| @interface JSONFromBundle : NSObject | |
| // Also removes nulls | |
| + (id)nameNoExtension:(NSString *)name; | |
| @end |
| [ | |
| { | |
| "name":"Alice", | |
| "age": 64 | |
| }, | |
| { | |
| "name":"Bob", | |
| "age": 12 | |
| }, | |
| { |
| - (BOOL) tabBarController:(UITabBarController *)tabBarController | |
| shouldSelectViewController:(UIViewController *)viewController { | |
| // http://stackoverflow.com/questions/5161730/iphone-how-to-switch-tabs-with-an-animation | |
| NSUInteger controllerIndex = [self.viewControllers indexOfObject:viewController]; | |
| if (controllerIndex == tabBarController.selectedIndex) { | |
| return NO; | |
| } |
This requires the latest version of apktool.
apktool d $APK_PATH -o $OUTPUT_FOLDER
# Open the apktool.yml text file
# Alter the versionCode and versionName entries
# now rebuild!
apktool build $OUTPUT_FOLDER
| In Android Studio 1.0 the scheme has changed a little bit. | |
| The path to a unit test source file should be (app)/src/androidTest/java/com/mycompany/myapp/HelloWorldTest.java | |
| Here's how I set up Unit Tests in a new Android Studio project: | |
| - Open app in Android Studio. | |
| - Set the Project explorer (left hand window) to display 'Project' mode. Tap the little drop-down at the top left and select 'Project'. | |
| - Right click the 'src' directory, 'New -> Directory'. | |
| - Call new directory androidTest |
| @import CoreData; | |
| #import <Foundation/Foundation.h> | |
| @interface NSManagedObject (CALDeleteAll) | |
| /** | |
| * Deletes all instances of this object from CoreData (may take a while) | |
| */ | |
| + (void)cal_deleteAll:(NSManagedObjectContext *)context; |
| #import <Foundation/Foundation.h> | |
| @interface NSPointerArray (CALCompact) | |
| - (void)cal_compact; | |
| @end |
| // | |
| // Created by Ben Clayton on 23/12/14. | |
| // Copyright (c) 2014 Calvium Ltd. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> | |
| #import <UIKit/UIKit.h> | |
| #import "DDLog.h" | |
| @interface CustomLogFormatter : NSObject<DDLogFormatter> |