Skip to content

Commit

Permalink
Add referral program under feature flag
Browse files Browse the repository at this point in the history
Add acquisition backend methods

Init referrals sharing UI

Add invite on home screen

Use i18n for strings

Lint

Update status go

Pull acquisition contract to get SNT amount

Use new invite component

f pulling

go

Use screen instead of bottom sheet

Handle android install referrer

Post referrer to backend if present

go go

Add async storage for referral decisions

Update with the stage backend

Update contract methods

Modal

UI

Full handling of advertiser type

UI

test

UI

Handle with universal link

Allow multiple acquisition per installation

Fix android bottom sheet

Do not call service if no click-id received

Disable invite in release

Parse query params for referrer

Adapt UI changes

Add push notification

update deps

Mock react-native-push-notification

Request push notifications permission on press accept

Store transaction to local storage and load it back on login

Separate acquisition into smaller ns

Add chat invite

Get referrer only on first install

fix string

Fix firebase crash

Handle outdate click-id

Cleanup business logic

Update contract

Revert pn

Minor update to advertiser modal copy

OLD -  Welcome to Status! Here is some crypto to get you started
NEW - Here’s some crypto to get you started! Use it to get stickers, an ENS name and try dapps

OLD - By accepting you agree to the starter pack
NEW - By accepting you agree to the referral program

upgrade status-go

Add mainnet

Signed-off-by: Gheorghe Pinzaru <feross95@gmail.com>
  • Loading branch information
Ferossgp committed Aug 3, 2020
1 parent d0ce6f1 commit 3c42360
Show file tree
Hide file tree
Showing 52 changed files with 1,512 additions and 61 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ STATUS_GO_ENABLE_NIMBUS=0
KEYCARD_TEST_MENU=0
QR_READ_TEST_MENU=1
ENABLE_ROOT_ALERT=1
ENABLE_REFERRAL_INVITE=1
3 changes: 2 additions & 1 deletion .env.e2e
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ TOOLTIP_EVENTS=1
COMMANDS_ENABLED=1
KEYCARD_TEST_MENU=1
QR_READ_TEST_MENU=1
ENABLE_ROOT_ALERT=0
ENABLE_ROOT_ALERT=0
ENABLE_REFERRAL_INVITE=1
3 changes: 2 additions & 1 deletion .env.jenkins
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ PARTITIONED_TOPIC=0
CONTRACT_NODES=1
STATUS_GO_ENABLE_NIMBUS=0
KEYCARD_TEST_MENU=0
ENABLE_ROOT_ALERT=1
ENABLE_ROOT_ALERT=1
ENABLE_REFERRAL_INVITE=1
3 changes: 2 additions & 1 deletion .env.nightly
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ SNOOPY=0
RPC_NETWORKS_ONLY=0
PARTITIONED_TOPIC=0
CONTRACT_NODES=1
ENABLE_ROOT_ALERT=1
ENABLE_ROOT_ALERT=1
ENABLE_REFERRAL_INVITE=1
3 changes: 2 additions & 1 deletion .env.release
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ POW_TIME=1
SNOOPY=0
RPC_NETWORKS_ONLY=1
PARTITIONED_TOPIC=0
ENABLE_ROOT_ALERT=1
ENABLE_ROOT_ALERT=1
ENABLE_REFERRAL_INVITE=0
12 changes: 12 additions & 0 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,14 @@ PODS:
- React
- ReactNativeDarkMode (0.2.2):
- React
- RNCAsyncStorage (1.11.0):
- React
- RNCClipboard (1.2.2):
- React
- RNCMaskedView (0.1.9):
- React
- RNDeviceInfo (5.6.1):
- React
- RNFS (2.16.6):
- React
- RNGestureHandler (1.6.1):
Expand Down Expand Up @@ -434,8 +438,10 @@ DEPENDENCIES:
- ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
- "ReactNativeAudioToolkit (from `../node_modules/@react-native-community/audio-toolkit`)"
- ReactNativeDarkMode (from `../node_modules/react-native-dark-mode`)
- "RNCAsyncStorage (from `../node_modules/@react-native-community/async-storage`)"
- "RNCClipboard (from `../node_modules/@react-native-community/clipboard`)"
- "RNCMaskedView (from `../node_modules/@react-native-community/masked-view`)"
- RNDeviceInfo (from `../node_modules/react-native-device-info`)
- RNFS (from `../node_modules/react-native-fs`)
- RNGestureHandler (from `../node_modules/react-native-gesture-handler`)
- RNImageCropPicker (from `../node_modules/react-native-image-crop-picker`)
Expand Down Expand Up @@ -548,10 +554,14 @@ EXTERNAL SOURCES:
:path: "../node_modules/@react-native-community/audio-toolkit"
ReactNativeDarkMode:
:path: "../node_modules/react-native-dark-mode"
RNCAsyncStorage:
:path: "../node_modules/@react-native-community/async-storage"
RNCClipboard:
:path: "../node_modules/@react-native-community/clipboard"
RNCMaskedView:
:path: "../node_modules/@react-native-community/masked-view"
RNDeviceInfo:
:path: "../node_modules/react-native-device-info"
RNFS:
:path: "../node_modules/react-native-fs"
RNGestureHandler:
Expand Down Expand Up @@ -628,8 +638,10 @@ SPEC CHECKSUMS:
ReactCommon: ed4e11d27609d571e7eee8b65548efc191116eb3
ReactNativeAudioToolkit: de9610f323e855ac6574be8c99621f3d57c5df06
ReactNativeDarkMode: 0178ffca3b10f6a7c9f49d6f9810232b328fa949
RNCAsyncStorage: d059c3ee71738c39834a627476322a5a8cd5bf36
RNCClipboard: 8148e21ac347c51fd6cd4b683389094c216bb543
RNCMaskedView: 71fc32d971f03b7f03d6ab6b86b730c4ee64f5b6
RNDeviceInfo: b6e650fbd234732c759544218657d549b4339038
RNFS: 2bd9eb49dc82fa9676382f0585b992c424cd59df
RNGestureHandler: 8f09cd560f8d533eb36da5a6c5a843af9f056b38
RNImageCropPicker: 38865ab4af1b0b2146ad66061196bc0184946855
Expand Down
216 changes: 216 additions & 0 deletions nix/deps/gradle/deps.json
Original file line number Diff line number Diff line change
Expand Up @@ -1301,6 +1301,20 @@
}
},

{
"path": "com/android/installreferrer/installreferrer/1.1.2/installreferrer-1.1.2",
"host": "https://dl.google.com/dl/android/maven2",
"type": "aar",
"pom": {
"sha1": "4bdcf06a3ab05a52dfe2fa9da23bd68a1d8e947d",
"sha256": "1800bwlh71xvczpbf4pjg1plqyqjwcragjwnpbbja3q1d5m62pfy"
},
"jar": {
"sha1": "4d7db3af2818a333a61776d48ad10455a008f421",
"sha256": "1iv3jjkscx52017ahlscay822qbjmrkxwr1cbyiidlldzbvp5xyq"
}
},

{
"path": "com/android/support/animated-vector-drawable/26.0.2/animated-vector-drawable-26.0.2",
"host": "https://dl.google.com/dl/android/maven2",
Expand Down Expand Up @@ -3513,6 +3527,20 @@
}
},

{
"path": "com/google/android/gms/play-services-basement/17.0.0/play-services-basement-17.0.0",
"host": "https://dl.google.com/dl/android/maven2",
"type": "aar",
"pom": {
"sha1": "45c1c43219354319ea73c7cc7376b4f83adaf240",
"sha256": "0rjbl990ncim4zx344qis8j545qhd97n7hxl9dw2vv5jkrfjksgz"
},
"jar": {
"sha1": "f94e0b893e0d5d2a922577986c8b2a31fd79f634",
"sha256": "1753ax2qa2i4jhksyp3vjsgd8hygsg7lgj4zcgivyj5wbdwa296k"
}
},

{
"path": "com/google/android/gms/play-services-base/16.0.1/play-services-base-16.0.1",
"host": "https://dl.google.com/dl/android/maven2",
Expand All @@ -3527,6 +3555,20 @@
}
},

{
"path": "com/google/android/gms/play-services-base/17.0.0/play-services-base-17.0.0",
"host": "https://dl.google.com/dl/android/maven2",
"type": "aar",
"pom": {
"sha1": "77505aa02852800097ec02562d5905723f37114f",
"sha256": "096r6jb1qf3r9f3b3g008l1qbpj3diys8sig4wcixm75ig9qj163"
},
"jar": {
"sha1": "7fe5a19c8a10b304800a0dac51ffd7ae0acc0648",
"sha256": "1iscqvpwij7ild7jgay7s2pc2dy23n0713mmw93d7q19yznq02fx"
}
},

{
"path": "com/google/android/gms/play-services-clearcut/16.0.0/play-services-clearcut-16.0.0",
"host": "https://dl.google.com/dl/android/maven2",
Expand Down Expand Up @@ -3555,6 +3597,20 @@
}
},

{
"path": "com/google/android/gms/play-services-iid/17.0.0/play-services-iid-17.0.0",
"host": "https://dl.google.com/dl/android/maven2",
"type": "aar",
"pom": {
"sha1": "bf9f241f0eb754a65abf06dab1df551e5368d564",
"sha256": "0zzdyfg92zbfn3vp57zhihhfqjxwlw9jds3ycir4nx314llhnpr2"
},
"jar": {
"sha1": "5dc043b659c2ed77a937c514b06532049fb54bc1",
"sha256": "0s8qk60knf3ws2arsvdnz7v5q7s6xdwi4rbi2c4mpphjhsncxpfp"
}
},

{
"path": "com/google/android/gms/play-services-phenotype/16.0.0/play-services-phenotype-16.0.0",
"host": "https://dl.google.com/dl/android/maven2",
Expand Down Expand Up @@ -3583,6 +3639,20 @@
}
},

{
"path": "com/google/android/gms/play-services-stats/17.0.0/play-services-stats-17.0.0",
"host": "https://dl.google.com/dl/android/maven2",
"type": "aar",
"pom": {
"sha1": "a86ccdcbbff8207e5700392933c77ad81e183f85",
"sha256": "16x1vs7zvgsyf53vkclqr2n2n8fwvxgrhxk9c5zqa8rrc6425xhn"
},
"jar": {
"sha1": "5ed3441a1bcdb224b0fed0cc175257ed15174755",
"sha256": "1zm6hcmq6gq9av834fyy9jm371rrvb9qrkgsicjy4w9ba505pbp8"
}
},

{
"path": "com/google/android/gms/play-services-tasks/16.0.1/play-services-tasks-16.0.1",
"host": "https://dl.google.com/dl/android/maven2",
Expand All @@ -3597,6 +3667,20 @@
}
},

{
"path": "com/google/android/gms/play-services-tasks/17.0.0/play-services-tasks-17.0.0",
"host": "https://dl.google.com/dl/android/maven2",
"type": "aar",
"pom": {
"sha1": "ab81ab94f07c15697696e3da7fb026046403e0b9",
"sha256": "19kl9nwid519nr5pgjx5rmsjhv94fb82iakw03kbp57bq8137ngx"
},
"jar": {
"sha1": "18299a334d48bc5abfe3c9446c2a9e1a3b3f38e1",
"sha256": "198j66zyfdky344q09dfdrsb65vpp609g2q3gbzg6irnnww1fv9f"
}
},

{
"path": "com/google/android/gms/play-services-vision-common/17.0.2/play-services-vision-common-17.0.2",
"host": "https://dl.google.com/dl/android/maven2",
Expand Down Expand Up @@ -6537,6 +6621,44 @@
}
},

{
"path": "net/bytebuddy/byte-buddy-agent/1.10.5/byte-buddy-agent-1.10.5",
"host": "https://repo.maven.apache.org/maven2",
"type": "jar",
"pom": {
"sha1": "ff5249283e247e83ca52318c199a37d07c87a9c6",
"sha256": "05vhcrrhm77r4l66y0zgl20hjhb3hy0a8gsyxyb4af15s8hj44qy"
},
"jar": {
"sha1": "d1c949ee74c3421ffd3d9159c867777ded928448",
"sha256": "0nvym15y0sgnsn1azw521zs55sbwcjrz7fhmvc6q3xayjqq9j319"
}
},

{
"path": "net/bytebuddy/byte-buddy-parent/1.10.5/byte-buddy-parent-1.10.5",
"host": "https://repo.maven.apache.org/maven2",
"type": "pom",
"pom": {
"sha1": "6dcc6df682d0de2a216bc9952960ca83f8e9b1f7",
"sha256": "06n6c00v7mjxglmx2qa9iapyb2v2qirh8njz1n9mh83168c5b6nh"
}
},

{
"path": "net/bytebuddy/byte-buddy/1.10.5/byte-buddy-1.10.5",
"host": "https://repo.maven.apache.org/maven2",
"type": "jar",
"pom": {
"sha1": "f82260b7f4dad0d5560c571be5fcf4bfc7856473",
"sha256": "10lxs0lj0nry0zw0hy1my11imgw5v2gx2zvdpk0dkrv1r2f50hab"
},
"jar": {
"sha1": "d39f2a6c7a3550e03fb12a870e0829b0fa87f036",
"sha256": "1x6isxjm8fszz95s0xr9j81dcxxlwsd9x8hs5ibni7dvf0wn171w"
}
},

{
"path": "net/java/jvnet-parent/1/jvnet-parent-1",
"host": "https://repo.maven.apache.org/maven2",
Expand Down Expand Up @@ -7501,6 +7623,20 @@
}
},

{
"path": "org/apiguardian/apiguardian-api/1.1.0/apiguardian-api-1.1.0",
"host": "https://repo.maven.apache.org/maven2",
"type": "jar",
"pom": {
"sha1": "41f951c2aff248588037007e8f915467b9971a6f",
"sha256": "0497hss6262ckzx0kxfrb7pp1h1yqicyci0qf4n7pdyrbk5vjid9"
},
"jar": {
"sha1": "fc9dff4bb36d627bdc553de77e1f17efd790876c",
"sha256": "1m7xvh40nadvzffwmlxvdwj7q9hn5gl7b4gp30m7mqg3ibzykam9"
}
},

{
"path": "org/bouncycastle/bcpkix-jdk15on/1.48/bcpkix-jdk15on-1.48",
"host": "https://repo.maven.apache.org/maven2",
Expand Down Expand Up @@ -8757,6 +8893,34 @@
}
},

{
"path": "org/junit/jupiter/junit-jupiter-api/5.5.2/junit-jupiter-api-5.5.2",
"host": "https://repo.maven.apache.org/maven2",
"type": "jar",
"pom": {
"sha1": "9f25eaf1bc6a4fe8c111c64a61231e7525d301f4",
"sha256": "0q4811nzfmvf90js92qrj6ylyc1pxcn2s52v79d1lyjqv205v8bn"
},
"jar": {
"sha1": "6393db7e4c0265152d8fc4ff146633d1a7d36c47",
"sha256": "074vqw62xy6410y4dq0izkh9d114xl4cl04d5708f6cksgdjz6i4"
}
},

{
"path": "org/junit/platform/junit-platform-commons/1.5.2/junit-platform-commons-1.5.2",
"host": "https://repo.maven.apache.org/maven2",
"type": "jar",
"pom": {
"sha1": "0d21e5c12e2555dc54c67174209a2c7dc5d88779",
"sha256": "1nmakw0a2d94av6rmf5wssqp3rwx05j6gyw7ln6aza1jsvgd9l1v"
},
"jar": {
"sha1": "9703df63b65d415b2a027d43ce908c625b3aedce",
"sha256": "041cd0g91dkcldljsbfn1wgbrwxfh4r99rv63bkqa37jq3gsyi7w"
}
},

{
"path": "org/jvnet/staxex/stax-ex/1.7.7/stax-ex-1.7.7",
"host": "https://repo.maven.apache.org/maven2",
Expand Down Expand Up @@ -8785,6 +8949,30 @@
}
},

{
"path": "org/mockito/mockito-core/3.3.3/mockito-core-3.3.3",
"host": "https://repo.maven.apache.org/maven2",
"type": "jar",
"pom": {
"sha1": "1f5ef203a284440a02e4c9f5ad6c7312c3832603",
"sha256": "04wnqg81hsk40kwvgzjx83a8mb1i9s8y8583v7ks4r0rcf63pwfg"
},
"jar": {
"sha1": "4878395d4e63173f3825e17e5e0690e8054445f1",
"sha256": "0sq38gx7ssavmnljn9wj7dd807ccc86h09d8ddla9ysn0k2lirjb"
}
},

{
"path": "org/objenesis/objenesis-parent/2.6/objenesis-parent-2.6",
"host": "https://repo.maven.apache.org/maven2",
"type": "pom",
"pom": {
"sha1": "cfc0966402e8174fbacd5c5dd355b5815364a4fe",
"sha256": "1aivk380s7n1lzhd9gxvar92ngk4n33cgpk3n00685rw5b5gw99q"
}
},

{
"path": "org/objenesis/objenesis-parent/3.1/objenesis-parent-3.1",
"host": "https://repo.maven.apache.org/maven2",
Expand All @@ -8795,6 +8983,20 @@
}
},

{
"path": "org/objenesis/objenesis/2.6/objenesis-2.6",
"host": "https://repo.maven.apache.org/maven2",
"type": "jar",
"pom": {
"sha1": "b6d1f689e0d2b2d96b0730fad7b5d96902bf64d8",
"sha256": "1wfkl6z4i55ga8bkyd8kbr2axxfyiczm0xghj6yz2bf6kn80f4sc"
},
"jar": {
"sha1": "639033469776fd37c08358c6b92a4761feb2af4b",
"sha256": "13bhn2p9k0sxy82l1mvvb97dd8k76h6fypxag4yayl62zdl865jy"
}
},

{
"path": "org/objenesis/objenesis/3.1/objenesis-3.1",
"host": "https://repo.maven.apache.org/maven2",
Expand All @@ -8809,6 +9011,20 @@
}
},

{
"path": "org/opentest4j/opentest4j/1.2.0/opentest4j-1.2.0",
"host": "https://repo.maven.apache.org/maven2",
"type": "jar",
"pom": {
"sha1": "b5c66f49b69c36797c1fb7f4ec57776f261303ad",
"sha256": "157r6rcl0ri2w172npfsfyrdynq23wjcjx7cpl1qizy12qc6fvm9"
},
"jar": {
"sha1": "28c11eb91f9b6d8e200631d46e20a7f407f2a046",
"sha256": "1wka53y7j9188i89y92azlc4qq660pd64fzgh7xpdncq13k2v0aq"
}
},

{
"path": "org/ow2/asm/asm-analysis/5.0.3/asm-analysis-5.0.3",
"host": "https://repo.maven.apache.org/maven2",
Expand Down
Loading

0 comments on commit 3c42360

Please sign in to comment.