-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '8_1_X' into TIMOB-26770-8_1_X
- Loading branch information
Showing
20 changed files
with
605 additions
and
592 deletions.
There are no files selected for viewing
381 changes: 284 additions & 97 deletions
381
android/modules/database/src/java/ti/modules/titanium/database/TiDatabaseProxy.java
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* Appcelerator Titanium Mobile | ||
* Copyright (c) 2019-present by Appcelerator, Inc. All Rights Reserved. | ||
* Licensed under the terms of the Apache Public License | ||
* Please see the LICENSE included with this distribution for details. | ||
*/ | ||
|
||
#import <TitaniumKit/TiUtils.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface TiUtils (Addons) | ||
|
||
/** | ||
Returns a unique identifier for this app. | ||
This will change upon a fresh install. | ||
@return UUID for this app. | ||
*/ | ||
+ (NSString *)appIdentifier; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** | ||
* Appcelerator Titanium Mobile | ||
* Copyright (c) 2019-present by Appcelerator, Inc. All Rights Reserved. | ||
* Licensed under the terms of the Apache Public License | ||
* Please see the LICENSE included with this distribution for details. | ||
*/ | ||
|
||
#import "TiUtils+Addons.h" | ||
|
||
static NSString *kAppUUIDString = @"com.appcelerator.uuid"; | ||
|
||
@implementation TiUtils (Addons) | ||
|
||
+ (NSString *)appIdentifier | ||
{ | ||
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; | ||
NSString *uid = [defaults stringForKey:kAppUUIDString]; | ||
if (uid == nil) { | ||
uid = [TiUtils createUUID]; | ||
[defaults setObject:uid forKey:kAppUUIDString]; | ||
[defaults synchronize]; | ||
} | ||
|
||
return uid; | ||
} | ||
|
||
@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
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
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
Oops, something went wrong.