Compare commits

...
This repository has been archived on 2021-06-24. You can view files and clone it, but cannot push or open issues or pull requests.

163 Commits

Author SHA1 Message Date
Sarah Jamie Lewis 12a6cb4610 Merge pull request 'Profile Manager user incokePopup for 0 profiles loaded error; fix lock image to icon in profileAddEdit' (#462) from dan/ui:oprofile-fix into master
the build was successful Details
Reviewed-on: #462
2020-12-17 16:57:30 -08:00
Dan Ballard 8e92a6ae42 Profile Manager user incokePopup for 0 profiles loaded error; fix lock image to icon in profileAddEdit
the build was successful Details
2020-12-17 14:14:28 -08:00
erinn 211e388a7d Merge pull request 'fix contacts sort up on send msg; profile list shows unread;' (#460) from dan/ui:unread into master
the build was successful Details
Reviewed-on: #460
2020-12-17 01:00:56 -08:00
Dan Ballard dc3872fc8a fix contacts sort up on send msg; profile list shows unread; approved
the build was successful Details
contacts sort on approved time
2020-12-17 00:09:28 -08:00
erinn bc55d472d1 Merge pull request 'Group Creation' (#459) from group_add into master
the build was successful Details
Reviewed-on: #459
2020-12-16 22:59:58 -08:00
Sarah Jamie Lewis 60af2930b5 Group Creation
the build was successful Details
2020-12-16 22:15:47 -08:00
Dan Ballard 1f98899f6b drone: android auto increment AndroidManifest versionCode for second android build (arm64) - fix: don't overwrite file while reading
the build was successful Details
2020-12-15 17:58:17 -08:00
Dan Ballard b586248bda drone: android auto increment AndroidManifest versionCode for second android build (arm64)
the build failed Details
2020-12-15 17:24:45 -08:00
Sarah Jamie Lewis f44cb450a5 Merge pull request 'build.gradle include' (#455) from android-packaging into master
the build was successful Details
Reviewed-on: #455
2020-12-15 13:27:10 -08:00
Sarah Jamie Lewis f354f5a81a Merge branch 'master' into android-packaging
the build was successful Details
2020-12-15 13:27:02 -08:00
Dan Ballard e6145d6e12 extend build.gradle to have seperate paths for arm7 and arm64 and perform the appropriate link/rename so androiddeployqt and therecipeqt can pick up as tho it was not a splits build
the build was successful Details
2020-12-15 00:06:46 -08:00
Sarah Jamie Lewis ee1a8dbed5 Merge pull request 'linux build can now access assets in various */share/cwtch/assets folders. linux installer installs multiple sized icons' (#456) from dan/ui:share into master
the build was successful Details
Reviewed-on: #456
2020-12-11 19:02:27 -08:00
Dan Ballard 4bb5a52b9f linux build can now access assets in various */share/cwtch/assets folders. linux installer installs multiple sized icons
the build was successful Details
2020-12-11 18:53:43 -08:00
Sarah Jamie Lewis bf27590afe build.gradle include
the build was successful Details
2020-12-11 15:47:37 -08:00
erinn 4cdb507e5e Merge pull request 'new spanish and italian translations' (#454) from dan/ui:esIt into master
the build was successful Details
Reviewed-on: #454
2020-12-11 15:33:02 -08:00
Dan Ballard 3dbcf07396 new spanish and italian translations
the build was successful Details
2020-12-11 14:15:23 -08:00
Dan Ballard afcceac8cf Merge pull request 'Bugfix: Copy Address Regression' (#452) from group-add into master
the build was successful Details
Reviewed-on: #452
2020-12-11 12:48:33 -08:00
Sarah Jamie Lewis 66c46714b7 Bugfix: Copy Address Regression
the build was successful Details
2020-12-11 12:04:27 -08:00
Dan Ballard 288e14ede2 drone: add android arm64-v6a step (fix?)
the build was successful Details
2020-12-10 13:02:02 -08:00
Dan Ballard 1962cf9df5 drone: add android arm64-v6a step (fix?)
the build failed Details
2020-12-10 12:47:25 -08:00
Dan Ballard ae8702cda2 drone: add android arm64-v6a step
the build failed Details
2020-12-10 12:35:18 -08:00
Dan Ballard 85dc5b5714 adding android libs for arm64-v8a 2020-12-10 12:31:54 -08:00
Dan Ballard 4932c728ec drone: android upload sign (strip newline/spaces)
the build was successful Details
2020-12-09 17:38:47 -08:00
Dan Ballard 0f15141f73 drone: android upload sign (typo)
the build failed Details
2020-12-09 17:31:18 -08:00
Dan Ballard db0e8a2395 drone: android upload sign (typo)
the build failed Details
2020-12-09 17:26:59 -08:00
Dan Ballard be1959b60c drone: android upload sign
the build failed Details
2020-12-09 17:20:49 -08:00
Sarah Jamie Lewis dfb12a2ab0 Merge pull request 'only show settings icon in history warning for default state' (#449) from assetry into master
the build was successful Details
Reviewed-on: #449
2020-12-09 14:11:14 -08:00
erinn 17c946de6d only show settings icon in history warning for default state
the build was successful Details
2020-12-09 14:09:46 -08:00
Sarah Jamie Lewis 9958bb605b Merge pull request 'fix acks, fix lists and bulletin for groups' (#448) from assetry into master
the build was successful Details
Reviewed-on: #448
2020-12-08 23:06:14 -08:00
Sarah Jamie Lewis 826c8b3a1d Merge branch 'master' into assetry
the build was successful Details
2020-12-08 23:06:02 -08:00
erinn bb84e8f46f fix acks, fix lists and bulletin for groups
the build was successful Details
2020-12-08 23:03:22 -08:00
Sarah Jamie Lewis f168f6aee9 Merge pull request 'add missing assets' (#447) from assetry into master
the build was successful Details
Reviewed-on: #447
2020-12-08 20:36:19 -08:00
erinn bc33356ca4 add missing assets
the build was successful Details
2020-12-08 20:21:12 -08:00
Sarah Jamie Lewis dfdce13e46 Merge pull request 'remove debug info from chatoverlay' (#446) from historywarningfix into master
the build was successful Details
Reviewed-on: #446
2020-12-08 18:16:27 -08:00
erinn fa430b7d7c remove debug info from chatoverlay
the build was successful Details
2020-12-08 17:33:45 -08:00
Sarah Jamie Lewis 4d927c133d Merge pull request 'history warning, overlay model fixes, new zoom system beginnings' (#445) from historywarning into master
the build was successful Details
Reviewed-on: #445
2020-12-08 17:13:17 -08:00
erinn 0663488d6d nits
the build was successful Details
2020-12-08 16:58:07 -08:00
erinn 6263dbf1fa Merge branch 'master' of git.openprivacy.ca:cwtch.im/ui into historywarning
the build was successful Details
2020-12-08 16:49:12 -08:00
erinn 1a556d05ce history warning and overlay model fixes
the build was successful Details
2020-12-08 16:37:08 -08:00
erinn 49bee4deb1 translations and new assets for history warning 2020-12-08 16:36:41 -08:00
erinn 240eb56ebe Merge pull request 'use log/privacy filter' (#444) from dan/ui:logPF into master
the build failed Details
Reviewed-on: #444
2020-12-07 16:15:26 -08:00
Dan Ballard 79052038e6 use log/privacy filter
the build was successful Details
2020-12-07 16:02:58 -08:00
erinn e5fce8634e Merge pull request 'Save state of root and profile panes open, and selected profile and conversation; jump to those when reloading' (#443) from dan/ui:stateful into master
the build failed Details
Reviewed-on: #443
2020-12-07 15:24:33 -08:00
erinn 09079dd224 Merge branch 'master' into stateful
the build was successful Details
2020-12-07 15:24:21 -08:00
Dan Ballard b920d3ab8b Save state of root and profile panes open, and selected profile and
the build was successful Details
conversation; jump to those when reloading
2020-12-07 15:18:19 -08:00
erinn 8b6e8d2e98 Merge branch 'master' of git.openprivacy.ca:cwtch.im/ui into historywarning 2020-12-03 16:26:34 -08:00
erinn 473e0a02d0 history warning and beginnings of new zoom system and listoverlay fixes 2020-12-03 16:24:40 -08:00
Dan Ballard b837757617 Merge pull request 'Add Group now Works (with TofuBundle)' (#442) from group-add into master
the build was successful Details
Reviewed-on: #442
2020-12-03 15:15:31 -08:00
Sarah Jamie Lewis 6292b5a1b9 Add Group now Works (with TofuBundle)
the build was successful Details
2020-12-03 15:02:06 -08:00
Dan Ballard cfe0105992 Merge pull request 'fix resizing smaller' (#441) from resizefix into master
the build was successful Details
Reviewed-on: #441
2020-12-02 18:16:19 -08:00
erinn bbedeb81c7 fix resizing smaller
the build was successful Details
2020-12-02 18:10:52 -08:00
erinn 3687ead49f Merge pull request 'responsize size fixes' (#438) from dan/ui:responsive into master
the build was successful Details
Reviewed-on: #438
2020-12-02 15:12:02 -08:00
erinn c3deeaa227 Merge branch 'master' into responsive
the build was successful Details
2020-12-02 15:11:47 -08:00
erinn 96aaf1f0e9 Merge pull request 'fix profile badges to use icons; fix myprofile not re embiggening on single pane' (#439) from dan/ui:badgeIcons into master
the build failed Details
Reviewed-on: #439
2020-12-02 15:11:08 -08:00
erinn 79a8bfb0cf Merge branch 'master' into badgeIcons
the build was successful Details
2020-12-02 15:10:53 -08:00
Dan Ballard 23eece4424 fix profile badges to use icons; fix myprofile not re embiggening on single pane
the build was successful Details
2020-12-02 15:08:50 -08:00
Sarah Jamie Lewis 0de8bd19bb Merge pull request 'fix makefile' (#437) from dan/ui:makefile into master
the build was successful Details
Reviewed-on: #437
2020-12-02 13:38:08 -08:00
Sarah Jamie Lewis e9b98f2aea Merge branch 'master' into makefile
the build was successful Details
2020-12-02 13:37:56 -08:00
Dan Ballard 12bed09d4e responsize size fixes
the build was successful Details
2020-12-01 17:13:42 -08:00
Dan Ballard 8e6f5e813a fix makefile
the build was successful Details
2020-12-01 16:02:39 -08:00
Sarah Jamie Lewis 4b081a0db6 Merge pull request 'display tor version on settings pane' (#436) from dan/ui:torVer into master
the build was successful Details
Reviewed-on: #436
2020-12-01 14:39:06 -08:00
Sarah Jamie Lewis a942bfbba1 Merge branch 'master' into torVer
the build was successful Details
2020-12-01 14:33:20 -08:00
Dan Ballard 2035e44cfd display tor version on settings pane
the build was successful Details
2020-12-01 13:12:18 -08:00
Sarah Jamie Lewis 07cbb1054b Merge pull request 'upgrade packaged tors to 0.4.4.6' (#435) from dan/ui:torUp into master
the build was successful Details
Reviewed-on: #435
2020-12-01 10:41:57 -08:00
Dan Ballard 0e965d630a upgrade packaged tors to 0.4.4.6
the build was successful Details
2020-11-30 18:32:32 -08:00
Dan Ballard d4d88ff541 drone nsis: sha256 installer
the build was successful Details
2020-11-28 10:43:40 -08:00
Dan Ballard d0f90a9b7f drone nsis: .nsi needs to be in deploy dir
the build was successful Details
2020-11-28 10:29:39 -08:00
Dan Ballard 3cdb2b2455 drone nsis: change windows step to leave a windows dir
the build failed Details
2020-11-28 10:14:13 -08:00
Dan Ballard f02083e0d6 Merge branch 'master' of git.openprivacy.ca:cwtch.im/ui
the build failed Details
2020-11-27 18:49:06 -08:00
Dan Ballard c62891b8d9 drone package windows makensis param error 2020-11-27 18:46:33 -08:00
erinn 04aae4d093 Merge pull request 'update nsis script to make installed start menu link use icon' (#434) from nsi into master
the build failed Details
Reviewed-on: #434
2020-11-27 18:43:56 -08:00
erinn 9cc81b1f29 Merge branch 'master' into nsi
the build was successful Details
2020-11-27 18:43:42 -08:00
Dan Ballard 93dbc6d270 attempt to add nsis win installer generation to drone
the build failed Details
2020-11-27 18:34:43 -08:00
Dan Ballard 8b004543ed update nsis script to make installed start menu link use icon
the build was successful Details
2020-11-27 18:20:19 -08:00
erinn d4e5546079 Merge pull request 'nsis script to make windows installer' (#432) from nsi into master
the build was successful Details
Reviewed-on: #432
2020-11-27 17:55:30 -08:00
erinn ba7bb704cd Merge branch 'master' into nsi
the build was successful Details
2020-11-27 17:55:06 -08:00
Dan Ballard 752e21f89e fixed directory flatening issue
the build was successful Details
2020-11-27 17:36:28 -08:00
erinn 7aa7f67fd3 Merge pull request 'Fixes: #410' (#430) from user-feedback-hover into master
the build was successful Details
Reviewed-on: #430
2020-11-27 14:44:25 -08:00
erinn 6e6045d911 Merge branch 'master' into user-feedback-hover
the build was successful Details
2020-11-27 14:44:12 -08:00
Sarah Jamie Lewis 16ee1635f5 Fixes: #410
the build was successful Details
2020-11-27 14:42:13 -08:00
Dan Ballard 9aa4f6d75d nsi to install cwtch, plus scripts and assets to generate it
the build was successful Details
2020-11-27 13:53:34 -08:00
erinn 38923ef814 Merge pull request 'Support multiline on Android' (#426) from user-feedback-elide into master
the build was successful Details
Reviewed-on: #426
2020-11-27 13:38:54 -08:00
erinn 24a7abacd1 Merge branch 'master' into user-feedback-elide
the build was successful Details
2020-11-27 13:38:46 -08:00
Sarah Jamie Lewis eef74ae8b3 Update 'LICENSE'
the build was successful Details
2020-11-26 23:46:56 -08:00
Sarah Jamie Lewis 05cd440036 Support multiline on Android
the build was successful Details
2020-11-26 17:39:55 -08:00
Sarah Jamie Lewis c1bc5a7806 Merge pull request 'input box fixes' (#425) from inputboxfixes into master
Reviewed-on: #425
2020-11-26 17:03:03 -08:00
Sarah Jamie Lewis d25aadbb2b Merge branch 'master' into inputboxfixes
the build was successful Details
2020-11-26 17:02:54 -08:00
erinn 7485837669 update opaque, fix inputbox enterkey on android
the build was successful Details
2020-11-26 16:58:45 -08:00
erinn f8d3277a6f feedback fixes to input box
the build was successful Details
2020-11-26 16:30:54 -08:00
erinn 0634d34bf2 inputbox fixes: remove twemoji 2020-11-26 15:57:17 -08:00
Dan Ballard 1eec8dbfe0 Merge pull request 'Display name now elides in message' (#423) from user-feedback-elide into master
the build was successful Details
Reviewed-on: #423
2020-11-26 15:44:37 -08:00
Sarah Jamie Lewis dd5995628a Merge branch 'master' into user-feedback-elide
the build was successful Details
2020-11-26 15:05:46 -08:00
Dan Ballard d5e81e9ae3 Merge pull request 'Various Fixes from User Feedback' (#422) from emoji into master
the build was successful Details
Reviewed-on: #422
2020-11-26 15:05:27 -08:00
Sarah Jamie Lewis 4e0ecd72c4 Message display name now elides
the build was successful Details
Fixes: #401
2020-11-26 14:51:33 -08:00
Sarah Jamie Lewis 6b8a8b8da1 Passworded accounts now require a password
the build was successful Details
Fixes #407
Fixes #256
2020-11-26 14:34:34 -08:00
Sarah Jamie Lewis 1d86c3d326 Updating Display name reflects in Messages
Fixes: #416
2020-11-26 14:34:34 -08:00
Sarah Jamie Lewis ef58f002b3 Peer Settings button goes to Message Pane if already in Settings
Fixes #399
2020-11-26 14:34:34 -08:00
Sarah Jamie Lewis 1eb391ecc1 Merge pull request 'redesigned emoji drawer' (#421) from emodrawer2 into master
the build was successful Details
Reviewed-on: #421
2020-11-26 14:25:23 -08:00
Sarah Jamie Lewis e74d599d95 Merge branch 'master' into emodrawer2
the build was successful Details
2020-11-26 14:23:55 -08:00
erinn 1515fb7998 update opaque, add clarification comment
the build was successful Details
2020-11-26 14:14:45 -08:00
Dan Ballard 78400a17c6 drone android: android and add ANDROID_MODULES_INCLUDE and docker to 2020.01
the build was successful Details
2020-11-25 10:16:21 -08:00
Dan Ballard 2f6395697e drone android: stop qtsetup generate android and add ANDROID_MODULES_INCLUDE
the build failed Details
2020-11-25 10:05:41 -08:00
Dan Ballard e493a18f3f Merge branch 'master' of git.openprivacy.ca:cwtch.im/ui
the build failed Details
2020-11-25 10:00:31 -08:00
Dan Ballard 44e0f9ebab drone android: stop qtsetup generate android and add ANDROID_MODULES_INCLUDE 2020-11-25 10:00:19 -08:00
Sarah Jamie Lewis de1b3319b1 Merge pull request 'updated splash screen and app icon for android' (#393) from dan/ui:androidSplash into master
the build failed Details
Reviewed-on: #393
2020-11-25 09:56:06 -08:00
Dan Ballard 4f4df63e51 updated splash screen and app icon for android
the build was successful Details
2020-11-25 09:46:33 -08:00
erinn bbea51b561 redesigned emoji drawer
the build was successful Details
2020-11-24 22:20:18 -08:00
Dan Ballard 3d509c6810 Merge pull request 'Android Notification - First Cut' (#391) from android_tests into master
the build failed Details
Reviewed-on: #391
2020-11-24 17:31:00 -08:00
Sarah Jamie Lewis 76df3c286d Android Notification - First Cut
the build was successful Details
This commit has the basics of notifications on Android working again, updated to the
latest Android SDK way of doing things (with channel IDs and grouping).

Android users will get notified when the app is open for new Peer Messages across all profiles.

In the future, this should be extended to add notifications for new peer invites, actual have actionable actions (accept/block)
and maybe even work when the app isn't open...
2020-11-24 16:49:05 -08:00
Dan Ballard de56f8be15 Merge pull request 'fix messages pane' (#390) from tabbarfix into master
the build failed Details
Reviewed-on: #390
2020-11-24 15:41:25 -08:00
erinn 9e4917ac5b fix messages pane
the build was successful Details
2020-11-24 14:48:29 -08:00
Dan Ballard f402f515da Merge pull request 'add tabbar' (#389) from tabbar into master
the build failed Details
Reviewed-on: #389
2020-11-23 16:39:09 -08:00
erinn a0081c9d4e fix indents
the build was successful Details
2020-11-23 16:36:50 -08:00
erinn 94381cb076 adding to new opaque tabbar
the build was successful Details
2020-11-23 16:33:14 -08:00
erinn a0bbfa7721 add tabbar
the build was successful Details
2020-11-23 15:56:52 -08:00
erinn 4179e2798b Merge pull request 'gcd.firstTime + SettingsList scrolls' (#388) from android_tests into master
the build failed Details
Reviewed-on: #388
2020-11-23 13:24:20 -08:00
Sarah Jamie Lewis 8340b7aed3 Format gcd vars to spec
the build was successful Details
2020-11-23 13:15:42 -08:00
Sarah Jamie Lewis e74a0e8dc2 Formatting
the build was successful Details
2020-11-23 13:13:09 -08:00
Sarah Jamie Lewis 228a9b6ebd gcd.firstTime + SettingsList scrolls
the build was successful Details
2020-11-23 13:12:00 -08:00
Sarah Jamie Lewis b4b10ca75f Merge pull request 'gcd.torStatus; now peers get networkStatus, save as local attr, and pass to profilerow/myprofile to show online' (#387) from dan/ui:profileStatus into master
the build failed Details
Reviewed-on: #387
2020-11-23 12:55:32 -08:00
Dan Ballard 46ed17eec2 gcd.torStatus; now peers get networkStatus, save as local attr, and pass to profilerow/myprofile to show online
the build was successful Details
2020-11-20 16:46:12 -08:00
erinn a54aa8e0af Merge pull request 'Android Deep Dive Part 1 of Many' (#378) from android_tests into master
Reviewed-on: #378
2020-11-20 15:24:38 -08:00
Sarah Jamie Lewis a5c96964e8 Android Bugfixxing Part 1
the build was successful Details
- Icons Now Show
- Zoom Slider doesn't Crash (2 causes)
 - One desktop/android crash caused by Ellipsis Label (now replaced)
 - One android crash caused by ButtonTextField (fixed)
- Removed some emoji handling that was unused.
2020-11-20 15:21:02 -08:00
Sarah Jamie Lewis cb932d3ca3 All Image Changes 2020-11-20 12:33:15 -08:00
Sarah Jamie Lewis 72457d138b Merge pull request 'gifSplash' (#383) from dan/ui:gifSplash into master
the build failed Details
Reviewed-on: #383
2020-11-20 12:29:39 -08:00
Dan Ballard 454d10e28c splash pane now has new cwtch font logo and animated knot
the build was successful Details
2020-11-20 12:23:44 -08:00
Dan Ballard aadcb0d7c6 splash pane now has new cwtch font logo and animated knot 2020-11-20 12:08:06 -08:00
Sarah Jamie Lewis 4805507014 Merge pull request 'change file logging behaviour to use cwtch dir' (#382) from dan/ui:winLog into master
the build failed Details
Reviewed-on: #382
2020-11-20 10:59:21 -08:00
Sarah Jamie Lewis eb33e46e3d Merge branch 'master' into winLog
the build was successful Details
2020-11-20 10:59:04 -08:00
Sarah Jamie Lewis 45acecf9d7 Merge pull request 'updating app icon and profile manager tweeks' (#379) from dan/ui:iconTweeks into master
the build failed Details
Reviewed-on: #379
2020-11-20 10:58:55 -08:00
Dan Ballard 483d765146 change file logging behaviour to use cwtch dir
the build was successful Details
2020-11-19 12:27:56 -08:00
Dan Ballard 36a4e13184 updating app icon and profile manager tweeks
the build was successful Details
2020-11-19 11:49:20 -08:00
Dan Ballard 5cb284c99c updating app icon and profile manager tweeks
the build was successful Details
2020-11-17 17:47:31 -08:00
Sarah Jamie Lewis 7f011663d7 Merge pull request 'splash screen is back, just covering ACN/Cwtch app initialization, now with sweet new fade in transition' (#376) from dan/ui:splashFade into master
the build was successful Details
Reviewed-on: #376

Tested on Android: #377
2020-11-17 12:49:26 -08:00
Dan Ballard 918e44fdb6 splash screen is back, just covering ACN/Cwtch app initialization, now with sweet new fade in transition
the build was successful Details
2020-11-17 12:10:27 -08:00
erinn 1c463f235c Merge pull request 'search contact list' (#366) from dan/ui:contactSearch into master
the build was successful Details
Reviewed-on: #366
2020-11-13 16:50:04 -08:00
Dan Ballard 9701380e3c search contact list
the build was successful Details
2020-11-13 15:11:32 -08:00
Sarah Jamie Lewis 01428b1371 Merge pull request 'allow cwtch to log to file' (#367) from dan/ui:logFlag into master
the build was successful Details
Reviewed-on: #367
2020-11-13 12:21:45 -08:00
Dan Ballard 568b979698 allow cwtch to log to file
the build was successful Details
2020-11-13 12:13:53 -08:00
Sarah Jamie Lewis c11e541f4e Merge pull request 'ran quality.sh' (#363) from dan/ui:qual into master
the build was successful Details
Reviewed-on: #363
2020-11-12 16:12:37 -08:00
Dan Ballard 162ee96a1f ran quality.sh
the build was successful Details
2020-11-12 16:08:27 -08:00
erinn 0be9447a07 Merge pull request 'add peer / group pane' (#361) from dan/ui:addPeer into master
the build was successful Details
Reviewed-on: #361
2020-11-12 15:46:54 -08:00
Dan Ballard 0e5d78cbb9 add peer / group pane
the build was successful Details
2020-11-12 15:45:53 -08:00
erinn 98d58ebd62 Merge pull request 'fix contactlist not shrinking in full mode' (#360) from fixContactList into master
the build was successful Details
Reviewed-on: #360
2020-11-04 14:57:12 -08:00
Dan Ballard 5ca904b675 fix contactlist not shrinking in full mode
the build was successful Details
2020-11-04 14:55:52 -08:00
erinn d144f0d8b0 Merge pull request 'Self-Hosted Servers Experiment' (#359) from server_launch into master
the build was successful Details
Reviewed-on: #359
2020-11-04 14:14:52 -08:00
Sarah Jamie Lewis a276d5732a Self-Hosted Servers Experiment
the build was successful Details
2020-11-04 14:08:20 -08:00
erinn fd45f72a09 Merge pull request 'fix p2p get name sync issue; overlay offline contact portraits' (#358) from dan/ui:nameSync into master
the build was successful Details
Reviewed-on: #358
2020-11-04 13:53:27 -08:00
Dan Ballard 843790c27b fix p2p get name sync issue; overlay offline contact portraits
the build was successful Details
2020-11-04 13:42:49 -08:00
Sarah Jamie Lewis 9721999e9b Merge pull request 'add name on profile create' (#357) from dan/ui:createProfileName into master
the build was successful Details
Reviewed-on: #357
2020-11-03 12:48:18 -08:00
Dan Ballard 6117486808 add name on profile create
the build was successful Details
2020-11-03 12:36:38 -08:00
erinn b80ecc0a7d Merge pull request 'Gate Group Functionality' (#356) from serverpane into master
the build was successful Details
Reviewed-on: #356
2020-10-29 17:30:16 -07:00
erinn 2433c667d8 Merge branch 'master' into serverpane
the build was successful Details
2020-10-29 17:30:07 -07:00
Sarah Jamie Lewis 143dd9693c Update Cwtch Release
the build was successful Details
2020-10-29 16:20:08 -07:00
Sarah Jamie Lewis 91c182b880 Gate Group Functionality
the build was successful Details
2020-10-29 16:12:04 -07:00
Sarah Jamie Lewis 48d375f007 Merge pull request 'turning off unicode emoji (for now...?)' (#355) from TheUnicodeDefeatium into master
the build was successful Details
Reviewed-on: #355
2020-10-29 15:41:36 -07:00
erinn 223936cda8 turning off unicode emoji (for now...?)
the build was successful Details
2020-10-29 15:34:41 -07:00
Dan Ballard f2a4c61610 fix assetPath on windows (#354)
the build was successful Details
Merge branch 'master' into winassetPath

fix assetDir path on windows

Co-authored-by: Sarah Jamie Lewis <sarah@openprivacy.ca>
Co-authored-by: Dan Ballard <dan@mindstab.net>
Reviewed-on: #354
2020-10-28 16:58:15 -07:00
Dan Ballard a247fd91c0 Merge pull request 'Experimental Gating + Server List Sketch' (#353) from serverpane into master
the build was successful Details
Reviewed-on: #353
2020-10-28 12:38:12 -07:00
Sarah Jamie Lewis 1b0d69dfb2 Experimental Gating + Server List Sketch
the build was successful Details
2020-10-28 12:36:55 -07:00
Dan Ballard fec49cf1fd Merge pull request 'Experimental Gating + Server List Sketch' (#351) from serverpane into master
the build was successful Details
Reviewed-on: #351
2020-10-28 12:35:55 -07:00
Sarah Jamie Lewis bfb431cbaf Experimental Gating + Server List Sketch
the build was successful Details
2020-10-28 12:29:07 -07:00
Sarah Jamie Lewis ada9dc7bb9 Merge pull request 'add flag to force windows to log to console' (#352) from consoleFlag into master
the build was successful Details
Reviewed-on: #352
2020-10-28 12:20:33 -07:00
4167 changed files with 262030 additions and 227660 deletions

View File

@ -33,9 +33,10 @@ pipeline:
- tar -czf $FILENAME cwtch
- sha256sum $FILENAME > $FILENAME.sha256
- rm -r cwtch
build-android:
build-android-arm-v7a:
mem_limit: 3G
image: therecipe/qt:android
secrets: [upload_jks_file,upload_jks_pass]
when:
repo: cwtch.im/ui
branch: master
@ -52,18 +53,65 @@ pipeline:
- apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates curl git
- rm -r vendor/
- make clean
- echo "cwtch-upload" > android/jks_alias
- echo $UPLOAD_JKS_PASS > android/jks_pass
- echo $UPLOAD_JKS_FILE | tr -d '\n ' > android/ui.jks.b64
- base64 --decode android/ui.jks.b64 > android/ui.jks
- export GOARCH=arm
- go mod download
- export VERSION=`git describe --tags`
- export BUILDDATE=`date +%G-%m-%d-%H-%M`
- go mod vendor
- qtsetup generate android
- qtsetup generate android
- mv assets android/
- qtdeploy -ldflags "-X main.buildVer=$VERSION -X main.buildDate=$BUILDDATE" build android
- ANDROID_MODULES_INCLUDE="Core,Gui,Svg,QuickWidgets,Xml" qtdeploy -ldflags "-X main.buildVer=$VERSION -X main.buildDate=$BUILDDATE" build android
- mv android/assets assets
- cd deploy
- export FILENAME=cwtch-android-$BUILDDATE.apk
- cp android/build-debug.apk $FILENAME
- export FILENAME=cwtch-android-arm-v7a-$BUILDDATE.apk
- cp android/build-release-signed.apk $FILENAME
- sha256sum $FILENAME > $FILENAME.sha256
- rm -r android
build-android-arm64-v8a:
mem_limit: 3G
image: therecipe/qt:android
secrets: [upload_jks_file,upload_jks_pass]
when:
repo: cwtch.im/ui
branch: master
event: push
environment:
- QT_DIR=/opt/Qt
- QT_DOCKER='true'
- QT_API=5.13.0
- ANDROID_NDK_DIR=/home/user/android-ndk-r18b
- ANDROID_SDK_DIR=/home/user/android-sdk-linux
- GO111MODULE=on
commands:
- export PATH=$PATH:/home/user/work/bin:/media/sf_GOPATH1/bin
- apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates curl git
- rm -r vendor/
- make clean
- echo "cwtch-upload" > android/jks_alias
- echo $UPLOAD_JKS_PASS > android/jks_pass
- echo $UPLOAD_JKS_FILE | tr -d '\n ' > android/ui.jks.b64
- base64 --decode android/ui.jks.b64 > android/ui.jks
- export GOARCH=arm64
- perl -pe 's/versionCode="(\d+)"/"versionCode=\"" .($1+1)."\""/eg' android/AndroidManifest.xml > android/AndroidManifest.xml.inc
- rm android/AndroidManifest.xml
- mv android/AndroidManifest.xml.inc android/AndroidManifest.xml
- go mod download
- export VERSION=`git describe --tags`
- export BUILDDATE=`date +%G-%m-%d-%H-%M`
- go mod vendor
- qtsetup generate android
- mv assets android/
- ANDROID_MODULES_INCLUDE="Core,Gui,Svg,QuickWidgets,Xml" qtdeploy -ldflags "-X main.buildVer=$VERSION -X main.buildDate=$BUILDDATE" build android
- mv android/assets assets
- cd deploy
- export FILENAME=cwtch-android-arm64-v8a-$BUILDDATE.apk
- cp android/build-release-signed.apk $FILENAME
- sha256sum $FILENAME > $FILENAME.sha256
- rm -r android
build-windows:
mem_limit: 3G
image: therecipe/qt:windows_64_static
@ -97,7 +145,25 @@ pipeline:
- export FILENAME=cwtch-windows-$BUILDDATE.zip
- zip -r $FILENAME cwtch
- sha256sum $FILENAME > $FILENAME.sha256
- rm -r cwtch
- mv cwtch windows
package-windows:
mem_limit: 3G
image: hp41/nsis:latest
when:
repo: cwtch.im/ui
branch: [ master, windows_build ]
event: push
environment:
commands:
- cp nsis/cwtch-installer.nsi deploy/
- cd deploy
- makensis -V3 cwtch-installer.nsi
- export BUILDDATE=`date +%G-%m-%d-%H-%M`
- export FILENAME=cwtch-installer-$BUILDDATE.exe
- mv cwtch-installer.exe $FILENAME
- sha256sum $FILENAME > $FILENAME.sha256
- rm cwtch-installer.nsi
- rm -r windows
deploy-buildfiles:
image: pivotaldata/concourse-ssh
secrets: [buildfiles_key]

89
ANDROID_DEBUGGING.md Normal file
View File

@ -0,0 +1,89 @@
# Notes on Android Debugging
If you are reading this you are probably interested in developing Cwtch for Android! Awesome.
The Cwtch UI app is intended to be a single codebase that runs on multiple platforms. This
complicates the build process in favour of simplifying the code (so goes the theory).
We make use of https://github.com/therecipe/qt/ for deploying Go/Qt code to Android. Before you venture into the weeds
of this README please take a look at the [Installation](https://github.com/therecipe/qt/wiki/Installation)
and [Setup instructions](https://github.com/therecipe/qt/wiki/Deploying-Linux-to-Android) in therecipe/qt.
## Building
Check out and follow the instructions at https://github.com/therecipe/qt/wiki/Deploying-Linux-to-Android as they are sufficient,
below you will find high-level notes regarding the process.
You need to run `qtsetup --qt_version=<vesion> full android` for the non-docker setup. You will need to do this
for every major version change of therecipe dependencies.
You will also need the Android 28 SDK (Pie), the NDK, SDK build tools and platform tools, gradle and **JDK 8**
JAVA_JDK=/path/to/jre8
ANDROID_NDK_DIR=/path/to/ndk
Once all that setup is done you should be able to run:
ANDROID_MODULES_INCLUDE="Core,Gui,Svg,QuickWidgets,Xml" qtdeploy build android
2-4 minutes later an android apk will pop out in `./deploy/android/build-debug.apk`.
### Build Setup Issues we have seen
* `Could not determine java version from <blah>` - this is thrown by gradle inside the `androiddeployqt` process when the
Java version is *not* JRE8. Ensure that JAVA_HOME is pointed to the correct java installation.
* ` readelf <blah> "is not an ordinary file"` - this isn't actually an error that will stop the build, but sometimes
because of the very long debug log output you will come across it when trying to find the *actual* error (which is
probably a Java version issue). It can be safely ignored.
* `could not find QAndroid...` / `CPP build errors` - you will need to run `qtsetup` full android` for the Qt version
you are using.
* Example: androidextras_android.cpp:9:10: fatal error: 'QAndroidActivityResultReceiver' file not found
## Testing on a Real Device
Consult the Android documentation on setting up your device for development.
You will need an android sdk, setup your device for USB Debugging and then with `adb` you can do:
adb install -r ./deploy/android/build-debug.apk
To get the logs you can run
adb logcat
Android Studio provides a nice logcat interface for quickly filtering log files that can be very useful when trying to
debug complex behavior, but command line tools like `grep` and the built-in [logcat filtering](https://developer.android.com/studio/command-line/logcat)
should also suffice.
*Important*: Cwtch UI technically runs *3* different applications: Cwtch Frontend (application client),
Cwtch Backend (application server) and Tor. When filtering logcat you should be aware that some of your messages might
be getting logged by a different process.
(*Ctrl-F Helper: "Why are log messages missing"*)
# Bundled Libraries
There seems to be a bug in Qt (https://bugreports.qt.io/browse/QTBUG-84371) that prevents the use of
`AndroidExtras` in `ANDROID_MODULES_INCLUDE` so we bundle it in `android/libQt5AndroidExtras.so` along with
`libtor` for Tor support.
## Non-SDK Interfaces
e.g. java.lang.NoSuchFieldException: No field mPivotX in class Landroid/graphics/drawable/RotateDrawable$RotateState;
* https://bugreports.qt.io/browse/QTBUG-71590
## Plugins
Theoretically speaking it should be possible to use `ANDROID_EXTRA_PLUGINS` to include support for e.g.
SVG images on Android. However, we have been unable to make it work. If you would like to try, the following
issues might be helpful:
* https://bugreports.qt.io/browse/QTBUG-60022
## Notifications
- Android 8 (API Level 26) forces you to call setChannelId()
- Android 9 "Do Not Disturb" mode also hides all notifications
- Setting up notification channels only seems possible *once* per install. any changes you need to make
require that the app is reinstalled, or the actual channel deleted and changed.

View File

@ -1,4 +1,4 @@
All code in this repositorym, unless otherwise indicated, is distributed under the following license:
All code in this repository, unless otherwise indicated, is distributed under the following license:
Copyright 2019 Open Privacy Research Society

View File

@ -1,6 +1,11 @@
.PHONY: all clean linux windows android
DEFAULT_GOAL: linux
SHELL := env QT_BUILD_VERSION=$(QT_BUILD_VERSION) $(SHELL)
QT_BUILD_VERSION ?= "5.13.4"
all: clean linux windows android
default: linux
clean:
rm -r vendor || true
@ -8,41 +13,21 @@ clean:
find -iname "rcc*" | xargs rm
linux:
$(MAKE) linux_build || $(MAKE) linux_clean
windows:
$(MAKE) windows_build || $(MAKE) windows_clean
android:
$(MAKE) android_build || $(MAKE) android_clean
linux_build:
date
qtdeploy -qt_version "5.13.0" build linux 2>&1 | tee qtdeploy.log | pv
qtdeploy -qt_version $(QT_BUILD_VERSION) build linux 2>&1 | tee qtdeploy.log | pv
date
cp -R assets deploy/linux/
$(MAKE) linux_clean
linux_clean:
#ntd
windows_build:
windows:
date
qtdeploy -qt_version "5.13.0" build windows 2>&1 | tee qtdeploy.log | pv
qtdeploy -qt_version $(QT_BUILD_VERSION) build windows 2>&1 | tee qtdeploy.log | pv
date
cp -R assets deploy/windows/
$(MAKE) linux_clean
windows_clean:
#ntd
android_build:
mv assets android/
android:
cp -R assets android/
date
qtdeploy -docker build android 2>&1 | tee qtdeploy.log | pv
## TODO have this also include AndroidExtras (see ANDROID_DEBUGGING) for full notes.
env ANDROID_MODULES_INCLUDE="Core,Gui,Svg,QuickWidgets,Xml" qtdeploy -debug -qt_version $(QT_BUILD_VERSION) build android 2>&1 | tee qtdeploy.log | pv
date
$(MAKE) android_clean
android_clean:
mv android/assets assets

10
QML_DEBUG_NOTES.md Normal file
View File

@ -0,0 +1,10 @@
# Settings List / Flickable
Content not scrolling: Flickable does some reparenting behind the scenes and so
in the top level child of the Flickable you will need:
parent: root.contentItem
And in the flickable you will need to set the contentHeight:
contentHeight: <childId>.height + <padding>

View File

@ -1,9 +1,20 @@
<?xml version="1.0"?>
<manifest package="ca.openprivacy.cwtch.ui" xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.0" android:versionCode="1" android:installLocation="auto">
<application android:hardwareAccelerated="true" android:name="org.qtproject.qt5.android.bindings.QtApplication" android:label="cwtch" android:icon="@drawable/ic_launcher">
<manifest package="ca.openprivacy.cwtch.ui" xmlns:android="http://schemas.android.com/apk/res/android"
android:versionName="1.0"
android:versionCode="4"
android:installLocation="auto">
<application android:hardwareAccelerated="true"
android:name="org.qtproject.qt5.android.bindings.QtApplication"
android:label="cwtch"
android:icon="@drawable/knot">
<activity android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation"
android:name="ca.openprivacy.cwtch.ui.CwtchActivity"
android:label="cwtch" android:theme="@style/AppTheme" android:screenOrientation="unspecified" android:launchMode="singleTop" android:windowSoftInputMode="adjustResize">
android:label="cwtch"
android:theme="@style/AppTheme"
android:screenOrientation="unspecified"
android:launchMode="singleTop"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
@ -110,7 +121,7 @@
</application>
<uses-sdk android:minSdkVersion="21" /><!-- android:targetSdkVersion="26"/> -->
<uses-sdk android:minSdkVersion="23" android:targetSdkVersion="29"/> -->
<supports-screens android:largeScreens="true" android:normalScreens="true" android:anyDensity="true" android:smallScreens="true"/>
<uses-permission android:name="android.permission.INTERNET"/>

150
android/build.gradle Normal file
View File

@ -0,0 +1,150 @@
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.0'
}
}
repositories {
google()
jcenter()
}
apply plugin: 'com.android.application'
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
}
android {
/*******************************************************
* The following variables:
* - androidBuildToolsVersion,
* - androidCompileSdkVersion
* - qt5AndroidDir - holds the path to qt android files
* needed to build any Qt application
* on Android.
*
* are defined in gradle.properties file. This file is
* updated by QtCreator and androiddeployqt tools.
* Changing them manually might break the compilation!
*******************************************************/
compileSdkVersion androidCompileSdkVersion.toInteger()
buildToolsVersion '28.0.3'
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = [qt5AndroidDir + '/src', 'src', 'java']
aidl.srcDirs = [qt5AndroidDir + '/src', 'src', 'aidl']
res.srcDirs = [qt5AndroidDir + '/res', 'res']
resources.srcDirs = ['src']
renderscript.srcDirs = ['src']
assets.srcDirs = ['assets']
jniLibs.srcDirs = ['libs']
}
}
// kinda of cheaty, would prefer to use if (System.getEnv("GOARCH") == "arm64") {
// but it doesn't want to work in this context
if (qt5AndroidDir.contains("arm64")) {
splits {
// Configures multiple APKs based on ABI.
abi {
// Enables building multiple APKs per ABI.
enable true
// By default all ABIs are included, so use reset() and include to specify that we only
// want APKs for x86 and x86_64.
// Resets the list of ABIs that Gradle should create APKs for to none.
reset()
// Specifies a list of ABIs that Gradle should create APKs for.
// Note that because of the way that therecipe/qt bundles libraries
// only the specific architecture specified by GOARCH /GOARM will *actually*
// work so we currently have to do separate builds for each arch - this needs to be fixed.
include "arm64-v8a"
// Specifies that we do not want to also generate a universal APK that includes all ABIs.
// QT deploy has to be run twice to generate the libgo_base.so for each arch
universalApk false
}
}
task linkBuildDebugArm64(type: Exec) {
workingDir '../build/build/outputs/apk/debug/'
commandLine 'ln', '-sf', 'build-arm64-v8a-debug.apk', 'build-debug.apk'
}
task renameBuildReleaseArm64(type: Exec) {
workingDir '../build/build/outputs/apk/release/'
commandLine 'mv', 'build-arm64-v8a-release-unsigned.apk', 'build-release-unsigned.apk'
}
afterEvaluate {
assembleDebug.finalizedBy(linkBuildDebugArm64)
assembleRelease.finalizedBy(renameBuildReleaseArm64)
}
} else {
splits {
// Configures multiple APKs based on ABI.
abi {
// Enables building multiple APKs per ABI.
enable true
// By default all ABIs are included, so use reset() and include to specify that we only
// want APKs for x86 and x86_64.
// Resets the list of ABIs that Gradle should create APKs for to none.
reset()
// Specifies a list of ABIs that Gradle should create APKs for.
// Note that because of the way that therecipe/qt bundles libraries
// only the specific architecture specified by GOARCH /GOARM will *actually*
// work so we currently have to do separate builds for each arch - this needs to be fixed.
include "armeabi-v7a"
// Specifies that we do not want to also generate a universal APK that includes all ABIs.
// QT deploy has to be run twice to generate the libgo_base.so for each arch
universalApk false
}
}
task linkBuildDebugArm7(type: Exec) {
workingDir '../build/build/outputs/apk/debug/'
commandLine 'ln', '-sf', 'build-armeabi-v7a-debug.apk', 'build-debug.apk'
}
task renameBuildReleaseArm7(type: Exec) {
workingDir '../build/build/outputs/apk/release/'
commandLine 'mv', 'build-armeabi-v7a-release-unsigned.apk', 'build-release-unsigned.apk'
}
afterEvaluate {
assembleDebug.finalizedBy(linkBuildDebugArm7)
assembleRelease.finalizedBy(renameBuildReleaseArm7)
}
}
lintOptions {
abortOnError true
}
}

Binary file not shown.

BIN
android/libs/arm64-v8a/libtor.so Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

@ -2,11 +2,14 @@
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle" >
<solid android:color="#FFFFFFFF"/>
<solid android:color="#FFFDF3FC"/>
</shape>
</item>
<!-- It would be nice to find a way to use a transition and trigger it but I haven't yet -->
<item>
<bitmap android:src="@drawable/cwtch_logo"
android:gravity="center" />
<bitmap android:src="@drawable/splash_350"
android:gravity="center" />
</item>
</layer-list>

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme" parent="@android:style/Theme.DeviceDefault.Light.NoActionBar">
<style name="AppTheme" parent="@android:style/Theme.NoTitleBar.Fullscreen">
<item name="android:windowBackground">@drawable/splash</item>
</style>
</resources>

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="loading_tor">Loading tor...</string>
</resources>

View File

@ -23,20 +23,13 @@ import static android.app.Notification.CATEGORY_SERVICE;
public class CwtchActivity extends org.qtproject.qt5.android.bindings.QtActivity
{
private static NotificationManager m_notificationManager;
private static Notification.Builder m_builder;
private static Notification.Builder m_builderOngoing;
private static CwtchActivity m_instance;
private static int PRIORITY_MIN = -2; // From NotificationCompat
private static int PRIORITY_DEFAULT = 0; // From NotificationCompat
private static String NOTIFICATION_CHANNEL_ID = "cwtch_notification_channel";
private static int CONTENT_NOTIFICATION_ID = 2;
private static String CONTENT_NOTIFICATION_ID_NAME = "Notifications from Peers";
private static int ONGOING_NOTIFICATION_ID = 0;
private static String ONGOING_NOTIFICATION_ID_NAME = "ongoing";
private static int CONTENT_NOTIFICATION_ID = 1;
private static String CONTENT_NOTIFICATION_ID_NAME = "content";
public CwtchActivity() {
@ -57,66 +50,47 @@ public class CwtchActivity extends org.qtproject.qt5.android.bindings.QtActivity
}
}
public static void notify(String s)
public static void notify(String s, String o)
{
if (m_notificationManager == null) {
m_notificationManager = (NotificationManager)m_instance.getSystemService(Context.NOTIFICATION_SERVICE);
createNotificationChannel();
}
if (m_builder == null) {
m_builder = new Notification.Builder(m_instance);
m_builder.setSmallIcon(R.drawable.ic_launcher);
m_builder.setContentTitle("Cwtch");
m_builder.setPriority(PRIORITY_DEFAULT);
// Apparently thr android documentation is just wrong and we need to provide a setGroupSummary
// notification regardless of targetted support version...
Notification groupSummary =
new Notification.Builder(m_instance)
.setContentTitle("Cwtch")
.setContentText("New Message from Peer: " + o)
.setGroupSummary(true)
.setWhen(System.currentTimeMillis())
.setSmallIcon(R.drawable.ic_launcher)
.setGroup(NOTIFICATION_CHANNEL_ID)
.setChannelId(NOTIFICATION_CHANNEL_ID)
.build();
m_notificationManager.notify(1, groupSummary);
}
Notification.Builder m_builder = new Notification.Builder(m_instance)
.setSmallIcon(R.drawable.ic_launcher)
.setChannelId(NOTIFICATION_CHANNEL_ID)
.setGroup(NOTIFICATION_CHANNEL_ID)
.setWhen(System.currentTimeMillis())
.setAutoCancel(true)
.setContentTitle("New Message from Peer: " + o)
.setContentText("[redacted: Open Cwtch App to see the Message]");
m_notificationManager.notify(CONTENT_NOTIFICATION_ID++, m_builder.build());
m_builder.setContentText(s);
m_notificationManager.notify(CONTENT_NOTIFICATION_ID, m_builder.build());
}
public static void ongoingNotify(String s)
{
if (m_notificationManager == null) {
m_notificationManager = (NotificationManager)m_instance.getSystemService(Context.NOTIFICATION_SERVICE);
createNotificationChannel();
}
if (m_builderOngoing == null) {
m_builderOngoing = new Notification.Builder(m_instance);
m_builderOngoing.setSmallIcon(R.drawable.ic_launcher);
m_builderOngoing.setContentTitle("Cwtch");
m_builderOngoing.setPriority(PRIORITY_MIN);
m_builderOngoing.setWhen(0); // Don't show the time
m_builderOngoing.setOngoing(true);
if (SDK_INT >= 21) {
m_builderOngoing.setCategory(CATEGORY_SERVICE);
//m_builder.setVisibility(VISIBILITY_SECRET);
}
}
m_builderOngoing.setContentText(s);
m_notificationManager.notify(ONGOING_NOTIFICATION_ID, m_builderOngoing.build());
}
private static void createNotificationChannel() {
// Create the NotificationChannel, but only on API 26+ because
// the NotificationChannel class is new and not in the support library
if (SDK_INT >= 26) {
String description = "Cwtch Ongoing Notification Channel";
int importance = NotificationManager.IMPORTANCE_LOW;
NotificationChannel channel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, ONGOING_NOTIFICATION_ID_NAME, importance);
channel.setDescription(description);
// Register the channel with the system; you can't change the importance
// or other notification behaviors after this
m_notificationManager.createNotificationChannel(channel);
description = "Cwtch Content Notification Channel";
importance = NotificationManager.IMPORTANCE_DEFAULT;
channel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, CONTENT_NOTIFICATION_ID_NAME, importance);
String description = "Cwtch Notification Channel";
NotificationChannel channel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, CONTENT_NOTIFICATION_ID_NAME, NotificationManager.IMPORTANCE_HIGH);
channel.setDescription(description);
// Register the channel with the system; you can't change the importance
// or other notification behaviors after this

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 774 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 998 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 396 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 478 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 512 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 530 B

BIN
assets/core/block-24px.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 868 B

BIN
assets/core/check-24px.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 258 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 393 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 B

BIN
assets/core/clear-24px.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 308 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 B

BIN
assets/core/done-24px.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 270 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 B

BIN
assets/core/edit-24px.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 268 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 532 B

View File

Before

Width:  |  Height:  |  Size: 826 B

After

Width:  |  Height:  |  Size: 826 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

View File

Before

Width:  |  Height:  |  Size: 792 B

After

Width:  |  Height:  |  Size: 792 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

Before

Width:  |  Height:  |  Size: 766 B

After

Width:  |  Height:  |  Size: 766 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

View File

Before

Width:  |  Height:  |  Size: 848 B

After

Width:  |  Height:  |  Size: 848 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

Before

Width:  |  Height:  |  Size: 599 B

After

Width:  |  Height:  |  Size: 599 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

Before

Width:  |  Height:  |  Size: 634 B

After

Width:  |  Height:  |  Size: 634 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

View File

Before

Width:  |  Height:  |  Size: 564 B

After

Width:  |  Height:  |  Size: 564 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

View File

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 25.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve">
<style type="text/css">
.st0{fill:none;}
</style>
<g>
<path d="M8.9,12.9c-0.3,0-0.6,0-0.9,0c-2.1,0-6.3,1-6.3,3.1v2.2h5.4V16C7.1,14.7,7.8,13.7,8.9,12.9z"/>
<path d="M8,11.1c1.5,0,2.7-1.2,2.7-2.7c0-1.5-1.2-2.7-2.7-2.7c-1.5,0-2.7,1.2-2.7,2.7C5.3,9.9,6.5,11.1,8,11.1z"/>
<path d="M14.3,11.1c1.5,0,2.7-1.2,2.7-2.7c0-1.5-1.2-2.7-2.7-2.7s-2.7,1.2-2.7,2.7C11.7,9.9,12.8,11.1,14.3,11.1z"/>
<path d="M15.4,13c-0.4,0-0.7-0.1-1.1-0.1c-2.1,0-6-0.4-6.3,3.1v2.2h4.8c0-0.2,0-0.3,0-0.5C12.8,15.8,13.8,14,15.4,13z"/>
</g>
<path class="st0" d="M0,0h24v24H0V0z"/>
<path d="M22.1,18.3c0-0.1,0-0.3,0-0.4c0-0.2,0-0.3,0-0.4l1-0.7c0.1-0.1,0.1-0.2,0.1-0.3l-0.9-1.6c-0.1-0.1-0.2-0.1-0.3-0.1l-1.1,0.5
c-0.2-0.2-0.5-0.3-0.8-0.4l-0.2-1.2c0-0.1-0.1-0.2-0.2-0.2h-1.8c-0.1,0-0.2,0.1-0.2,0.2l-0.2,1.2c-0.3,0.1-0.5,0.3-0.8,0.4l-1.1-0.5
c-0.1,0-0.2,0-0.3,0.1l-0.9,1.6c-0.1,0.1,0,0.2,0.1,0.3l1,0.7c0,0.1,0,0.3,0,0.4s0,0.3,0,0.4l-1,0.7c-0.1,0.1-0.1,0.2-0.1,0.3
l0.9,1.6c0.1,0.1,0.2,0.1,0.3,0.1l1.1-0.5c0.2,0.2,0.5,0.3,0.8,0.4l0.2,1.2c0,0.1,0.1,0.2,0.2,0.2h1.8c0.1,0,0.2-0.1,0.2-0.2L20,21
c0.3-0.1,0.5-0.3,0.8-0.4l1.1,0.5c0.1,0,0.2,0,0.3-0.1l0.9-1.6c0.1-0.1,0-0.2-0.1-0.3L22.1,18.3z M18.7,19.5c-0.9,0-1.7-0.8-1.7-1.7
c0-0.9,0.8-1.7,1.7-1.7c0.9,0,1.7,0.8,1.7,1.7C20.5,18.8,19.7,19.5,18.7,19.5z"/>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
assets/core/info-24px.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 510 B

BIN
assets/core/lock-24px.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 445 B

BIN
assets/core/lock-24px.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 366 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 376 B

BIN
assets/core/menu-24px.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 B

BIN
assets/core/mood-24px.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 984 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 194 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 834 B

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 25.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve">
<style type="text/css">
.st0{fill:none;}
</style>
<path class="st0" d="M0,0h24v24H0V0z"/>
<g>
<path d="M13.6,13.8c-1-0.2-2-0.3-2.8-0.3c-2.7,0-8,1.3-8,4v2h9.8c-0.3-0.6-0.4-1.3-0.4-2.1C12.2,15.9,12.7,14.7,13.6,13.8z"/>
<circle cx="10.8" cy="7.4" r="4"/>
</g>
<path d="M21.1,17.9c0-0.1,0-0.3,0-0.4c0-0.2,0-0.3,0-0.4l1-0.7c0.1-0.1,0.1-0.2,0.1-0.3l-0.9-1.6c-0.1-0.1-0.2-0.1-0.3-0.1l-1.1,0.5
c-0.2-0.2-0.5-0.3-0.8-0.4l-0.2-1.2c0-0.1-0.1-0.2-0.2-0.2h-1.8c-0.1,0-0.2,0.1-0.2,0.2l-0.2,1.2c-0.3,0.1-0.5,0.3-0.8,0.4l-1.1-0.5
c-0.1,0-0.2,0-0.3,0.1L13.4,16c-0.1,0.1,0,0.2,0.1,0.3l1,0.7c0,0.1,0,0.3,0,0.4c0,0.1,0,0.3,0,0.4l-1,0.7c-0.1,0.1-0.1,0.2-0.1,0.3
l0.9,1.6c0.1,0.1,0.2,0.1,0.3,0.1l1.1-0.5c0.2,0.2,0.5,0.3,0.8,0.4l0.2,1.2c0,0.1,0.1,0.2,0.2,0.2h1.8c0.1,0,0.2-0.1,0.2-0.2
l0.2-1.2c0.3-0.1,0.5-0.3,0.8-0.4l1.1,0.5c0.1,0,0.2,0,0.3-0.1l0.9-1.6c0.1-0.1,0-0.2-0.1-0.3L21.1,17.9z M17.7,19.2
c-0.9,0-1.7-0.8-1.7-1.7c0-0.9,0.8-1.7,1.7-1.7c0.9,0,1.7,0.8,1.7,1.7C19.4,18.4,18.7,19.2,17.7,19.2z"/>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 678 B

View File

Before

Width:  |  Height:  |  Size: 787 B

After

Width:  |  Height:  |  Size: 787 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

Before

Width:  |  Height:  |  Size: 686 B

After

Width:  |  Height:  |  Size: 686 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

View File

Before

Width:  |  Height:  |  Size: 974 B

After

Width:  |  Height:  |  Size: 974 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 616 B

BIN
assets/core/send-24px.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 344 B

BIN
assets/core/sync-24px.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 626 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 642 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 608 B

BIN
assets/core/syncing-01.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
assets/core/syncing-02.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
assets/core/syncing-03.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 414 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 888 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Some files were not shown because too many files have changed in this diff Show More