Skip to content

Commit 91dfc50

Browse files
authored
Merge pull request #15 from ddxv/main
README cleanup time Added links to discord MVP roadmap Contributing info
2 parents 546b370 + c725c91 commit 91dfc50

1 file changed

Lines changed: 36 additions & 26 deletions

File tree

README.md

Lines changed: 36 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,29 @@
11
# OpenAttribution Android SDK
22

3-
🏗️Under construction.🏗️ If you'd like to help feel free to send a PR or join the Dicsord. More info on [OpenAttribution.dev](https://openattribution.dev).
3+
🏗️Under construction.🏗️
4+
If you'd like to help feel free to send a PR or join the [OpenAttribution Discord](https://discord.gg/Z5ueYE3Ct3).
5+
6+
7+
More info on [OpenAttribution.dev](https://openattribution.dev).
48

59

610
## MVP Goal
711

812
To have a fully functional SDK which can be used to track and attribute installs, events and revenue for iOS back to an OpenAttribution server.
13+
### Event tracking and details
14+
915

10-
## MVP feature roadmap
16+
## MVP feature road map
1117

12-
- Library installable via Cocoapods (? is this the right approach?) or other dependency manager for mac/ios
13-
- user input server endpoint ie `https://demo.openattribution.dev`
14-
- event tracking with params
15-
- documentation for how to use and next steps
18+
- [x] Library installable via Maven
19+
- [x] user input server endpoint ie `https://demo.openattribution.dev`
20+
- [ ] Events:
21+
- [x] app_open tracking and attributing
22+
- [ ] Basic event tracking
23+
- [ ] Basic revenue tracking
24+
- [ ] Documentation for how to use and next steps
1625

17-
## Usage
26+
## Install
1827

1928
You can get the latest version of OpenAttribution's (Android SDK from Maven Central)[https://central.sonatype.com/artifact/dev.openattribution/open-attribution-sdk]
2029

@@ -26,6 +35,8 @@ dependencies {
2635
}
2736
```
2837

38+
## Tracking App Open
39+
2940
`MyApplication.kts`
3041
```kotlin
3142

@@ -49,28 +60,27 @@ class MyApplication : Application() {
4960
```
5061

5162

52-
### Event tracking and params details
53-
Events:
54-
- Basic app_open tracking and attributing
55-
- Basic event tracking
56-
- Basic revenue tracking
5763

58-
### ExistingOpenAttribution Params:
5964

60-
These are very loosely defined in:
65+
## Local Development:
66+
67+
If you're interested in contributing to OpenAttribution Android SDK please don't hesitate to reach out [on Discord](https://discord.gg/Z5ueYE3Ct3) or with a PR.
68+
69+
The OpenAttribution postback API will expect or allow the values as defined here:
6170
https://github.com/OpenAttribution/Open-Attribution/blob/main/apps/postback-api/config/dimensions.py
6271

63-
```python
64-
# In App key values
65-
APP_EVENT_UID = "event_uid" # UUID4, unique per tracking call
66-
APP_EVENT_ID = "event_id" # app_open, event_name
67-
APP_EVENT_TIME = "event_time" # epoch timestamp in ms
68-
APP_EVENT_REV = "revenue" # not sure if this is float or string
69-
APP_OA_USER_ID = "oa_uid" # UUID4, unique per user
70-
```
72+
#### Sample post back payload
73+
This is a sample of the minimum required postback by the OpenAttribution server. The empty IFA.
7174

72-
#### Sample postback payload
73-
```
74-
https://demo.openattribution.dev/collect/events/com.example.app?ifa=00000000-0000-0000-0000-000000000000&event_time=1732003510046&event_uid=5730a99e-b009-41da-9d52-1315e26941c1&event_id=app_open&oa_uid=3bd9e091-fa6e-4b91-8dd1-503f8d4fe8f2
75-
```
75+
```http
76+
POST https://demo.openattribution.dev/collect/events/com.example.app HTTP/1.1
77+
Content-Type: application/json
78+
79+
{
80+
"ifa": "00000000-0000-0000-0000-000000000000",
81+
"event_time": 1732003510046,
82+
"event_uid": "5730a99e-b009-41da-9d52-1315e26941c1",
83+
"event_id": "app_open",
84+
"oa_uid": "3bd9e091-fa6e-4b91-8dd1-503f8d4fe8f2"
85+
}
7686

0 commit comments

Comments
 (0)