Skip to content

Commit 4ac162c

Browse files
author
Manoj Kumar
committed
adjust attribution for iOS
0 parents  commit 4ac162c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+5463
-0
lines changed

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Build folder and log file
2+
bin/
3+
build/
4+
android/libs
5+
android/documentation
6+
android/example
7+
android/assets
8+
android/LICENSE
9+
iphone/build/
10+
build.log

.project

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>adjust</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>com.appcelerator.titanium.core.builder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>com.aptana.ide.core.unifiedBuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
</buildSpec>
19+
<natures>
20+
<nature>com.appcelerator.titanium.mobile.module.nature</nature>
21+
<nature>com.aptana.projects.webnature</nature>
22+
</natures>
23+
</projectDescription>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
eclipse.preferences.version=1
2+
selectUserAgents=com.appcelerator.titanium.mobile.module.nature\:iphone

LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
MIT

README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Adjust
2+
3+
## Description
4+
5+
https://www.adjust.com/attribution/ for iOS
6+
7+
## Accessing the adjust Module
8+
9+
To access this module from JavaScript, you would do the following:
10+
11+
```
12+
var Adjust = require("ti.adjust");
13+
```
14+
15+
## Methods
16+
17+
### init
18+
19+
```
20+
Adjust.init({
21+
key : "API_KEY",
22+
environment : Adjust.ENVIRONMENT_SANDBOX,
23+
logLevel : Adjust.LOG_LEVEL_VERBOSE
24+
});
25+
```
26+
27+
## CONSTANTS
28+
29+
ENVIRONMENT_SANDBOX
30+
ENVIRONMENT_PRODUCTION
31+
LOG_LEVEL_VERBOSE
32+
LOG_LEVEL_DEBUG
33+
LOG_LEVEL_INFO
34+
LOG_LEVEL_WARN
35+
LOG_LEVEL_ERROR
36+
LOG_LEVEL_ASSERT
37+
38+
## License
39+
40+
MIT

assets/README

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Place your assets like PNG files in this directory and they will be packaged
2+
with your module.
3+
4+
All JavaScript files in the assets directory are IGNORED except if you create a
5+
file named "ti.adjust.js" in this directory in which case it will be
6+
wrapped by native code, compiled, and used as your module. This allows you to
7+
run pure JavaScript modules that are pre-compiled.
8+
9+
Note: Mobile Web does not support this assets directory.

documentation/index.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Adjust
2+
3+
## Description
4+
5+
https://www.adjust.com/attribution/ for iOS
6+
7+
## Accessing the adjust Module
8+
9+
To access this module from JavaScript, you would do the following:
10+
11+
```
12+
var Adjust = require("ti.adjust");
13+
```
14+
15+
## Methods
16+
17+
### init
18+
19+
```
20+
Adjust.init({
21+
key : "API_KEY",
22+
environment : Adjust.ENVIRONMENT_SANDBOX,
23+
logLevel : Adjust.LOG_LEVEL_VERBOSE
24+
});
25+
```
26+
27+
## CONSTANTS
28+
29+
ENVIRONMENT_SANDBOX
30+
ENVIRONMENT_PRODUCTION
31+
LOG_LEVEL_VERBOSE
32+
LOG_LEVEL_DEBUG
33+
LOG_LEVEL_INFO
34+
LOG_LEVEL_WARN
35+
LOG_LEVEL_ERROR
36+
LOG_LEVEL_ASSERT
37+
38+
## License
39+
40+
MIT

example/app.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
var Adjust = require("ti.adjust");
2+
Adjust.init({
3+
key : "API_KEY",
4+
environment : Adjust.ENVIRONMENT_SANDBOX,
5+
logLevel : Adjust.LOG_LEVEL_VERBOSE
6+
});
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
//
2+
// ADJActivityHandler.h
3+
// Adjust
4+
//
5+
// Created by Christian Wellenbrock on 2013-07-01.
6+
// Copyright (c) 2013 adjust GmbH. All rights reserved.
7+
//
8+
9+
#import "Adjust.h"
10+
#import "ADJAttribution.h"
11+
12+
@protocol ADJActivityHandler <NSObject>
13+
14+
- (id)initWithConfig:(ADJConfig *)adjustConfig;
15+
16+
- (void)trackSubsessionStart;
17+
- (void)trackSubsessionEnd;
18+
19+
- (void)trackEvent:(ADJEvent *)event;
20+
21+
- (void)finishedTrackingWithResponse:(NSDictionary *)jsonDict;
22+
- (void)setEnabled:(BOOL)enabled;
23+
- (BOOL)isEnabled;
24+
- (void)appWillOpenUrl:(NSURL*)url;
25+
- (void)setDeviceToken:(NSData *)deviceToken;
26+
27+
- (ADJAttribution*) attribution;
28+
- (void) setAttribution:(ADJAttribution*)attribution;
29+
- (void) setAskingAttribution:(BOOL)askingAttribution;
30+
31+
- (BOOL) updateAttribution:(ADJAttribution*) attribution;
32+
- (void) setIadDate:(NSDate*)iAdImpressionDate withPurchaseDate:(NSDate*)appPurchaseDate;
33+
34+
- (void) launchAttributionDelegate;
35+
36+
- (void) setOfflineMode:(BOOL)enabled;
37+
38+
@end
39+
40+
@interface ADJActivityHandler : NSObject <ADJActivityHandler>
41+
42+
+ (id<ADJActivityHandler>)handlerWithConfig:(ADJConfig *)adjustConfig;
43+
44+
@end

0 commit comments

Comments
 (0)