Skip to content

Commit

Permalink
Update OnePassword extension
Browse files Browse the repository at this point in the history
  • Loading branch information
hansemannn committed Jun 5, 2017
1 parent 7542ea0 commit 166c28f
Show file tree
Hide file tree
Showing 10 changed files with 84 additions and 51 deletions.
Binary file modified iphone/Classes/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion iphone/Classes/OnePasswordExtension/OnePasswordExtension.h
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ typedef void (^OnePasswordExtensionItemCompletionBlock)(NSExtensionItem * __null
@param loginDetailsDictionary about the Login to be saved, including custom fields, are stored in an dictionary and given to the 1Password Extension.
@param passwordGenerationOptions The Password generator options epresented in a dictionary form.
@param passwordGenerationOptions The Password generator options represented in a dictionary form.
@param viewController The view controller from which the 1Password Extension is invoked. Usually `self`
Expand Down
78 changes: 42 additions & 36 deletions iphone/Classes/OnePasswordExtension/OnePasswordExtension.m
100755 → 100644

Large diffs are not rendered by default.

10 changes: 3 additions & 7 deletions iphone/Classes/TiOnepasswordModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,11 @@ @implementation TiOnepasswordModule

#pragma mark Internal

// this is generated for your module, please do not change it
- (id)moduleGUID
{
return @"3506d384-99f9-409f-a4f3-a1f889af8746";
}

// this is generated for your module, please do not change it
- (NSString *)moduleId
{
return @"ti.onepassword";
Expand All @@ -32,8 +30,6 @@ - (NSString *)moduleId

- (void)startup
{
// this method is called when the module is first loaded
// you *must* call the superclass
[super startup];

NSLog(@"[DEBUG] %@ loaded",self);
Expand Down Expand Up @@ -68,7 +64,7 @@ - (void)findLoginForURLString:(id)args

if (error) {
[event setValue:[error localizedDescription] forKey:@"error"];
[event setValue:[error code] forKey:@"code"];
[event setValue:NUMINTEGER([error code]) forKey:@"code"];
}

if (loginDictionary.count > 0) {
Expand Down Expand Up @@ -109,7 +105,7 @@ - (void)storeLoginForURLString:(id)args

if (error) {
[event setValue:[error localizedDescription] forKey:@"error"];
[event setValue:[error code] forKey:@"code"];
[event setValue:NUMINTEGER([error code]) forKey:@"code"];
}

if (loginDictionary.count > 0) {
Expand Down Expand Up @@ -150,7 +146,7 @@ - (void)changePasswordForLoginForURLString:(id)args

if (error) {
[event setValue:[error localizedDescription] forKey:@"error"];
[event setValue:[error code] forKey:@"code"];
[event setValue:NUMINTEGER([error code]) forKey:@"code"];
}

if (loginDictionary.count > 0) {
Expand Down
2 changes: 1 addition & 1 deletion iphone/manifest
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# this is your module manifest and used by Titanium
# during compilation, packaging, distribution, etc.
#
version: 2.0.0
version: 2.0.1
apiversion: 2
architectures: armv7 arm64 i386 x86_64
description: ti.onepassword
Expand Down
37 changes: 34 additions & 3 deletions iphone/ti.onepassword.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
0867D690FE84028FC02AAC07 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0600;
LastUpgradeCheck = 0830;
};
buildConfigurationList = 1DEB922208733DC00010E9CD /* Build configuration list for PBXProject "ti.onepassword" */;
compatibilityVersion = "Xcode 3.2";
Expand Down Expand Up @@ -312,21 +312,37 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 24DD6D1B1134B66800162E58 /* titanium.xcconfig */;
buildSettings = {
CLANG_CXX_LIBRARY = "libstdc++";
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_CXX_LIBRARY = "compiler-default";
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
DSTROOT = /tmp/TiOnepassword.dst;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = c99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = TiOnepassword_Prefix.pch;
GCC_PREPROCESSOR_DEFINITIONS = "TI_VERSION=$(TI_VERSION)";
GCC_TREAT_WARNINGS_AS_ERRORS = NO;
GCC_VERSION = "";
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = NO;
GCC_WARN_MISSING_PARENTHESES = NO;
GCC_WARN_SHADOW = NO;
GCC_WARN_STRICT_SELECTOR_MATCH = NO;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_PARAMETER = NO;
GCC_WARN_UNUSED_VALUE = NO;
Expand All @@ -352,19 +368,34 @@
baseConfigurationReference = 24DD6D1B1134B66800162E58 /* titanium.xcconfig */;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LIBRARY = "libstdc++";
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_CXX_LIBRARY = "compiler-default";
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
DSTROOT = /tmp/TiOnepassword.dst;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = c99;
GCC_MODEL_TUNING = G5;
GCC_NO_COMMON_BLOCKS = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = TiOnepassword_Prefix.pch;
GCC_PREPROCESSOR_DEFINITIONS = "TI_VERSION=$(TI_VERSION)";
GCC_TREAT_WARNINGS_AS_ERRORS = NO;
GCC_VERSION = "";
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = NO;
GCC_WARN_MISSING_PARENTHESES = NO;
GCC_WARN_SHADOW = NO;
GCC_WARN_STRICT_SELECTOR_MATCH = NO;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_PARAMETER = NO;
GCC_WARN_UNUSED_VALUE = NO;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0800"
LastUpgradeVersion = "0830"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0800"
LastUpgradeVersion = "0830"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
2 changes: 1 addition & 1 deletion iphone/titanium.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// OF YOUR TITANIUM SDK YOU'RE BUILDING FOR
//
//
TITANIUM_SDK_VERSION = 6.0.3.GA
TITANIUM_SDK_VERSION = 6.1.0.GA


//
Expand Down

0 comments on commit 166c28f

Please sign in to comment.