-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS: Support GDPR (APSAnalytics 2.1.0), add missing native header #10051
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
84a6ffb
Support GDPR (APSAnalytics 2.1.0)
hansemannn f98ca08
Merge branch 'master' into TIMOB-26004
hansemannn aaa24a4
Merge branch 'master' into TIMOB-26004
hansemannn e8af109
Change getter, update docs
hansemannn 70d64e6
Update binary based on review in aps_sdk repo
hansemannn ee20dfa
Extend GDPR description, use final binary
hansemannn 5dfb780
Do not throw.
hansemannn 8ab606f
Merge branch 'master' into TIMOB-26004
hansemannn 782f320
Merge branch 'master' into TIMOB-26004
vijaysingh-axway 94ae838
Fix stupid return typo, do not throw on re-init
hansemannn 1510196
Use updated APSAnalytics binary
hansemannn 9d732d5
Add unit-test
hansemannn addb8c5
Use final APSAnalytics SDK
hansemannn 90812dc
Update ti.analytics.addontest.js
hansemannn File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
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,67 @@ | ||
/** | ||
* Appcelerator Platform SDK | ||
* Copyright (c) 2014 by Appcelerator, Inc. All Rights Reserved. | ||
* Proprietary and Confidential - This source code is not for redistribution | ||
*/ | ||
|
||
@import Foundation; | ||
@import CoreLocation; | ||
@import UIKit; | ||
|
||
|
||
#import <sys/sysctl.h> | ||
#import <mach/mach.h> | ||
#import <sys/utsname.h> | ||
|
||
#import <sys/types.h> | ||
#import <sys/socket.h> | ||
#import <ifaddrs.h> | ||
#import <arpa/inet.h> | ||
|
||
#ifdef DebugLog | ||
#undef DebugLog | ||
#endif // DebugLog | ||
|
||
#ifdef TraceLog | ||
#undef TraceLog | ||
#endif // TraceLog | ||
|
||
#ifdef ErrorLog | ||
#undef ErrorLog | ||
#endif | ||
|
||
#ifdef DEBUG | ||
#define DebugLog(fmt, ...) NSLog((@"[DEBUG] " fmt), ##__VA_ARGS__) | ||
#define TraceLog(fmt, ...) NSLog((@"[TRACE] " fmt), ##__VA_ARGS__) | ||
#define ErrorLog(fmt, ...) NSLog((@"[ERROR] " fmt), ##__VA_ARGS__) | ||
#else | ||
#define DebugLog(...) | ||
#define TraceLog(...) | ||
#define ErrorLog(...) | ||
#endif // DEBUG | ||
|
||
@interface APSUtility : NSObject | ||
|
||
+(BOOL)isiPad; | ||
+(NSString*)deviceModel; | ||
+(NSString *)stringFromHexString:(NSString *)hexString; | ||
+(NSString*)jsonStringify:(id)value error:(NSError**)error; | ||
+(id)jsonParse:(NSString*)value error:(NSError**)error; | ||
+(NSString *) UTCDate; | ||
+(NSString *)UTCDateForDate:(NSDate*)date; | ||
+(NSString*)createUUID; | ||
+(NSString*)appIdentifier; | ||
+(NSNumber *) numCores; | ||
+(NSString *)ostype; | ||
+(NSString *)getArchitecture; | ||
+(BOOL)isOnline; | ||
+(NSString *)systemVersion; | ||
+(NSString *)deviceName; | ||
+(NSString *)networkType; | ||
+(NSString*)stringValue:(id)value; | ||
+(NSDate *)dateForString:(NSString *)dateString; | ||
+(BOOL) isEmptyString:(NSString*)value; | ||
+(NSTimeInterval)timeBetweenStartDate:(NSDate *)startDate andEndDate:(NSDate*)endDate; | ||
+(NSDictionary *)locationDictionary:(CLLocation *)newLocation; | ||
|
||
@end |
Binary file not shown.
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,32 @@ | ||
/* | ||
* Appcelerator Titanium Mobile | ||
* Copyright (c) 2011-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. | ||
*/ | ||
/* eslint-env mocha */ | ||
/* global Ti */ | ||
/* eslint no-unused-expressions: "off" */ | ||
'use strict'; | ||
var should = require('./utilities/assertions'); | ||
|
||
describe('Titanium.Analytics', function () { | ||
it.androidMissing('.optedOut', function () { | ||
should(Ti.Analytics.optedOut).be.a.Boolean; | ||
should(Ti.Analytics.setOptedOut).be.a.Function; | ||
should(Ti.Analytics.getOptedOut).be.a.Function; | ||
|
||
should(Ti.Analytics.optedOut).eql(false); | ||
should(Ti.Analytics.getOptedOut()).eql(false); | ||
|
||
Ti.Analytics.optedOut = true; | ||
|
||
should(Ti.Analytics.optedOut).eql(true); | ||
should(Ti.Analytics.getOptedOut()).eql(true); | ||
|
||
Ti.Analytics.setOptedOut(false); | ||
|
||
should(Ti.Analytics.optedOut).eql(false); | ||
should(Ti.Analytics.getOptedOut()).eql(false); | ||
}); | ||
}); |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@garymathews @ypbnv Once Android is merged, we can update this one to work or all platforms.
@infosia I think this works on Windows already, since your tests have been pretty extensive before merging. Any objections? :-)