Skip to content

Commit 3a45291

Browse files
committed
Merge remote-tracking branch 'origin/feat/fc' into develop
* origin/feat/fc: (511 commits) build: start development on next release build: set emojis as launched feat(fc): add counter to room description feat(fc): implement room descriptions for hosts chore(fc): establish beta flag for room descriptions chore(fc): update protos and add plumbing for room descriptions chore(emojis): be opportunistic about their send delivery success fix(ui/emojis): move EmojiModal to ModalScreen chore(ui/emojis): add statusBarPadding to EmojiModal chore(fc): sort emojis by sentAt to keep order consistent chore(ui/emojis): add navbar padding and increase spacing in garden fix(fc): attempt to fix frequent reaction query to prevent duplicates chore(fc): tweak frequent emoji query fix(fc): add proper key for handling tapped emoji counters (also remove consideration of x offset) chore(fc): remove deleted reaction filtering and only consider those used 4+ times feat(fc): add weighting to ranking of frequently used emojis based on sent (and not-removed) reactions feat(fc): pull in Unicode CLDR for keywording; implement search chore(fc/auth): internally set authState based on userFlags when set feat: categorize emojis and add selection control in garden feat(fc): start tip modal at 5 Kin ...
2 parents 663d490 + 9389d8b commit 3a45291

File tree

1,549 files changed

+98334
-10081
lines changed

Some content is hidden

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

1,549 files changed

+98334
-10081
lines changed

.github/workflows/build-upload-android-alpha.yml renamed to .github/workflows/build-fc-upload-android-internal.yml

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1-
name: Android Build and Deploy (Alpha)
1+
name: Flipchat Build and Deploy
22

33
env:
44
# The name of the main module repository
5-
main_project_module: app
5+
main_project_module: flipchatApp
66

77
# The name of the Play Store
8-
playstore_name: Code Wallet
8+
playstore_name: Flipchat
99

1010
on:
11-
push:
12-
tags:
13-
- 'v*'
14-
1511
# Allows you to run this workflow manually from the Actions tab
1612
workflow_dispatch:
13+
inputs:
14+
track:
15+
description: 'Define PlayStore track name'
16+
required: true
17+
default: 'internal'
1718

1819
jobs:
1920
deploy:
@@ -42,8 +43,8 @@ jobs:
4243
id: google_services_json_file
4344
with:
4445
fileName: google-services.json
45-
fileDir: ./app/src
46-
encodedString: ${{ secrets.GOOGLE_SERVICES_JSON }}
46+
fileDir: ./flipchatApp/src
47+
encodedString: ${{ secrets.FLIPCHAT_GOOGLE_SERVICES_JSON }}
4748

4849
- name: Decode Service Account Key JSON file
4950
uses: timheuer/base64-to-file@v1
@@ -63,11 +64,11 @@ jobs:
6364
uses: timheuer/base64-to-file@v1
6465
with:
6566
fileName: key
66-
fileDir: ./app/key
67+
fileDir: ./flipchatApp/key
6768
encodedString: ${{ secrets.UPLOAD_KEY_STORE }}
6869

6970
- name: Setup BugSnag API Key
70-
run: echo BUGSNAG_API_KEY=\"${{ secrets.BUGSNAG_API_KEY }}\" > ./local.properties
71+
run: echo BUGSNAG_API_KEY=\"${{ secrets.FLIPCHAT_BUGSNAG_API_KEY }}\" > ./local.properties
7172

7273
- name: Setup Fingerprint API Key
7374
run: echo FINGERPRINT_API_KEY=${{ secrets.FINGERPRINT_API_KEY }} >> ./local.properties
@@ -79,22 +80,28 @@ jobs:
7980
run: echo KADO_API_KEY=\"${{ secrets.KADO_API_KEY }}\" >> ./local.properties
8081

8182
- name: Setup Mixpanel API Key
82-
run: echo MIXPANEL_API_KEY=\"${{ secrets.MIXPANEL_API_KEY }}\" >> ./local.properties
83+
run: echo MIXPANEL_API_KEY=\"${{ secrets.FLIPCHAT_MIXPANEL_API_KEY }}\" >> ./local.properties
84+
85+
- name: Setup X (Twitter) OAuth Client ID
86+
run: echo X_CLIENT_ID=\"${{ secrets.FLIPCHAT_X_CLIENT_ID }}\" >> ./local.properties
8387

8488
- name: Run tests
85-
run: bundle exec fastlane android test
89+
run: bundle exec fastlane android fc_tests
8690

8791
- name: Build & deploy Android release
88-
run: bundle exec fastlane android deploy_alpha
92+
run: bundle exec fastlane android deploy_fc
8993
env:
9094
STORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
9195
KEY_ALIAS: ${{ secrets.KEY_ALIAS}}
9296
KEY_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
9397
SERVICE_ACCOUNT_KEY_JSON: ${{ steps.service_account_json_file.outputs.filePath }}
98+
PLAYSTORE_TRACK: ${{ github.event.inputs.track }}
9499

95100
- name: Upload build artifacts
96-
uses: actions/upload-artifact@v2
101+
uses: actions/upload-artifact@v4
102+
if: always()
97103
with:
98104
name: assets
99105
path: |
100-
${{ github.workspace }}/app/build/outputs/bundle/release
106+
${{ github.workspace }}/flipchatApp/build/outputs/bundle/release
107+
${{ github.workspace }}/flipchatApp/build/outputs/apk/release

.github/workflows/build-upload-android-internal.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Android Build and Deploy (Internal)
1+
name: Code Build and Deploy (Internal)
22

33
env:
44
# The name of the main module repository
@@ -78,10 +78,10 @@ jobs:
7878
run: echo MIXPANEL_API_KEY=\"${{ secrets.MIXPANEL_API_KEY }}\" >> ./local.properties
7979

8080
- name: Run tests
81-
run: bundle exec fastlane android test
81+
run: bundle exec fastlane android code_tests
8282

8383
- name: Build & deploy Android release
84-
run: bundle exec fastlane android deploy_internal
84+
run: bundle exec fastlane android deploy_code_internal
8585
env:
8686
STORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
8787
KEY_ALIAS: ${{ secrets.KEY_ALIAS}}
@@ -90,6 +90,7 @@ jobs:
9090

9191
- name: Upload build artifacts
9292
uses: actions/upload-artifact@v4
93+
if: always()
9394
with:
9495
name: assets
9596
path: |

.github/workflows/ci.yml

Lines changed: 50 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ env:
1111
JAVA_VERSION: 17
1212

1313
jobs:
14-
unit-tests:
15-
name: Unit tests
14+
code-tests:
15+
name: Run Code Tests
1616
runs-on: ubuntu-latest
17-
timeout-minutes: 60
1817
steps:
1918
- uses: actions/checkout@master
2019

@@ -38,7 +37,7 @@ jobs:
3837
fileName: google-services.json
3938
fileDir: ./app/src
4039
encodedString: ${{ secrets.GOOGLE_SERVICES_JSON }}
41-
40+
4241
- name: Setup BugSnag API Key
4342
run: echo BUGSNAG_API_KEY=\"${{ secrets.BUGSNAG_API_KEY }}\" > ./local.properties
4443

@@ -54,5 +53,50 @@ jobs:
5453
- name: Setup Mixpanel API Key
5554
run: echo MIXPANEL_API_KEY=\"${{ secrets.MIXPANEL_API_KEY }}\" >> ./local.properties
5655

57-
- name: Run tests
58-
run: bundle exec fastlane android test
56+
- name: Run Code tests
57+
run: bundle exec fastlane android code_tests
58+
59+
fc-tests:
60+
name: Run Flipchat Tests
61+
runs-on: ubuntu-latest
62+
steps:
63+
- uses: actions/checkout@master
64+
65+
- name: Setup Java env
66+
uses: actions/setup-java@v3
67+
with:
68+
java-version: '17'
69+
distribution: 'corretto'
70+
cache: 'gradle'
71+
72+
- name: Setup Ruby env
73+
uses: ruby/setup-ruby@v1
74+
with:
75+
ruby-version: 2.7.2
76+
bundler-cache: true
77+
78+
- name: Decode Google Services JSON file
79+
uses: timheuer/base64-to-file@v1
80+
id: google_services_json_file
81+
with:
82+
fileName: google-services.json
83+
fileDir: ./flipchatApp/src
84+
encodedString: ${{ secrets.FLIPCHAT_GOOGLE_SERVICES_JSON }}
85+
86+
- name: Setup BugSnag API Key
87+
run: echo BUGSNAG_API_KEY=\"${{ secrets.FLIPCHAT_BUGSNAG_API_KEY }}\" > ./local.properties
88+
89+
- name: Setup Fingerprint API Key
90+
run: echo FINGERPRINT_API_KEY=${{ secrets.FINGERPRINT_API_KEY }} >> ./local.properties
91+
92+
- name: Setup Google Cloud Project Number
93+
run: echo GOOGLE_CLOUD_PROJECT_NUMBER=${{ secrets.GOOGLE_CLOUD_PROJECT_NUMBER }} >> ./local.properties
94+
95+
- name: Setup Kado API Key
96+
run: echo KADO_API_KEY=\"${{ secrets.KADO_API_KEY }}\" >> ./local.properties
97+
98+
- name: Setup Mixpanel API Key
99+
run: echo MIXPANEL_API_KEY=\"${{ secrets.FLIPCHAT_MIXPANEL_API_KEY }}\" >> ./local.properties
100+
101+
- name: Run Code tests
102+
run: bundle exec fastlane android fc_tests

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
source "https://rubygems.org"
22

33
gem "fastlane"
4+
5+
plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
6+
eval_gemfile(plugins_path) if File.exist?(plugins_path)

Gemfile.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ GEM
105105
xcodeproj (>= 1.13.0, < 2.0.0)
106106
xcpretty (~> 0.3.0)
107107
xcpretty-travis-formatter (>= 0.0.3)
108+
fastlane-plugin-bundletool (1.0.12)
108109
gh_inspector (1.1.3)
109110
google-apis-androidpublisher_v3 (0.37.0)
110111
google-apis-core (>= 0.11.0, < 2.a)
@@ -209,11 +210,13 @@ GEM
209210
xcpretty (~> 0.2, >= 0.0.7)
210211

211212
PLATFORMS
213+
arm64-darwin-24
212214
universal-darwin-21
213215
x86_64-linux
214216

215217
DEPENDENCIES
216218
fastlane
219+
fastlane-plugin-bundletool
217220

218221
BUNDLED WITH
219222
2.2.6

api/src/main/AndroidManifest.xml

Lines changed: 0 additions & 5 deletions
This file was deleted.

api/src/main/java/com/getcode/crypt/KeyAccount.kt

Lines changed: 0 additions & 25 deletions
This file was deleted.

api/src/main/java/com/getcode/db/ConversationDao.kt

Lines changed: 0 additions & 84 deletions
This file was deleted.

api/src/main/java/com/getcode/db/ConversationIntentMappingDao.kt

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)