Compare commits

...

1043 Commits

Author SHA1 Message Date
B. Petersen 10ffdc2f2b changelog 2019-04-20 01:04:12 +02:00
B. Petersen fb4744bb88 bump version 2019-04-20 00:33:53 +02:00
björn petersen 49c1392641 Merge pull request #860 from deltachat/fix-lights
catch color parsing errors
2019-04-20 00:25:31 +02:00
B. Petersen dd7a67a909 catch color parsing errors 2019-04-20 00:07:47 +02:00
B. Petersen 561e6ca1be bump version 2019-04-19 18:59:12 +02:00
B. Petersen 3b6422d50a update translations 2019-04-19 18:54:55 +02:00
B. Petersen 8b40477a0d Update messenger-backend submodule. 2019-04-19 17:43:04 +02:00
björn petersen 6cc93027a8 Merge pull request #856 from deltachat/tweak-location-icon
move location-icon to upper right corner and make it a bit larger
2019-04-19 13:02:09 +02:00
B. Petersen 7eaeb9f603 move location-icon to upper right corner and make it a bit larger 2019-04-19 12:26:03 +02:00
B. Petersen 68ba826def Update messenger-backend submodule. 2019-04-19 02:16:12 +02:00
björn petersen d5d6eef0a7 Merge pull request #853 from deltachat/show-location-states
show current state of the location-streaming in chatlist and chat
2019-04-19 02:15:32 +02:00
B. Petersen afd8431220 playing around with location-streaming-state as floating icon 2019-04-19 02:14:50 +02:00
björn petersen e87fff7c0c Merge pull request #852 from deltachat/location_updates
Location updates
2019-04-19 01:52:36 +02:00
B. Petersen bf040dfe62 remove one-time location-streaming; it's not implemented and it's unclear ux-wise 2019-04-19 00:23:41 +02:00
Ampli-fier c4a9d8f6e2 remove unused glide modues 2019-04-18 23:11:45 +02:00
Ampli-fier 6a1181de5e Undo of: Removed unknown attribute 'position' 2019-04-18 22:49:57 +02:00
Ampli-fier ee9c92f555 Revert "remove unused glide modues"
This reverts commit dcfe4c3e5b.
2019-04-18 22:32:18 +02:00
Ampli-fier c4e3f98266 Removed unknown attribute 'position' 2019-04-18 22:05:24 +02:00
B. Petersen 5a644af56f show current state of the location-streaming in chatlist and chat 2019-04-18 17:17:35 +02:00
cyBerta 2ef1ad1eb2 adapt info window offset for character markers 2019-04-18 15:10:59 +02:00
cyBerta 86d5226bf9 white marker characters 2019-04-18 15:03:06 +02:00
cyBerta 54fb81dc7f fix map filtering, map shows location updates again 2019-04-18 15:01:48 +02:00
B. Petersen 431b72cae6 update translations 2019-04-18 14:33:45 +02:00
björn petersen 929784978c Merge pull request #851 from deltachat/tweak-glide
remove unused glide modues
2019-04-18 14:31:38 +02:00
B. Petersen dcfe4c3e5b remove unused glide modues 2019-04-18 01:33:52 +02:00
B. Petersen 7326677be0 Revert "Update messenger-backend submodule."
This reverts commit 2cf2505524.
2019-04-18 01:14:09 +02:00
björn petersen 85eb7eb896 Merge pull request #850 from deltachat/ime-action-label
set landscape full-screen-editor button-label
2019-04-18 01:01:04 +02:00
B. Petersen 2cf2505524 Update messenger-backend submodule. 2019-04-18 00:49:21 +02:00
björn petersen 4b2ef6b407 Merge pull request #843 from deltachat/location_streaming_2
Location streaming 2
2019-04-18 00:46:16 +02:00
B. Petersen 310f76a7a4 use marker string as-is, it's already truncated in core; do not use length() to check for marker as this won't work for non-ascii 2019-04-18 00:45:51 +02:00
B. Petersen c558853bad set landscape full-screen-editor button-label 2019-04-17 23:41:50 +02:00
cyBerta f5cc75723a add markers with single characters to map 2019-04-17 19:42:17 +02:00
Ampli-fier e62d5d9537 Merge pull request #848 from deltachat/tweak-dark-three
Tweak dark three
2019-04-17 13:29:27 +02:00
B. Petersen 5d6b26e2a2 make scroll-to-bottom more visible, thanks @Ampli-fier 2019-04-17 11:26:11 +02:00
B. Petersen 3ad1d920ff tweak search-separator 2019-04-17 11:17:53 +02:00
B. Petersen 620e1e3757 tweak close-attach-area-button 2019-04-17 11:17:53 +02:00
B. Petersen a949e24d5e tweak scroll-to-bottom-button 2019-04-17 11:17:53 +02:00
B. Petersen e7405b59f7 tweak send button 2019-04-17 11:17:53 +02:00
B. Petersen a8d5f17058 Update messenger-backend submodule. 2019-04-16 22:56:43 +02:00
B. Petersen a164c8f44c add script to push sources to transifex 2019-04-16 22:51:54 +02:00
björn petersen f11d96a50d Merge pull request #847 from Ampli-fier/master
Grammar
2019-04-16 22:45:15 +02:00
Ampli-fier a75e7506aa Grammar 2019-04-16 21:47:19 +02:00
Ampli-fier ea93f1b1c2 Merge pull request #845 from deltachat/tweak-dark-mode
tweak background
2019-04-16 20:31:52 +02:00
B. Petersen 792a2a4997 add DcArray.getMarker() 2019-04-16 19:49:26 +02:00
cyBerta ba7f7b42ff fix merge conflicts 2019-04-16 18:25:56 +02:00
cyBerta 4904757868 fix some slider flakieness for cancellation motion events 2019-04-16 18:16:32 +02:00
cyBerta 6da6028409 allow last position icons to overlap 2019-04-16 18:14:19 +02:00
cyBerta 0370dbe2d7 rename parameter 2019-04-16 17:59:55 +02:00
B. Petersen 2942ff1aad gray scale and flip background, self-bubbles in neutral color 2019-04-16 16:38:46 +02:00
björn petersen 58e0a6a9fc Merge pull request #842 from Ampli-fier/master
Dark Theme improvements part 2
2019-04-16 15:52:31 +02:00
B. Petersen 87c53bae1b add português do brasil 2019-04-16 15:19:09 +02:00
B. Petersen 2b44505485 unify language names to 'locale only' 2019-04-16 14:39:24 +02:00
B. Petersen aee7befa85 update translations 2019-04-16 14:20:56 +02:00
cyBerta 9c43f8ef5d #837 simplify location history slider 2019-04-16 11:22:28 +02:00
cyBerta 085959a6c4 MapDataManager: don't update whole list if no point was added (after onResume) 2019-04-16 11:22:28 +02:00
cyBerta 5e2e6c644e replaces FeatureTreeSet by LinkedLists, reduces layers, improves performance of map 2019-04-16 11:22:27 +02:00
cyBerta b20878d2bc #837 simplify location history slider 2019-04-16 09:13:10 +02:00
cyBerta 1de13e0834 MapDataManager: don't update whole list if no point was added (after onResume) 2019-04-16 08:39:54 +02:00
B. Petersen c153f97b17 Update messenger-backend submodule. 2019-04-16 01:32:35 +02:00
Ampli-fier 11bfd53cf8 Rotate dark background by 180 deg 2019-04-15 23:11:39 +02:00
Ampli-fier 42cf825e98 Cleanup of color usages, better colors for dark theme 2019-04-15 23:09:26 +02:00
björn petersen 2781636d3d Merge pull request #840 from deltachat/disable-leak-canary
disable leak canaray for now
2019-04-15 19:06:58 +02:00
cyBerta 7c9d2df76a replaces FeatureTreeSet by LinkedLists, reduces layers, improves performance of map 2019-04-15 16:50:03 +02:00
B. Petersen 2feecdeb7f disable LeakCanaray until the known leaks are fixed, see #841 2019-04-15 15:17:48 +02:00
björn petersen 1142117bef Merge pull request #831 from deltachat/add-japanese
japanese translation
2019-04-15 14:58:49 +02:00
björn petersen 17845bce7f Merge pull request #828 from Ampli-fier/master
Dark Theme improvements
2019-04-14 00:59:43 +02:00
B. Petersen 0961cffaac initial japanese translation, thanks @RACER1 2019-04-13 15:43:49 +02:00
Ampli-fier 6742895fec Localizable strings for buttons in background selection 2019-04-13 15:36:51 +02:00
B. Petersen 2aea46660c comment 2019-04-13 15:18:16 +02:00
Ampli-fier 8192e35c41 simplify else if statement 2019-04-13 15:15:10 +02:00
cyBerta 232868636f Merge pull request #824 from cracker0dks/patch-1
Update strings.xml
2019-04-12 15:35:11 +02:00
cyBerta c934b2c177 Merge pull request #818 from deltachat/issue-805
Forwarding image from image viewer doesn't work #805
2019-04-12 15:34:08 +02:00
cyBerta 8f23935f77 Merge pull request #830 from deltachat/issue-821
Empty notification for voice and image messages #821
2019-04-12 15:31:12 +02:00
cyBerta ecc9522b92 Merge pull request #829 from deltachat/location_streaming_stabilization
Location streaming stabilization
2019-04-12 15:26:53 +02:00
daniel.boehrs e2a2786e3e Empty notification for voice and image messages #821 2019-04-12 14:58:45 +02:00
cyBerta 8cd2f8f1b4 remove unused imports 2019-04-12 11:42:45 +02:00
cyBerta d96e87c1ef adapt info popup linking to chats after reducing the number of layers for info windows 2019-04-12 01:30:40 +02:00
cyBerta c5a9984ccd refactor filtering, add option to hide traces 2019-04-12 01:13:17 +02:00
cyBerta 868994ba10 add LeakCanary for memory leak detection in debug builds 2019-04-12 00:22:39 +02:00
cyBerta 6b327e690b avoid possible OutOfMemory Errors by lazy generating info popups 2019-04-12 00:21:00 +02:00
cyBerta f78293a3ae fix app crashes on fast layout changes 2019-04-11 14:18:06 +02:00
Ampli-fier 22c4d063c4 Default background image for dark theme 2019-04-10 20:14:07 +02:00
Ampli-fier af4aee1d54 Better colour for PLUS-button in dark theme 2019-04-10 19:24:09 +02:00
Ampli-fier 4a184de91e Switch conversation list divider on Theme changes 2019-04-10 19:15:14 +02:00
cyBerta 31e3a9c1d0 show last positions within the last 24h 2019-04-09 15:37:24 +02:00
cyBerta 3ef7c73511 fix padding for TimeRangeSlider 2019-04-09 14:57:42 +02:00
Cracker f950a8e3b6 Update strings.xml
fix string
2019-04-09 11:56:18 +02:00
holger krekel 46fc0226c4 Merge pull request #822 from deltachat/p-graphics
rework inbox-hello and inbox-zero screens
2019-04-07 16:20:08 +02:00
B. Petersen 4efde95974 add image from @jankass, should be fine for now 2019-04-07 15:42:35 +02:00
B. Petersen 3ce7872e02 adding text and image with some sense 2019-04-06 21:51:07 +02:00
B. Petersen 96a5971f3d simplify inbox-zero screen and make it more helpful 2019-04-06 18:46:05 +02:00
B. Petersen ee6b90c990 create own inbox-hello and inbox-zero images 2019-04-05 22:00:11 +02:00
björn petersen 11cff9be6e Merge pull request #819 from adbenitez/patch-1
Update release-checklist.md
2019-04-05 17:30:33 +02:00
Asiel Díaz Benítez 92dbd3e2e5 Update release-checklist.md
just some little play with case and fixed 2 typos
2019-04-05 11:10:12 -04:00
daniel.boehrs 20c0d34d25 Forwarding image from image viewer doesn't work #805 2019-04-05 14:11:43 +02:00
B. Petersen 39ab44fb55 Update messenger-backend submodule. 2019-04-05 13:14:35 +02:00
björn petersen fe7e5b1bd3 Merge pull request #811 from deltachat/theme-dark-theme
fix dark theme
2019-04-05 12:08:16 +02:00
B. Petersen 631fa8a1d8 tweak member-delete icon for dark-theme 2019-04-05 11:03:32 +02:00
B. Petersen ea0e45cead tweak swiping in dark mode 2019-04-05 02:42:13 +02:00
B. Petersen 8abc5bd50e tweak deak-mode input panel 2019-04-05 02:24:26 +02:00
B. Petersen a228b7c128 tweak background selection, avoid select-button being at the position as 'close' 2019-04-05 01:52:34 +02:00
B. Petersen 9911e9c0fc default background in dark-theme defaults to black 2019-04-05 01:33:04 +02:00
B. Petersen cbf5405ee0 tweak dark mode settings 2019-04-05 01:10:28 +02:00
B. Petersen 0343b9a732 fix cursor and control colors in dark mode 2019-04-05 01:01:06 +02:00
B. Petersen 28b2541c92 tweak contact list 2019-04-04 16:27:17 +02:00
B. Petersen 500ef4e6d2 make all contact lists readable in dark mode 2019-04-03 11:15:09 +02:00
B. Petersen 691c8756fc tint dark-mode fab-button 2019-04-02 19:21:02 +02:00
B. Petersen f238344d0b set cursor more nicely 2019-04-02 18:56:10 +02:00
B. Petersen cb6ef5193f tint the advanced-expand-button correctly 2019-04-02 18:43:21 +02:00
B. Petersen afaffa8880 themed qr scan/show activities 2019-04-02 13:53:01 +02:00
B. Petersen edecccd163 fix dark mode for LogView 2019-04-02 13:37:38 +02:00
B. Petersen 915ac6b8af use theme colors for RegistrationActivity 2019-04-02 11:52:26 +02:00
B. Petersen 1826f23264 Update messenger-backend submodule. 2019-03-31 13:49:43 +02:00
björn petersen 24fcd640b7 Merge pull request #802 from deltachat/backgroundEmojiTextViewCreation
fix #793 partially: allow to create EmojiTextViews in background if ...
2019-03-31 13:48:47 +02:00
cyBerta 0e38fbe021 cleanup 2019-03-31 13:38:51 +02:00
cyBerta 4707efb26a fix #793 partially: allow to create EmojiTextViews in background if statically declared in xml 2019-03-31 13:38:50 +02:00
björn petersen 85cba6cb49 Merge pull request #799 from deltachat/speedup
speed up
2019-03-31 13:31:34 +02:00
B. Petersen efed65c8f4 fix rotating pending-icon 2019-03-31 13:12:21 +02:00
Angelo Fuchs 163cd51aec Maintainance: Move Test outside of regular source codes to avoid confusion. Test srcs are now referenced in build.gradle as own section. Still needs proper goal. 2019-03-31 10:16:30 +02:00
B. Petersen 41031f428c comment 2019-03-30 22:58:15 +01:00
B. Petersen c3cd6337af save on loading 2019-03-30 01:58:10 +01:00
B. Petersen b5b9073d2c less db queries for avatars 2019-03-30 01:28:12 +01:00
B. Petersen c39140442b save db query for drawing group-icon 2019-03-30 00:46:47 +01:00
B. Petersen d81cd18d57 simplify Recipient object, load message for notifications only once, less locking in Recipients object 2019-03-30 00:28:30 +01:00
B. Petersen 880f0c20e4 quicker location-streaming-needed check 2019-03-29 18:55:37 +01:00
B. Petersen 2d37c82cbe allow simple Recipient listeners 2019-03-29 17:35:42 +01:00
B. Petersen c1ff85cc10 remove phone-number-checks 2019-03-29 17:35:42 +01:00
B. Petersen 0604f797d0 check already loaded object in Recipient 2019-03-29 17:35:42 +01:00
B. Petersen 3eb5ddf961 remove unneeded recipient-resolve 2019-03-29 17:35:42 +01:00
B. Petersen c7ed32852d do not load participant list without need 2019-03-29 17:35:42 +01:00
B. Petersen e48d0f4029 simplify delivery-icon 2019-03-29 17:35:42 +01:00
B. Petersen 979d2c663d remove dead quote code 2019-03-29 17:35:42 +01:00
B. Petersen 16a57df9d6 update translations 2019-03-29 02:36:56 +01:00
B. Petersen 6f0a7d0254 Update messenger-backend submodule. 2019-03-29 02:35:19 +01:00
björn petersen 819895e2f1 Merge pull request #794 from deltachat/tweaks
some minor tweaks
2019-03-28 17:29:08 +01:00
cyBerta 470448dd2d Merge pull request #791 from deltachat/map_filtering_2
Map filtering 2
2019-03-28 16:01:35 +01:00
B. Petersen f22247dc70 tweak profile dialog 2019-03-28 01:40:17 +01:00
B. Petersen f141dba12d tweak soft keyboard 2019-03-28 01:20:03 +01:00
B. Petersen b5f94deb81 show correct initial value for 'show classic emails' 2019-03-28 00:53:22 +01:00
cyBerta 39c7103cf6 review fix in slider 2019-03-26 18:45:45 +01:00
cyBerta 97c47153ec fix rounding issue in slider, some more minor performance improvements 2019-03-26 18:34:48 +01:00
cyBerta 1b43a3fe3f map bottom should not be hidable 2019-03-26 18:34:48 +01:00
cyBerta 37974f2ce8 implement filtering, move time label above the slider, minor performance optimizations 2019-03-26 18:34:48 +01:00
cyBerta f57b72d072 avoid IllegalStateExceptions but show an error in the logs if chat id is 0 of a message linked to a marker 2019-03-26 18:34:48 +01:00
cyBerta dfd8d67480 if slider has max position, show 'Last Position', implement longpress for moving both thumb views, initial filter implementation 2019-03-26 18:34:48 +01:00
cyBerta 06525bcaf6 replace hard coded string in bottom sheet 2019-03-26 18:34:48 +01:00
cyBerta f68853e7ec open bottom sheet with time range slider on icon click 2019-03-26 18:34:48 +01:00
cyBerta d41323e69e beautify slider element. 2019-03-26 18:34:48 +01:00
cyBerta 869fb5c16b clean up dead code 2019-03-26 18:34:48 +01:00
cyBerta 58c59146bd implement bottom sheet and a slider for filtering tracks 2019-03-26 18:34:48 +01:00
cyBerta b0aff19ae0 hide global map menu entry if necessary 2019-03-26 18:34:48 +01:00
björn petersen 089554e098 Merge pull request #790 from deltachat/disable-invite
disable invite activity for now
2019-03-26 18:07:19 +01:00
B. Petersen a41116472f disable invite activity for now 2019-03-26 16:51:07 +01:00
B. Petersen 75eaa54481 Update messenger-backend submodule. 2019-03-23 20:43:03 +01:00
björn petersen b4630845c5 Merge pull request #781 from deltachat/location-menu
minor menu tweakings
2019-03-23 20:42:28 +01:00
B. Petersen 3c3a67ea0a let 'settings' be the last menu entry, hide 'global map' entry if location-streaming is disabled 2019-03-23 20:00:48 +01:00
björn petersen 4a9cfcd5b0 Merge pull request #777 from deltachat/global_map_view
Initial implementation of a global map view
2019-03-23 19:02:28 +01:00
cyBerta 5f08c555c4 use core ability to fetch all locations for a contact using chatId = 0 2019-03-23 18:49:38 +01:00
björn petersen a39d0c3250 Merge pull request #775 from deltachat/issue-732
Group with 1 member not shown as group #732
2019-03-23 18:42:28 +01:00
björn petersen 6b7283bcba Merge pull request #776 from deltachat/issue-463
Low quality contact picture #463
2019-03-23 18:38:30 +01:00
cyBerta 7f702825f6 use first name in info window as sender 2019-03-23 12:22:26 +01:00
cyBerta 1ea0ba0097 change use core location ids for point feature 2019-03-23 11:36:42 +01:00
cyBerta d88cae015d fix live location updates for own locations 2019-03-23 11:16:40 +01:00
cyBerta 3fe0adfb8d Merge branch 'master' into global_map_view 2019-03-23 01:55:13 +01:00
cyBerta b679766581 Merge pull request #780 from deltachat/tweak-locations
adapt to new core-api
2019-03-23 01:45:19 +01:00
B. Petersen 4d2211e0d4 adapt to new core-api 2019-03-23 01:35:53 +01:00
B. Petersen 0b28d24e0a Update messenger-backend submodule. 2019-03-23 01:23:42 +01:00
cyBerta fc9971fa15 reduce size of location markers that don't have a messageId 2019-03-23 00:42:23 +01:00
cyBerta f596b3beb4 show display name of sender in info window 2019-03-22 23:51:23 +01:00
cyBerta 7897b39206 move getChatIds() to ApplicationDcContext 2019-03-22 22:53:57 +01:00
cyBerta 2ee94c9ba4 cleanup and test FeatureTreeSet 2019-03-22 22:21:30 +01:00
cyBerta cb5b12d5a8 initial implementation of a global map view 2019-03-22 17:26:56 +01:00
daniel.boehrs 2c46d6e052 Low quality contact picture #463 2019-03-22 13:27:57 +01:00
daniel.boehrs c34d28d230 Group with 1 member not shown as group #732 2019-03-22 12:53:24 +01:00
B. Petersen 60c8313816 Update messenger-backend submodule. 2019-03-21 22:47:59 +01:00
cyBerta 915076a277 Merge pull request #774 from deltachat/check-for-null-pointer
on startup, always show errors if ForegroundDetector is not yet present
2019-03-21 20:47:54 +01:00
B. Petersen 3356b98059 check if ForegroundDetector is available before using it on logging errors 2019-03-21 20:26:39 +01:00
B. Petersen 12dca831a2 Update messenger-backend submodule. 2019-03-21 15:04:08 +01:00
B. Petersen c279ecefd1 Update messenger-backend submodule. 2019-03-21 14:51:14 +01:00
Angelo Fuchs 43f82c28fd Merge pull request #755 from deltachat/location-streaming
Location streaming basic implementation
2019-03-21 14:35:57 +01:00
cyBerta b811b5d313 prepare usage of a map fragment instead of a map view 2019-03-21 14:19:41 +01:00
cyBerta 00c02f49b2 start location streaming service on app start if necessary, stop streaming service after 'share once' if no other chat has streaming enabled, use DcHelper 2019-03-21 10:36:26 +01:00
cyBerta c90d1ccec2 use one source and layer to show all markers, show info window for last location 2019-03-21 09:43:21 +01:00
cyBerta 535b47b98c Merge branch 'master' into location-streaming 2019-03-21 07:50:05 +01:00
cyBerta acff990289 fix npe if no position data is yet available 2019-03-15 14:31:22 +01:00
B. Petersen 17b7b7da9a start a testing checklist 2019-03-15 14:11:21 +01:00
cyBerta 5d47838aff open conversation on map info window click 2019-03-15 14:10:30 +01:00
björn petersen 924ad365a0 Merge pull request #766 from deltachat/issue-754
Unused "New chat" option on groups's profile #754
2019-03-15 13:46:44 +01:00
björn petersen 0a71e21a55 Merge pull request #767 from deltachat/issue-753
[UI] Selecting all contacts but counter still not updated #753
2019-03-15 13:38:45 +01:00
cyBerta 325d8acbf6 check if there's a thumbnail file actually available 2019-03-15 13:29:08 +01:00
cyBerta e0202ebfd7 remove unused space in map bubble view for image only messages 2019-03-15 13:18:06 +01:00
cyBerta f29cb1d27b show thumbnails for attached images in map 2019-03-15 13:08:28 +01:00
cyBerta 7d80926069 show truncated message body text in bubble on map 2019-03-15 11:37:17 +01:00
cyBerta 77431b6dd2 reduce unused space in map bubble layout 2019-03-15 10:32:19 +01:00
cyBerta 3f73551f54 zoom map to bounding box that includes all points shown on the map 2019-03-15 10:30:24 +01:00
daniel.boehrs 959e007e39 [UI] Selecting all contacts but counter still not updated #753 2019-03-15 09:16:29 +01:00
daniel.boehrs 5370d35f44 Unused "New chat" option on groups's profile #754 2019-03-15 08:50:08 +01:00
B. Petersen d50718f95b bump version 2019-03-14 12:53:11 +01:00
B. Petersen 39a651278e Update messenger-backend submodule. 2019-03-14 11:31:30 +01:00
cyBerta 77358c5636 draw info windows always on top 2019-03-14 01:36:57 +01:00
cyBerta ea3da82e2c avoid npe's in GenerateInfoWindowTask 2019-03-14 01:31:59 +01:00
cyBerta 7edba7afe6 invert info window id generation 2019-03-14 01:31:25 +01:00
cyBerta 7c378bcb66 delete all locations on long press as dev option 2019-03-14 00:38:42 +01:00
cyBerta 462390636f don't send invalid locations to core 2019-03-14 00:11:40 +01:00
cyBerta 03cde21eb9 Avoid null Location updates 2019-03-13 23:45:58 +01:00
cyBerta a553b33783 initial info window implementation 2019-03-13 23:39:40 +01:00
B. Petersen 8f7d44ccd5 Update messenger-backend submodule. 2019-03-13 17:55:56 +01:00
B. Petersen 91620a6f0d update translations 2019-03-13 17:31:30 +01:00
cyBerta 55973ef857 Merge branch 'master' into location-streaming 2019-03-13 13:03:34 +01:00
cyBerta 48b3f26ec8 Merge branch 'location-streaming' of https://github.com/deltachat/deltachat-android into location-streaming 2019-03-12 16:24:51 +01:00
cyBerta 276ed3de7c update core submodule 2019-03-12 16:23:08 +01:00
cyBerta 63366eecf3 add logic to select markers, prerequisite for showing an info overlay 2019-03-12 16:22:42 +01:00
björn petersen ec2adce39e Merge pull request #761 from deltachat/update-application-language
also update locale of ApplicationContext
2019-03-11 20:26:48 +01:00
B. Petersen 65655a6138 added deleteAllLocations() to jni 2019-03-11 15:12:10 +01:00
Daniel 3eb6a56e5b Merge pull request #765 from deltachat/fix-mailto-links
fix handling mailto:-share-links
2019-03-11 13:27:18 +01:00
Daniel fb2ce839a9 Merge pull request #763 from deltachat/fix-share-crash
fix crash when sharing link, closes #762
2019-03-11 13:25:39 +01:00
B. Petersen 2ace2a5bdf fix handling mailto:-share-links, closes #764 2019-03-10 17:14:19 +01:00
B. Petersen 5e73a679b6 fix crash when sharing link, closes #762 2019-03-10 16:29:53 +01:00
björn petersen b5a9e910b0 Merge pull request #759 from deltachat/issue-434
sharing files does not work #434
2019-03-09 18:52:36 +01:00
B. Petersen d6a94fd544 wording: make clear, images are not recoded 2019-03-09 18:52:15 +01:00
daniel.boehrs 0c5e1b95f5 sharing files does not work #434 2019-03-09 18:37:01 +01:00
B. Petersen 2b67413b62 also update locale of ApplicationContext as this is neeed eg. by the core 2019-03-09 18:15:47 +01:00
B. Petersen 60aab2998a update translations 2019-03-09 17:42:21 +01:00
B. Petersen 47b87ac203 force pulling new translations, skip all evil caches 2019-03-09 17:40:34 +01:00
B. Petersen 37bbc41639 add a script to check for some basic translation syntax errors 2019-03-09 17:38:12 +01:00
B. Petersen e39c569aa1 update translations 2019-03-09 17:07:00 +01:00
B. Petersen 0913fc2f1b update translations 2019-03-09 16:30:22 +01:00
björn petersen 6fa0598169 Merge pull request #758 from deltachat/logfromonboarding
log should be reachable during onboarding #744
2019-03-09 16:00:13 +01:00
B. Petersen fdcf2786a8 tweak layout, re-use existing string 2019-03-09 15:56:07 +01:00
florian.haar 450966cce6 og should be reachable during onboarding #744 2019-03-09 15:36:48 +01:00
cyBerta f2f04e214b add timestamp, msgId, accuracy info to each point 2019-03-08 11:35:32 +01:00
cyBerta 44219ca6f2 cleanup in MapActivity 2019-03-08 11:34:18 +01:00
cyBerta 81732320cc Merge branch 'location-streaming' of https://github.com/deltachat/deltachat-android into location-streaming 2019-03-08 02:01:37 +01:00
cyBerta 1f332f2b8c add MapDataManager, updates points and lines drawn on the map 2019-03-08 02:00:24 +01:00
B. Petersen 6bab6db32c add kml to standards.md 2019-03-07 21:11:22 +01:00
B. Petersen 6d76fabe91 add advanced switch to enable location-streaming, defaults to 'off' 2019-03-07 14:00:16 +01:00
cyBerta 9843debd21 Merge branch 'location-streaming' of https://github.com/deltachat/deltachat-android into location-streaming 2019-03-07 13:11:20 +01:00
cyBerta 9268b38d47 update submodule 2019-03-07 13:10:23 +01:00
cyBerta 0cb23b3dc5 show own location icon on a map, tweak location update filtering 2019-03-07 13:10:23 +01:00
B. Petersen 998e903e0d adapt to location-rendering-api 2019-03-07 13:10:23 +01:00
cyBerta 70613cc8e1 start/stop location streaming from attachment window, use location related core bindings 2019-03-07 13:10:22 +01:00
cyBerta 8fede3312a add location off icon 2019-03-07 13:10:22 +01:00
cyBerta 5f9646a028 improve location sharing alert title 2019-03-07 13:10:22 +01:00
cyBerta be8a718b3f implement share location button, share location timespan, rename threadId to chatId 2019-03-07 13:10:21 +01:00
B. Petersen 3e28cbed05 DcContext.setLocation() returns the state 2019-03-07 13:10:21 +01:00
B. Petersen 964ab18730 add location-sending functions 2019-03-07 13:10:21 +01:00
cyBerta 71d6972d0f move map and android related code to org.thoughtcrime.securesms 2019-03-07 13:10:20 +01:00
cyBerta b0534c44f6 initial location service implementation, adds a map activity 2019-03-07 13:10:20 +01:00
cyBerta ea6144d963 updates gradle syntax, integrates map dependency and removes gradleWitness until 'implementation' is supported 2019-03-07 13:10:19 +01:00
cyBerta de4fa329e6 Merge pull request #751 from deltachat/image-compression
add an experimental feature for high image compression
2019-03-07 13:08:33 +01:00
cyBerta c52a5c87bf update submodule 2019-03-07 00:53:16 +01:00
cyBerta 1e4c2996b2 Merge branch 'location-streaming' of https://github.com/deltachat/deltachat-android into location-streaming 2019-03-07 00:49:58 +01:00
cyBerta c08bc7ccfe show own location icon on a map, tweak location update filtering 2019-03-07 00:48:44 +01:00
B. Petersen ee8480787c adapt to location-rendering-api 2019-03-06 21:48:07 +01:00
cyBerta 59716c2909 start/stop location streaming from attachment window, use location related core bindings 2019-03-06 20:33:19 +01:00
cyBerta 88f267f748 add location off icon 2019-03-06 20:21:05 +01:00
cyBerta 98f4600df3 improve location sharing alert title 2019-03-06 20:20:22 +01:00
cyBerta 0794bc1ac9 Merge branch 'location-streaming' of https://github.com/deltachat/deltachat-android into location-streaming 2019-03-06 17:26:19 +01:00
cyBerta 8b8e383db8 implement share location button, share location timespan, rename threadId to chatId 2019-03-06 17:25:01 +01:00
B. Petersen 0106c4ebcc DcContext.setLocation() returns the state 2019-03-06 15:34:50 +01:00
B. Petersen 8b35cf1023 add location-sending functions 2019-03-06 15:24:32 +01:00
cyBerta a8e5e51ab9 move map and android related code to org.thoughtcrime.securesms 2019-03-06 12:31:48 +01:00
cyBerta 726d59c162 initial location service implementation, adds a map activity 2019-03-06 12:16:52 +01:00
cyBerta ecae4a14bb updates gradle syntax, integrates map dependency and removes gradleWitness until 'implementation' is supported 2019-03-05 21:12:55 +01:00
B. Petersen 1b6b2ec955 Update messenger-backend submodule. 2019-03-05 20:52:54 +01:00
björn petersen ab5363bab6 Merge pull request #752 from deltachat/fixformatstore
fix formatting for gplay store
2019-03-05 10:58:36 +01:00
holger krekel 829eca72ec fix formatting for gplay store 2019-03-04 07:26:25 +01:00
B. Petersen 867e2aa5d2 add an experimental feature for high image compression 2019-03-02 15:56:59 +01:00
björn petersen c920ef5329 Merge pull request #742 from deltachat/email-interactions
email interactions
2019-03-02 13:05:52 +01:00
B. Petersen 6be0c34ec4 introduce an option 'Show classic email' 2019-03-02 13:03:19 +01:00
B. Petersen c6d76cdf46 more visible divider 2019-02-28 10:31:46 +01:00
B. Petersen 0758977961 remove superfluous default parameter from getConfig() 2019-02-28 10:31:46 +01:00
B. Petersen 867362ac4f force redraw of stacked contact requests 2019-02-28 10:31:46 +01:00
B. Petersen 6a3887cbda abort contect requeste on archive/delete 2019-02-28 10:31:46 +01:00
björn petersen 770cebb255 Merge pull request #746 from deltachat/disable-disk-cache
disable glide disk cache
2019-02-28 10:24:11 +01:00
B. Petersen 9d0493a1ff disable glide disk cache 2019-02-28 00:00:34 +01:00
björn petersen ebc1b0a8e6 Merge pull request #745 from deltachat/add-dev-icon
use a different icon for dev-releases
2019-02-27 12:54:21 +01:00
björn petersen 24773f7613 Merge pull request #741 from chklump/Repair_open_files
Open files via intent didn't work for old android versions.
2019-02-27 00:34:17 +01:00
B. Petersen 92ff795aba add separate icon for the build-type 'debug' 2019-02-26 14:33:58 +01:00
holger krekel 72a2418903 Merge pull request #737 from deltachat/tweak-onboarding
tweak onboarding
2019-02-25 21:56:51 +01:00
holger krekel 4e461e1169 Merge pull request #736 from deltachat/addversion
add version to X-Mailer
2019-02-25 21:55:23 +01:00
B. Petersen 30c1e88a64 wording 2019-02-25 19:18:31 +01:00
B. Petersen d5fa605796 comment 2019-02-24 11:24:39 +01:00
chklump a4d9cb8d88 Add FLAG_ACTIVITY_NEW_TASK to intent in function openForViewOrShare for SDK version 23 and below. 2019-02-23 22:07:56 +01:00
B. Petersen 76daa92441 unify quantity strings; always include %d in 'one' because translators will need to use %d for languages where 'one' does not only mean 1 - and if %d is missing in the source strings, tool may not offer it 2019-02-23 14:12:39 +01:00
B. Petersen f3fa39016d unify colors and headlines 2019-02-22 19:17:38 +01:00
B. Petersen 14addb3984 tweak onboarding screen 2019-02-22 19:05:36 +01:00
björn petersen 00d4749826 Merge pull request #718 from deltachat/issue685
#685 date alignment in media gallery
2019-02-22 17:18:13 +01:00
Angelo Fuchs 682b1101a5 closes #685 by strictly defining points in time
- today is from 00:00.00 this morning until the end of time
- yesterday is from yesterday 00:00.00 until today
- the other ones also mean pretty much exactly what you would expect
them to mean.
- this week and this month both can be empty because they are already
covered by today, yesterday etc. This is by design.
2019-02-22 16:59:51 +01:00
Angelo Fuchs 9622270923 #685 dates are now aligned along date changes at 00:00.00 2019-02-22 16:59:50 +01:00
B. Petersen 5a94ee4e22 add version to X-Mailer 2019-02-22 16:57:15 +01:00
björn petersen 6080563916 Merge pull request #724 from deltachat/issue-716
mailto:-links without address should work as "share" #716
2019-02-22 16:48:46 +01:00
björn petersen 458cc8825b Merge pull request #706 from deltachat/issue-649
Lock pattern security issues #649
2019-02-22 16:39:39 +01:00
daniel.boehrs a91eea93ab Manual handling for mailto URIs 2019-02-22 15:43:58 +01:00
daniel.boehrs 103e6efdbd mailto:-links without address should work as "share" #716 2019-02-22 15:43:57 +01:00
B. Petersen 446b1b6c64 wording 2019-02-22 15:41:24 +01:00
B. Petersen 8df079eaf8 alter view root visibility only when screen-lock is enabled. this is for performance and general compatibility reasons, no special screenlock-code should run if screen-lock is disalbed.. 2019-02-22 15:29:47 +01:00
daniel.boehrs d649f74a6e Only hide UI if ScreenLock is enabled 2019-02-22 14:30:24 +01:00
daniel.boehrs 60fde960ce Lock pattern security issues #649 2019-02-22 14:30:24 +01:00
B. Petersen 64a4d03a6c re-add dev icon (to be used automatically for the beta versions) 2019-02-22 01:43:13 +01:00
B. Petersen 33cef9d9b9 add Lithuanian translation 2019-02-21 23:53:39 +01:00
B. Petersen 5f9c626b14 fix translations 2019-02-21 23:48:14 +01:00
B. Petersen b6fd0b86bf update translations 2019-02-21 23:08:27 +01:00
B. Petersen 63c9b00f51 Update messenger-backend submodule. 2019-02-21 23:00:42 +01:00
björn petersen eddee76ee2 Merge pull request #728 from deltachat/oauth2
implement OAuth2
2019-02-21 22:59:15 +01:00
B. Petersen f51bb4dde5 wording 2019-02-21 16:21:57 +01:00
björn petersen e8e54853f3 Merge pull request #735 from LenzGr/patch-1
Updated README.md
2019-02-21 15:59:16 +01:00
Lenz Grimmer 57837f736b Updated README.md
Provide direct download links to prevent users from having
to go through too many hops in order to obtain the package.
2019-02-21 15:49:18 +01:00
B. Petersen 83f86b8edf add OAuth2 to standards.md 2019-02-20 23:21:04 +01:00
B. Petersen b8a1646823 application-id in delta-chat-auth-scheme is optional 2019-02-20 23:11:57 +01:00
B. Petersen be6a556b87 remove static version prefix 2019-02-20 15:18:34 +01:00
B. Petersen daa5fde02a wording, handle accidential clicks outside confirmation dialog. 2019-02-20 14:54:43 +01:00
B. Petersen a7978430d1 get OAuth2 token back 2019-02-19 22:36:19 +01:00
B. Petersen 5b8c2ffb95 comment 2019-02-19 14:14:33 +01:00
B. Petersen 9bc231a1db do login when oauth2 returns 2019-02-19 00:50:00 +01:00
B. Petersen ad696464c1 add authorisation method popup to RegistrationActivity 2019-02-19 00:06:22 +01:00
B. Petersen bb4b72eab1 use correct redirect_uri 2019-02-18 22:55:12 +01:00
B. Petersen 1fa18be37d launch OAuth2 in browser if appropiate 2019-02-18 14:59:56 +01:00
B. Petersen caf9090594 add getOauth2Url() 2019-02-18 14:59:55 +01:00
B. Petersen db85e9479c implement DC_EVENT_HTTP_POST 2019-02-18 14:59:55 +01:00
björn petersen 8731346326 Merge pull request #729 from deltachat/deadfiles
remove dead references in gradle
2019-02-18 14:59:02 +01:00
B. Petersen 40bab74eb5 remove dead references in gradle 2019-02-18 13:11:35 +01:00
björn petersen f1c9e49f1f Merge pull request #723 from deltachat/reorder-gradle-repositories
Use Googles repositories first
2019-02-15 15:53:17 +01:00
daniel.boehrs c08116e133 Use google repositories first 2019-02-15 11:27:59 +01:00
björn petersen 1d1e57d9ca Merge pull request #721 from deltachat/fixnotification
fix crash wrt notifications
2019-02-14 23:33:11 +01:00
Angelo Fuchs 36b501e01a wording 2019-02-14 19:32:53 +01:00
B. Petersen 8f07d86087 wording 2019-02-14 18:22:37 +01:00
B. Petersen 40bfa15dea update notifications of visible thread in bg, fixes #720 2019-02-14 18:17:08 +01:00
B. Petersen a5ccd9da79 wording 2019-02-14 18:07:30 +01:00
björn petersen f146c1c966 Merge pull request #717 from deltachat/improve_gplay_text
rework description
2019-02-14 13:25:13 +01:00
holger krekel e522ae74ab another go, another refined motto and some text changes ;) 2019-02-14 11:48:24 +01:00
holger krekel b8c547f2f1 mostly take over Lenz's refinements 2019-02-13 18:45:10 +01:00
holger krekel 862a03b3a0 another version, just chatted with mor 2019-02-13 17:30:36 +01:00
björn petersen 728f909db9 Merge pull request #682 from deltachat/notification_issue_451
Notification issue 451
2019-02-13 16:33:05 +01:00
Angelo Fuchs 0d6a225991 changed 'silo' to 'centralization'
Silo is not widely used for this concept.
As "privacy by design" didn't fit after that I replaced it with "no ads"
2019-02-13 15:12:44 +01:00
holger krekel 1110b80184 fix merge accident 2019-02-13 15:00:22 +01:00
Lenz Grimmer 624f98b817 Update store/text.md
Co-Authored-By: hpk42 <holger@merlinux.eu>
2019-02-13 14:59:19 +01:00
Lenz Grimmer 9ed573f5f8 Update store/text.md
Co-Authored-By: hpk42 <holger@merlinux.eu>
2019-02-13 14:59:03 +01:00
B. Petersen 2104cae3a1 comment 2019-02-13 14:54:56 +01:00
holger krekel 5ea8216e78 better sound 2019-02-13 14:54:37 +01:00
holger krekel e742db722c yet 1-2 more points 2019-02-13 14:53:20 +01:00
holger krekel 3456cafb38 rework key points some more 2019-02-13 14:50:43 +01:00
holger krekel fc29c2902f * change short description
* address @lenzgr 's review comments
2019-02-13 14:44:36 +01:00
holger krekel f7cd7860a0 more rewording 2019-02-13 14:39:14 +01:00
holger krekel f564c9f2fc some fixes, typo fixing and a para on encryption 2019-02-13 14:30:27 +01:00
holger krekel 77c98a18cd worked on key points if we want them 2019-02-13 13:53:30 +01:00
holger krekel 503952a915 some refinements 2019-02-13 13:36:27 +01:00
holger krekel 8456051d2f rework description 2019-02-13 13:19:32 +01:00
B. Petersen 3324acd590 disable gcar for now, bump version 2019-02-13 12:03:33 +01:00
B. Petersen e501b86472 do not bother with battery-optimisation just after first start 2019-02-12 17:13:20 +01:00
B. Petersen 21be2fd69c add most recent translations to changelog 2019-02-12 16:41:03 +01:00
B. Petersen 613afa2597 comment 2019-02-12 16:22:17 +01:00
B. Petersen 5e738ef248 bump version 2019-02-12 15:43:31 +01:00
B. Petersen 478330d7e9 update translations 2019-02-12 15:34:09 +01:00
B. Petersen 742a1203df Update messenger-backend submodule. 2019-02-12 15:01:41 +01:00
B. Petersen 19da5cde8a comment 2019-02-12 13:52:28 +01:00
B. Petersen 52c9f8dd33 add application id to log 2019-02-12 13:51:52 +01:00
B. Petersen 7797f9b8a6 add gplay flavour, tackles #697 2019-02-12 13:18:33 +01:00
B. Petersen 195437d8d2 remove dead code from gradle wrt BUILD_TIMESTAMPS used in signal for expiring builds 2019-02-12 02:26:58 +01:00
B. Petersen 19e1b4bba9 update dependency verification 2019-02-12 02:06:14 +01:00
B. Petersen 805a66ea2e Update messenger-backend submodule. 2019-02-12 00:10:45 +01:00
B. Petersen ecb4c0ca33 comment, update store files 2019-02-11 16:30:16 +01:00
B. Petersen fa5a714a1a readme: update year 2019-02-10 23:30:02 +01:00
björn petersen e0e907e537 Merge pull request #711 from deltachat/notification-settings
allow changing led, vibration, sound on NotificationChannels
2019-02-10 17:37:38 +01:00
B. Petersen 72fc8b7b63 create NotificationChannel only if it does not exist 2019-02-10 16:49:46 +01:00
B. Petersen 1afbc3ecf1 allow chaning led, vibration, sound even when using NotificationChannels, closes #709 2019-02-10 16:32:22 +01:00
B. Petersen 30d5cd3c81 update translations 2019-02-10 16:27:43 +01:00
B. Petersen 56468347a7 update translations, add azerbaijani 2019-02-10 16:16:42 +01:00
B. Petersen 08d00ccf62 update translations, german 'du' -> 'die' 2019-02-10 16:08:35 +01:00
björn petersen 40e5efddbc Merge pull request #705 from deltachat/linkify
avoid ClassNotFoundException
2019-02-10 15:40:24 +01:00
björn petersen 0b970709f4 Merge pull request #696 from chklump/master
First attempt to display initial duration for audio attachements.
2019-02-10 15:12:27 +01:00
björn petersen 7c5f90d572 Merge pull request #712 from chklump/Issue_698
Group Create Issues #698
2019-02-10 15:07:08 +01:00
B. Petersen cd5aa0b9c1 update translations 2019-02-10 14:56:25 +01:00
B. Petersen 376208f9a6 Update messenger-backend submodule. 2019-02-10 14:44:06 +01:00
chklump 9a78bfe878 Fix for #698 part 2: "Me" not part of the group when clicked on "QR invite code" and no one joined. 2019-02-10 13:09:10 +01:00
chklump 16a8b21eec Fix for #698 part 1: Crash when creating new group with empty name. 2019-02-10 13:09:04 +01:00
chklump 544f19315b First attempt to display initial duration for audio attachements. 2019-02-10 00:52:23 +01:00
chklump 97e83ff7af Merge branch 'master' of https://github.com/deltachat/deltachat-android 2019-02-10 00:43:36 +01:00
björn petersen c8e19d44f2 Merge pull request #707 from deltachat/ignore-battery-optimize
ask ignoring battery-optimize, adapt to targetSdk=26
2019-02-09 15:45:16 +01:00
B. Petersen 15a2951b20 use min. importance for permanent foreground notification so that no sound is played on oreo, fixes #710 2019-02-09 02:22:56 +01:00
B. Petersen c9fc1c506f move reminder text to strings.xml 2019-02-09 01:44:32 +01:00
B. Petersen 46ac343181 define a notification channel, closes #708 2019-02-09 01:33:22 +01:00
B. Petersen 4866b5ea40 use unique icon for the permanent notification 2019-02-09 01:20:50 +01:00
B. Petersen 4d6892b991 ask the the user to disable battery-optimize if eligible; check the system setting before adding the permanent notification 2019-02-09 01:14:06 +01:00
B. Petersen d501f17525 request permission to ask the user to ignore battery-optimize 2019-02-08 17:18:10 +01:00
B. Petersen 122693d14c avoid ClassNotFoundException eg. on oreo caused by Linkify.MAP_ADDRESSES which is included in ALL 2019-02-08 13:51:25 +01:00
björn petersen 45db3b84fb Merge pull request #704 from deltachat/No_feedback_when_blocking_contact_699
No feedback when blocking contact #699
2019-02-08 13:19:56 +01:00
björn petersen c207e161b5 Merge pull request #702 from deltachat/targetSdk26
change targetSdkVersion from 25 to 26
2019-02-08 13:08:35 +01:00
björn petersen 21b875df96 Merge pull request #703 from deltachat/issue-464
Can't share with pattern set #464
2019-02-08 13:06:03 +01:00
florian.haar 35c7fc44b1 No feedback when blocking contact #699 2019-02-08 12:53:04 +01:00
daniel.boehrs 7a9d2b8e53 Can't share with pattern set #464 2019-02-08 10:40:08 +01:00
B. Petersen ba5c190072 start foreground service according to android o 2019-02-08 00:58:16 +01:00
B. Petersen de28157ebb change targetSdkVersion from 25 to 26 2019-02-08 00:14:17 +01:00
björn petersen ee5858506b Merge pull request #661 from deltachat/mapping_repositories_and_dependencies
Mapping Dependencies and Repositories
2019-02-08 00:02:47 +01:00
Angelo Fuchs 9b6d79ec07 cleaned up repository section a bit. 2019-02-07 23:53:08 +01:00
Angelo Fuchs 3fc848e5d4 comments on usage #656 2019-02-07 23:53:08 +01:00
Angelo Fuchs 39b144b40c nothing is gridlayouted. #656 2019-02-07 23:53:08 +01:00
Angelo Fuchs 08659f0450 cardview is not used. #656 2019-02-07 23:53:08 +01:00
Angelo Fuchs 58d599d236 unused library #656 2019-02-07 23:53:08 +01:00
Angelo Fuchs ca50dda682 some expaination what does what #656 2019-02-07 23:53:08 +01:00
Angelo Fuchs 5e85045d49 removed a library and replaced it with its dependency (that we actually use). #656 2019-02-07 23:53:08 +01:00
Angelo Fuchs d5ecebf304 unused library. #656 2019-02-07 23:53:08 +01:00
Angelo Fuchs 5711b52de6 this color picker is used nowhere. #656 2019-02-07 23:53:08 +01:00
Angelo Fuchs 83f2513a39 we don't pick numbers, we don't need a number picker. #656 2019-02-07 23:53:08 +01:00
Angelo Fuchs decdba5e67 working on #656 mapped out jitpack and the only dependency we get from there. 2019-02-07 23:12:13 +01:00
B. Petersen 1d0ce7ddec add purple explicitly 2019-02-07 23:11:30 +01:00
björn petersen b9bcf28955 Merge pull request #689 from deltachat/typo
fix forground typo
2019-02-07 22:46:40 +01:00
björn petersen ae97adc582 Merge pull request #695 from deltachat/qroverlay
re-add qr-code overlay logo
2019-02-06 16:08:10 +01:00
björn petersen 8d0772362f Merge pull request #694 from deltachat/tweakbuttons
tweak buttons
2019-02-06 14:05:55 +01:00
chklump ea20bf20c6 First attempt to display initial duration for audio attachements. 2019-02-02 19:21:39 +01:00
B. Petersen 2be7b9bb15 re-add qr-code overlay logo 2019-02-02 17:18:30 +01:00
B. Petersen 8456f807d5 unify color names 2019-02-02 15:53:29 +01:00
B. Petersen 6c24f9fc97 tweak button and fab colors according to the lite-color also used on desktop 2019-02-02 15:53:28 +01:00
björn petersen 44075917b7 Merge pull request #690 from deltachat/687_remove_protobuf_files
#687 remove protobuf files
2019-02-02 15:48:23 +01:00
björn petersen 9c4f670fa9 Merge pull request #693 from violoncelloCH/fix/441/disable_autocorrection_server_input
disable autocorrection on server input fields
2019-02-02 15:42:48 +01:00
B. Petersen b33b7c0c8a fix typo 2019-02-01 20:55:23 +01:00
Jonas Sulzer 8aeeb5b3fd disable autocorrection on server input fields
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2019-02-01 19:43:27 +01:00
björn petersen 15f37c8531 Merge pull request #686 from deltachat/purple_led
allowing the LED color to be purple.
2019-02-01 01:44:05 +01:00
cyBerta a421d148f3 #687 remove protobuf files 2019-02-01 01:28:18 +01:00
cyBerta 3dd9a247dd #451 hide incoming heads-up notifications as long as a thread is visible 2019-02-01 00:52:10 +01:00
Angelo Fuchs 135bc1c96c led default color now purple. 2019-02-01 00:14:22 +01:00
Angelo Fuchs d53ec6add8 allowing the LED color to be purple. 2019-01-31 17:01:33 +01:00
B. Petersen 2941d6926b fix string 2019-01-30 10:52:01 +01:00
B. Petersen f0d27b0a9f update translations 2019-01-30 09:01:14 +01:00
Angelo Fuchs 4e031e260c reducing the importance of notifications while a chat is displayed #451 2019-01-29 14:34:46 +01:00
Angelo Fuchs a6b35b2a87 removed obsolete code #451 2019-01-29 14:02:52 +01:00
Angelo Fuchs 37cf7e5a91 Merge pull request #680 from deltachat/groupicon closes #669
fix group-indicator display on searching for contacts and messages
2019-01-29 13:44:58 +01:00
B. Petersen 5f3fadf606 fix group-indicator display on searching for contacts and messages, closes #669 2019-01-29 00:07:54 +01:00
björn petersen 822bc6d6ae Merge pull request #678 from deltachat/new_issue_template
changed the wording of the issue template
2019-01-28 22:17:05 +01:00
Angelo Fuchs 4be731ac7b changed the wording of the issue template to improve the perception of what goes where 2019-01-28 22:14:38 +01:00
björn petersen 79952e4ffa Merge pull request #667 from deltachat/selfstatus
adapt signature handling to new core behavior
2019-01-28 16:29:27 +01:00
B. Petersen 04be5a4812 doc 2019-01-28 11:55:58 +01:00
B. Petersen b40b6a751a add standards.md from old repo here to satisfy some links. in general, the file should be moved to core or spec, however 2019-01-27 17:31:25 +01:00
B. Petersen 137e19639a add swedish language 2019-01-27 00:48:07 +01:00
B. Petersen a33e1d6372 update translations 2019-01-27 00:38:29 +01:00
B. Petersen b2b4a618f9 Update messenger-backend submodule. 2019-01-27 00:34:08 +01:00
holger krekel a8b400f6a2 Merge pull request #670 from deltachat/updatescreenshot
update screenshots in README.md
2019-01-26 15:09:45 +01:00
B. Petersen 1e5869bc35 update screenshots in README.md 2019-01-26 14:28:53 +01:00
B. Petersen c10a26dca0 adapt signature handling to new core behavior 2019-01-26 00:21:54 +01:00
Angelo Fuchs b47934d874 Merge pull request #659 from deltachat/fix423
read display-name from the database, not from the application-preference closes #423
2019-01-25 18:05:55 +01:00
Angelo Fuchs e1afe1bbbe Merge pull request #660 from deltachat/fix657
tweak buttons in the add-group activity
2019-01-25 15:21:49 +01:00
B. Petersen 2d961112b1 make the buttons in the add-group screenmultiline, set to same height, make as wide as possible and needed 2019-01-25 00:11:28 +01:00
B. Petersen 5afb3ecb5f read display-name from the database, not from the application-preference 2019-01-24 23:20:49 +01:00
Angelo Fuchs d14bd45e36 Merge pull request #658 from deltachat/tweak-gradle
use defaults if gradle.properties does not set the DC_* keystore values
2019-01-24 15:09:55 +01:00
B. Petersen b2a70dbbda use defaults if gradle.properties does not set the DC_* keystore values 2019-01-24 15:01:40 +01:00
B. Petersen c5bf2cd00d fix missing reference introduced by removing Google location stuff 2019-01-23 18:02:21 +01:00
B. Petersen a5ee105c00 comment 2019-01-23 17:42:47 +01:00
björn petersen 59744875ad Merge pull request #648 from deltachat/fdroid
changes for f-droid
2019-01-23 17:40:43 +01:00
B. Petersen e98b4236f0 smarter handling of key-files 2019-01-23 17:32:18 +01:00
B. Petersen 36492f70a0 remove dead code 2019-01-23 15:12:15 +01:00
B. Petersen 8a2822c7ab correct applicationId to statisfy fdroid; internally, the .beta suffix is always needed 2019-01-23 15:12:15 +01:00
B. Petersen 7e4c38a057 use only one default flavor 2019-01-23 15:12:15 +01:00
B. Petersen 04fd5cbf4d remove play service dependencies 2019-01-23 15:12:14 +01:00
B. Petersen 94c1148ada remove unused maven repo 2019-01-23 15:12:14 +01:00
B. Petersen 2958cecd18 remove suspicious url 2019-01-23 15:12:14 +01:00
B. Petersen 3b1f389797 remove unused mavenLocal() 2019-01-23 15:12:13 +01:00
B. Petersen 1d483f78bf use standard button and avoid another maven dependency 2019-01-23 15:12:13 +01:00
B. Petersen 6afcf1b4bb get ShortcutBadger from std. maven repo 2019-01-23 15:12:13 +01:00
B. Petersen 35ea8933d6 get PhotoView from jitpack.io maven repo 2019-01-23 15:12:12 +01:00
B. Petersen 2c46940d12 remove unused maven repos 2019-01-23 15:12:12 +01:00
B. Petersen 446055bfe9 changelog 2019-01-23 12:43:18 +01:00
björn petersen 9e49d1ddf5 Merge pull request #646 from deltachat/attachment-layout
swap hidden-location and file button for a smoother layout
2019-01-23 11:57:26 +01:00
björn petersen efd92dde8a Merge pull request #650 from deltachat/doc
just some doc
2019-01-23 11:57:10 +01:00
B. Petersen d156c7652a doc 2019-01-23 01:34:38 +01:00
B. Petersen 636d69f07f swap hidden-location and file button for a smoother layout 2019-01-22 22:06:19 +01:00
björn petersen 8706879bc8 Merge pull request #643 from deltachat/reduce_notification
reduces the noise of #451 by waiting 20 seconds for the second bleep …
2019-01-22 21:40:15 +01:00
björn petersen af080a6328 Merge pull request #645 from deltachat/hide_share_location
Hide share location
2019-01-22 21:38:10 +01:00
Angelo Fuchs fe573f51d6 for #414 hiding the location with better layout 2019-01-22 20:00:39 +01:00
Angelo Fuchs 6f6efc7a5a for #414 hiding the location 2019-01-22 19:58:11 +01:00
Angelo Fuchs 0954705964 Revert "first action for #414 remove all the location things."
This reverts commit 7e7a5560ef.
2019-01-22 19:49:37 +01:00
Angelo Fuchs 0b9cfac05e reduces the noise of #451 by waiting 20 seconds for the second bleep if many messages come at once. 2019-01-22 15:25:28 +01:00
björn petersen d2351e8675 Merge pull request #642 from deltachat/minor_string_changes
Minor string changes
2019-01-22 15:09:08 +01:00
Angelo Fuchs 590d7852b0 toned down language of certianity for the screenshot blocking. closes #641 2019-01-22 14:49:09 +01:00
Angelo Fuchs 9dfd2c05a7 added info for translators to make things clear in the UI. closes #417 2019-01-22 14:33:37 +01:00
Angelo Fuchs c907bc008f changed text to 'Signature' closes #416 2019-01-22 14:31:20 +01:00
Angelo Fuchs 7e7a5560ef first action for #414 remove all the location things. 2019-01-22 14:08:34 +01:00
Angelo Fuchs 170b0d86c3 replaced constant value with proper constant from original source. #417 2019-01-22 12:14:52 +01:00
B. Petersen 85253fd051 update logo, tackles #444 2019-01-22 02:44:14 +01:00
B. Petersen 0529c85033 add option to add a static certificate to the tools directory, ignore keyfiles, tackles #444 2019-01-22 02:36:29 +01:00
B. Petersen c067c2b700 remove '-dev' suffix from names, tackles #444 2019-01-22 02:34:42 +01:00
björn petersen b0d7421458 Update CHANGELOG.md 2019-01-22 02:05:13 +01:00
B. Petersen 8211d494da add initial CHANGELOG.md 2019-01-22 02:03:11 +01:00
B. Petersen 1e1ad2a20a Update messenger-backend submodule. 2019-01-22 00:32:57 +01:00
B. Petersen 600828e1f6 change deltachat-android-ii to deltachat-android; fix some lineend 2019-01-21 23:55:22 +01:00
Daniel 91be337fb6 Infoboxes look weird closes #248 (#259) 2019-01-21 14:44:46 +01:00
björn petersen 729a05ba51 Merge pull request #258 from deltachat/apkdiff
move apkdiff.py to tools directory
2019-01-21 14:32:52 +01:00
B. Petersen bae2ffc3e1 move apkdiff.py to tools directory 2019-01-21 12:32:12 +01:00
björn petersen 70ec08c5fb Update f-droid.md 2019-01-20 23:30:29 +01:00
B. Petersen 896a511473 add some info wrt f-droid handling 2019-01-20 23:17:33 +01:00
B. Petersen f795ea28e2 add release checklist 2019-01-20 22:12:52 +01:00
björn petersen 10a8cadb0f Merge pull request #255 from Ampli-fier/master
added menu_deaddrop_subtitle string
2019-01-19 22:26:14 +01:00
björn petersen edee850d8d Merge pull request #256 from chklump/Issue_#252
'OK' button in select-background enabled initially.
2019-01-19 22:22:46 +01:00
chklump 3db7466bd8 'OK' button in select-background is initially enabled doing nothing if background isn't changed 2019-01-19 18:57:55 +01:00
Ampli-fier d979c02e45 added menu_deaddrop_subtitle string 2019-01-19 17:53:45 +01:00
Ampli-fier 47d88e6372 Merge pull request #1 from deltachat/master
Updates from the master-root
2019-01-19 16:27:12 +01:00
florianhaar 00791843a9 Merge pull request #251 from deltachat/correctmenu
correct titles for 'OK' buttons
2019-01-18 14:44:03 +01:00
B. Petersen 1707a1d61b correct titles for 'OK' buttons, esp. for landscape mode, where they may become visible 2019-01-18 14:33:23 +01:00
florianhaar c534cc35e2 Merge branch 'master' of https://github.com/deltachat/deltachat-android-ii 2019-01-18 12:58:58 +01:00
florianhaar 258e885186 use ok/cancel for the login screen #225 2019-01-18 12:57:59 +01:00
daniel.boehrs 1dfc392a2c support mailto links from external apps #235 2019-01-18 11:01:33 +01:00
B. Petersen 87241bf620 Update messenger-backend submodule. 2019-01-18 02:57:00 +01:00
B. Petersen e3b15d9dbf allow entering ssl/startls flags for imap and smtp connection, closes #179 2019-01-18 02:54:21 +01:00
B. Petersen 0244d9c57f allow reverting input from registration-form, do not trim passwords and user names, tackles #179 2019-01-18 01:56:28 +01:00
B. Petersen b304e9b1bd allow settings a separate password for the smtp-server, tackles #179 2019-01-18 01:46:14 +01:00
B. Petersen fa35dfca66 remove ok-animation from profile (we're using such animations nowhere) 2019-01-18 01:00:10 +01:00
B. Petersen 63aff154fc tweak 'no messages' hint for self-chat, tackles #238 2019-01-17 16:11:06 +01:00
B. Petersen a8ee346d33 comment, closes pr #236 2019-01-17 11:52:10 +01:00
B. Petersen 850b535ff3 update translations 2019-01-16 23:38:15 +01:00
björn petersen aac62627f4 Merge pull request #234 from adbenitez/master
swapped commentaries
2019-01-16 22:20:56 +01:00
Asiel Díaz Benítez 4b0816a083 Update strings.xml 2019-01-16 15:47:52 -05:00
B. Petersen bb83c038a5 bump version 2019-01-16 18:55:45 +01:00
B. Petersen c785da3484 update translations 2019-01-16 18:33:09 +01:00
B. Petersen d7322f99d4 Update messenger-backend submodule. 2019-01-16 18:32:06 +01:00
B. Petersen e593890317 option to start a new chat from profile view, closes #232 2019-01-16 16:00:13 +01:00
B. Petersen fb5e1b633a ask before copying to clipboard for urls 2019-01-16 15:51:33 +01:00
B. Petersen 1031826382 ask before copying to clipboard 2019-01-16 15:46:47 +01:00
B. Petersen 13760a0ade do not cancel action-mode when actions are cancelled 2019-01-16 14:22:19 +01:00
B. Petersen 25c50c13b7 use default back-icons for action-modes 2019-01-16 13:50:01 +01:00
B. Petersen d53099eaa7 tweak select all ux 2019-01-16 13:38:10 +01:00
B. Petersen ec6fb9ac16 update translations 2019-01-16 00:52:06 +01:00
B. Petersen abad685f22 update translations 2019-01-16 00:39:27 +01:00
B. Petersen ef02f5a667 refined system messages 2019-01-16 00:29:26 +01:00
B. Petersen 77889ac2d6 show error if oneself is not in group 2019-01-16 00:25:26 +01:00
B. Petersen 2edbc38190 update translations 2019-01-15 14:50:43 +01:00
B. Petersen ceec16c9d5 bump version 2019-01-15 13:37:13 +01:00
B. Petersen b4a365b880 Update messenger-backend submodule. 2019-01-15 13:33:42 +01:00
B. Petersen 9e1b731dc9 mark verified groups as being experimental 2019-01-15 12:59:13 +01:00
B. Petersen b6fa7d0c6b tone down verification wording 2019-01-15 01:35:53 +01:00
B. Petersen 779457aa65 Update messenger-backend submodule. 2019-01-14 22:39:26 +01:00
B. Petersen 9bb8009e14 disable message-trimming options for now 2019-01-14 22:39:03 +01:00
B. Petersen 49f3c0de99 email-links in messages can start new chat, closes #216 2019-01-14 17:49:17 +01:00
B. Petersen f105ec4861 tweak date and archive display 2019-01-14 17:16:43 +01:00
daniel.boehrs 17900f1bf4 gallery should show sender, not groupname #206 2019-01-14 16:22:57 +01:00
daniel.boehrs 1c5e8445c9 show the extension beside the size of attachments #153 2019-01-14 15:32:56 +01:00
daniel.boehrs 05a497e558 Copy email to clipboard not working on profile view #199 2019-01-14 15:08:49 +01:00
B. Petersen 0ac0d399a0 bump version 2019-01-14 14:52:27 +01:00
B. Petersen 153214cfe9 update translations 2019-01-14 14:52:20 +01:00
B. Petersen 5c8db78657 Update messenger-backend submodule. 2019-01-14 14:33:42 +01:00
B. Petersen d30f9d1540 unify progresss dialog 2019-01-14 12:04:54 +01:00
B. Petersen 127a1c0023 allow qr-code-scanning during group creation, fixes #229 2019-01-14 01:24:24 +01:00
B. Petersen 684028d126 remove dead ADD_CONTACT code 2019-01-14 00:59:51 +01:00
B. Petersen 1dabac1b21 simplify selected-messages-action menu 2019-01-13 13:31:25 +01:00
B. Petersen df19ecb029 less flickering of action bar icons 2019-01-13 13:14:48 +01:00
B. Petersen 136b6ac483 scroll down after message-object is really added to list, closes #209 2019-01-13 02:35:03 +01:00
B. Petersen 31c9f720b1 add counter to contact selection, closes #226, tackles #37 2019-01-13 01:35:22 +01:00
B. Petersen 049918f491 show clearer error text when trying to delete members with ongoing chats, tackles #220 2019-01-13 01:10:06 +01:00
B. Petersen 54268ef699 allow canceling add-member-dialog 2019-01-13 01:09:21 +01:00
B. Petersen 84689b6740 use ok/cancel buttons on adding members, closes #224 2019-01-13 00:40:55 +01:00
B. Petersen 5c4329b104 remove dead code 2019-01-12 14:22:15 +01:00
B. Petersen ed3e804016 scale down images on sending, closes #168 2019-01-12 01:43:47 +01:00
B. Petersen 940720ef6b tweak strings 2019-01-11 23:01:54 +01:00
B. Petersen d631bab275 update translations 2019-01-11 22:03:09 +01:00
B. Petersen ddfd1eb006 remove unused colors 2019-01-11 15:54:15 +01:00
B. Petersen 6e7cd9f317 update date color 2019-01-11 15:52:41 +01:00
björn petersen abc8ca41a2 Merge pull request #212 from deltachat/qrnormalchat
show qr-invite code also for normal chats
2019-01-11 15:14:42 +01:00
B. Petersen 348f87b6a8 update translations 2019-01-11 15:13:46 +01:00
B. Petersen b31a623822 better appreviations in date strings 2019-01-11 11:53:24 +01:00
björn petersen 426de7f0cd Merge pull request #223 from deltachat/msgdate
show date beside time
2019-01-11 11:46:36 +01:00
B. Petersen 43e2d1015e instead of a flickering date header, show relative date beside time for older messages 2019-01-11 11:35:24 +01:00
B. Petersen dde56cb4d2 fix date display for chats without messages, closes #221 2019-01-11 01:00:29 +01:00
B. Petersen 7aad188885 prepare image recoding, tackles #168 2019-01-10 23:08:39 +01:00
B. Petersen 89c0d3cd06 use lower voice-message bitrate for testing, closes #218 2019-01-10 22:07:19 +01:00
B. Petersen 06d61b44b2 add hint to the solid/attr issue, tackles #219 2019-01-10 21:30:57 +01:00
B. Petersen 7dd0d0a75a simplify RationaleDialog and avoid usage of soldid/attr, tackles #215 2019-01-10 16:21:58 +01:00
B. Petersen d39dfd01e0 tweak archived-background color, tackles #219 2019-01-10 15:56:14 +01:00
Angelo Fuchs 9537389e4e #219 removing attr because pre-lollipop androids can't handle it here 2019-01-10 15:37:50 +01:00
Angelo Fuchs 4e5e81d0e7 #219 removing attr because pre-lollipop androids can't handle it here 2019-01-10 14:40:56 +01:00
B. Petersen 719f8d8047 show date when timestamp deviates, closes #116 2019-01-10 00:29:39 +01:00
B. Petersen 4906d62e7e Update messenger-backend submodule. 2019-01-10 00:26:05 +01:00
B. Petersen 644fc96198 use sort-timestamp for displaying date-headlines, fixes #217 2019-01-09 23:44:10 +01:00
B. Petersen f3af49ce24 Update messenger-backend submodule. 2019-01-09 23:42:56 +01:00
B. Petersen dcc6467291 simplify dialogs 2019-01-09 23:34:49 +01:00
B. Petersen da1844fb6f update translations 2019-01-09 16:07:59 +01:00
björn petersen 197bdefa63 Merge pull request #213 from deltachat/nomultidex
remove multidex
2019-01-09 13:22:27 +01:00
B. Petersen e250bb1460 multidex is now unneeded; remove it 2019-01-09 13:16:50 +01:00
B. Petersen 143963c2a9 update translations 2019-01-09 02:08:16 +01:00
B. Petersen 3e79719ac4 fix random crashes when events come when the context is not available 2019-01-09 01:31:00 +01:00
B. Petersen 9ff2e8839d show qr-invite code also for normal chats, tune-down verify wording a bit 2019-01-08 18:06:47 +01:00
B. Petersen c1850588ef be a bit more carful with wrong positions 2019-01-08 12:41:30 +01:00
björn petersen f61f1f153b Merge pull request #210 from deltachat/issue-100
Reduce JNI calls for #100
2019-01-08 12:36:37 +01:00
daniel.boehrs a63cd2746b Reduce JNI calls for #100 2019-01-08 10:12:09 +01:00
daniel.boehrs 096d9ca801 Hotfix for broken translation 2019-01-08 09:17:12 +01:00
B. Petersen 77d7c8e3b7 call markseen() for the messages in view only after and every 800ms 2019-01-08 01:26:51 +01:00
B. Petersen 34597a086e mark messages as seen as they scroll into view, tackles #100 2019-01-08 01:15:55 +01:00
B. Petersen d2e6d843ab remove dead code 2019-01-08 01:09:53 +01:00
B. Petersen 8ddf6cba65 remove marking whole chat as seen; only single messages are marked as seen when they scroll into view 2019-01-07 18:00:50 +01:00
daniel.boehrs a672aa02dd Creating Backup doesn't work on older phones #208 2019-01-07 13:52:03 +01:00
B. Petersen fc736cf612 show correct image borders for 'forwarded messages' on sender site 2019-01-07 13:37:48 +01:00
B. Petersen 58dc5b3881 space between sender name and text, tackles #170 2019-01-07 00:19:31 +01:00
B. Petersen 510c320f79 update translations 2019-01-06 23:02:52 +01:00
B. Petersen dabc0760ee mark forwarded messages as such, closes #74 2019-01-06 22:52:58 +01:00
björn petersen 5d01ac1c63 Merge pull request #207 from chklump/Issue_#47
Initialize the ContactSelectionListFragment from the SelectedRecipientsAdapter, tackles #47
2019-01-06 22:15:02 +01:00
chklump 27c6c3ab69 * Initialize the ContactSelectionListFragment from the SelectedRecipientsAdapter intead of from the initial group, so repeated opening, selecting and deselecting, closing cycles of the ContactMultiSelectionActivity show correct behaviour. 2019-01-06 14:38:07 +01:00
chklump e8e100a72e * Initialize the ContactSelectionListFragment with the selection from GroupCreateActivity, tackles #47.
* If contact is unselected in ContactSelectionListFragment, which was previously in the group, delete it from GroupCreateActivity, also.
2019-01-06 14:19:51 +01:00
B. Petersen 746ec37d97 bump version 2019-01-05 15:14:42 +01:00
B. Petersen 750f5ea03f nice voice-message layout 2019-01-05 15:10:52 +01:00
B. Petersen ef88256411 Update messenger-backend submodule. 2019-01-05 14:58:45 +01:00
B. Petersen 2c825d4659 update translations 2019-01-05 14:58:31 +01:00
B. Petersen 1dce4fed21 re-layout voice-messages, make them work again 2019-01-05 02:50:55 +01:00
B. Petersen ea7e89a290 add new camera-attach icon 2019-01-05 00:05:22 +01:00
B. Petersen 555ff6469d resort attach icons 2019-01-05 00:04:51 +01:00
B. Petersen 4339d80750 recolor and sort attachment icons 2019-01-04 23:49:06 +01:00
B. Petersen ea64b69437 less round corners in gallery-thumbnail-overview 2019-01-04 22:53:39 +01:00
B. Petersen b11b631426 faster search feedback 2019-01-04 22:27:16 +01:00
B. Petersen 6df76f54e2 image-edit-button in fab-style, tackles #203 2019-01-04 21:59:51 +01:00
B. Petersen 04e9dc0aec remove dead code 2019-01-04 18:38:47 +01:00
B. Petersen b2b9042fe0 typo 2019-01-04 18:10:43 +01:00
B. Petersen 90527b2373 bring the record-fab-button to foreground 2019-01-04 18:08:57 +01:00
B. Petersen 7ac37246bf update sources 2019-01-04 17:21:08 +01:00
B. Petersen 4e7e377704 add a script to pull the source from transifex (when modified eg. from desktop) 2019-01-04 17:17:34 +01:00
B. Petersen d14e59afae add hundredths to voice-recorder elapsed-time-display 2019-01-04 17:06:31 +01:00
B. Petersen 5dfc44b1dc style voice-message recording, tackles #172 2019-01-04 16:37:56 +01:00
B. Petersen dfaed72262 update translations 2019-01-04 14:31:49 +01:00
B. Petersen ee8ba0a5a5 add border below staged-image, tackles #203 2019-01-04 01:32:28 +01:00
B. Petersen 828dfd24a1 enlarge edit button, tackles #203 2019-01-04 01:12:03 +01:00
B. Petersen 502bed2f72 enlage preview from attachment staging area, fixes #202 2019-01-04 00:32:45 +01:00
B. Petersen 0d2a895057 correct bottom-borders for image-bubbles, tackles #170 2019-01-04 00:07:46 +01:00
B. Petersen 9635135e90 do not fade image bottoms to black, tackles #170 2019-01-03 19:24:16 +01:00
B. Petersen 2184d898f6 set correct delivery/lock icon colors, tackles #170 2019-01-03 17:41:39 +01:00
B. Petersen b780a9e783 simplify bubble-radius (0 is just not allowed ...) 2019-01-03 17:26:21 +01:00
B. Petersen 9fd74e71f0 sharpen bubble 2019-01-03 17:07:47 +01:00
B. Petersen 8236fdbce5 show date in mixed case 2019-01-03 15:50:05 +01:00
B. Petersen 25b6f2d477 update translations 2019-01-03 15:34:55 +01:00
B. Petersen fd9911c441 unify relative-time-strings 2019-01-03 15:29:40 +01:00
B. Petersen 1d861274e2 adjust bubble borders, tackles #170 2019-01-03 02:42:30 +01:00
B. Petersen 89824df0b9 improve inner-bubble layout, padding and line-spacing, tackles #170 2019-01-03 01:58:46 +01:00
B. Petersen 7b09020afd test subtitle for contact-requests 2019-01-03 01:19:56 +01:00
B. Petersen 855e3c5c3e allow multi-select on contact-requests, fixes #193 2019-01-03 01:10:02 +01:00
B. Petersen bd7cbf89f0 update translations 2019-01-03 00:52:34 +01:00
B. Petersen 26976aa541 clearify string 2019-01-03 00:32:03 +01:00
björn petersen 9dad64ae57 Merge pull request #198 from deltachat/getmedia
include GIF to gallery
2019-01-03 00:25:43 +01:00
B. Petersen bd2f763f22 Update messenger-backend submodule. 2019-01-03 00:25:22 +01:00
B. Petersen 181bb77c67 include GIF to gallery, adapt to new API, fixes #197 2019-01-02 16:47:53 +01:00
B. Petersen 535d61e64c update translations 2019-01-01 15:14:42 +01:00
B. Petersen 694ddebf57 bump version 2018-12-28 01:16:19 +01:00
B. Petersen efdf608484 Update messenger-backend submodule. 2018-12-28 01:13:08 +01:00
B. Petersen ed9ca3cbb4 bump version 2018-12-25 01:33:34 +01:00
B. Petersen 42556e5e32 Update messenger-backend submodule. 2018-12-24 02:34:51 +01:00
björn petersen 63217c943f Merge pull request #191 from deltachat/happyuser4
Happyuser4
2018-12-24 02:34:22 +01:00
B. Petersen 28ace84c32 fix joining a normal mailto:-qr-code 2018-12-24 02:00:08 +01:00
B. Petersen 8fa32cc4f7 refine preference ux 2018-12-24 01:51:38 +01:00
B. Petersen 4582b76e92 warn before disable-folder-watching, mainly to avoid accidential taps 2018-12-23 14:56:29 +01:00
B. Petersen 66ea30f75e make new folder options work 2018-12-23 02:38:33 +01:00
B. Petersen 87192dca99 update translations 2018-12-23 02:09:49 +01:00
B. Petersen 35e449b048 wording 2018-12-22 00:21:42 +01:00
daniel.boehrs 90775da352 Endless loop when enabling screen lock option #181 2018-12-21 13:08:16 +01:00
daniel.boehrs 3a7686471a call "markseen" on messages scrolled into view #100 2018-12-21 11:01:26 +01:00
B. Petersen 13765df3ee add options to watch inbox and sentbox 2018-12-21 00:34:45 +01:00
B. Petersen f01b67c07b update translations 2018-12-20 22:29:39 +01:00
B. Petersen 756f36101f note that the heuristic part is not yet implemented 2018-12-20 17:28:33 +01:00
B. Petersen b46bc99aad add mvbox options, remove forcing e2ee 2018-12-20 17:19:50 +01:00
B. Petersen d593096d92 show version number more visible 2018-12-20 16:36:06 +01:00
B. Petersen 354fea7da2 Update messenger-backend submodule. 2018-12-20 16:13:03 +01:00
B. Petersen 9f6a26713c Update messenger-backend submodule. 2018-12-20 02:20:47 +01:00
B. Petersen fe89841407 bump version 2018-12-20 02:20:33 +01:00
B. Petersen 698763c544 Update messenger-backend submodule. 2018-12-20 01:44:35 +01:00
B. Petersen 8f540d01fa add dc_move.c 2018-12-20 01:44:20 +01:00
B. Petersen 4d12385cb7 update translations 2018-12-20 00:19:04 +01:00
B. Petersen 7962e880ef update translations 2018-12-19 02:49:36 +01:00
B. Petersen d752a111fc update translations 2018-12-18 21:32:52 +01:00
björn petersen 5e8c20e30f Merge pull request #178 from adbenitez/master
fixed qrshow_join_contact_hint on strings.xml
2018-12-18 21:18:55 +01:00
Asiel Díaz Benítez a70b1be603 fixed qrshow_join_contact_hint on strings.xml 2018-12-18 14:48:38 -05:00
B. Petersen 3bde0cbe78 Update messenger-backend submodule. 2018-12-18 00:24:22 +01:00
B. Petersen 6544b221fd bump version 2018-12-17 23:41:42 +01:00
B. Petersen 40675fa774 remove SIGNAL_* buildConfigField's 2018-12-17 23:41:22 +01:00
B. Petersen 60d79021bf Update messenger-backend submodule. 2018-12-17 23:33:10 +01:00
B. Petersen 7cda8c0101 update translations 2018-12-17 20:14:09 +01:00
B. Petersen 7bafff0ba7 Update messenger-backend submodule. 2018-12-17 20:12:42 +01:00
B. Petersen 5529acf36b remove language_name string resource, closes #177 2018-12-17 20:02:41 +01:00
björn petersen 0f6d5e3dcd Merge pull request #174 from deltachat/happyuser
adapt to new mvbox api
2018-12-17 16:55:02 +01:00
B. Petersen 71f4a55a0d Update messenger-backend submodule. 2018-12-17 16:53:43 +01:00
B. Petersen 75dc1e1527 adapt to new mvbox api 2018-12-17 16:28:35 +01:00
björn petersen e663df903e Merge pull request #176 from adbenitez/master
Fixed ask_block_contact and ask_unblock_contact
2018-12-17 16:27:52 +01:00
Asiel Díaz Benítez f1513f7e47 Fixed ask_block_contact and ask_unblock_contact
Just removed the "calls" stuff and fixed some previous accidental removal while trying to fix this same issue.
2018-12-17 09:52:31 -05:00
Florian Haar fd36ceb847 right align lock/time/deliveryInfo in images #99 fix 2018-12-17 14:51:28 +01:00
B. Petersen 6fde63f0b2 wording, tackles #74 2018-12-17 14:06:07 +01:00
Florian Haar ed6fabe99f Merge branch 'master' of https://github.com/deltachat/deltachat-android-ii 2018-12-17 14:02:13 +01:00
Florian Haar 1876e56e23 right align lock/time/deliveryInfo in images #99 2018-12-17 14:00:41 +01:00
daniel.boehrs 3122759c91 Fixed transitions #147 2018-12-17 13:13:50 +01:00
daniel.boehrs 19f5a54ad2 Merge branch 'master' of https://github.com/deltachat/deltachat-android-ii 2018-12-17 11:29:28 +01:00
daniel.boehrs 1c6b7fe58f share with Delta #147 #74 2018-12-17 11:29:18 +01:00
Florian Haar 880421fd6f Status Text in Settings can not be empty #156 2018-12-17 10:35:36 +01:00
daniel.boehrs a73a7b28de HOTIFX Fix broken build due to HTML tags inside translation file 2018-12-17 10:10:12 +01:00
B. Petersen bd8217196f update translations 2018-12-16 21:48:48 +01:00
B. Petersen 54140476bf update translations 2018-12-16 21:47:52 +01:00
B. Petersen 78fa449e99 add italian language 2018-12-15 15:20:41 +01:00
B. Petersen a7f26560fe update translations 2018-12-15 15:11:53 +01:00
B. Petersen fb14484944 update translations 2018-12-15 04:01:02 +01:00
B. Petersen ed30a16cc3 remove html constraints from source strings 2018-12-15 00:59:13 +01:00
björn petersen 3136245693 Merge pull request #173 from ralphtheninja/master
Fix typo
2018-12-15 00:17:35 +01:00
Lars-Magnus Skog 98e42e6208 Fix typo 2018-12-14 23:59:56 +01:00
B. Petersen d7e29abce6 update translations 2018-12-14 23:57:35 +01:00
B. Petersen fbefdcf127 simplify ThreadRecord 2018-12-14 23:46:51 +01:00
B. Petersen a26f48f4f3 fix typos in source strings 2018-12-14 22:17:21 +01:00
B. Petersen 96d2a69fdb update translations 2018-12-14 21:51:04 +01:00
B. Petersen 10ec1cad26 fix wording 2018-12-14 21:38:55 +01:00
B. Petersen ad0da65727 update translations, add danks 2018-12-14 17:26:14 +01:00
B. Petersen a4c0f62005 refine some wordings, tackles https://github.com/deltachat/deltachat-desktop/issues/423 2018-12-14 17:14:22 +01:00
B. Petersen 8c1fbc0ae9 remove dead code 2018-12-13 16:37:02 +01:00
B. Petersen 3b193c35d9 Update messenger-backend submodule. 2018-12-13 15:09:20 +01:00
B. Petersen aab44755aa add 'dev' to app_name (was removed by reworking strings, we do not want temporary names in the tx repos) 2018-12-13 15:08:55 +01:00
B. Petersen 582b5d035b bump version 2018-12-13 15:02:32 +01:00
B. Petersen 4458577927 colored sender names in groups, tackles #170 2018-12-13 14:57:40 +01:00
B. Petersen cdf2aad98e simplify color handling 2018-12-13 14:41:32 +01:00
B. Petersen 6bc11ed1c0 simplify Recipient handling 2018-12-13 14:08:41 +01:00
B. Petersen c09333d5d6 use delta colors for the avatars in the notification area, remove dead code wrt colors 2018-12-13 13:27:53 +01:00
B. Petersen b9c43c7b6a update translations 2018-12-13 02:45:36 +01:00
B. Petersen 0401b2a0d9 clearify add-language instructions 2018-12-13 02:44:44 +01:00
B. Petersen 2ceb5e11bf update translations 2018-12-13 02:39:23 +01:00
B. Petersen 3d9345ed87 typo 2018-12-13 01:58:42 +01:00
B. Petersen 5af3284e06 add script to add a new language and base scripts to be called from the repo root 2018-12-13 01:55:07 +01:00
B. Petersen bc987a4591 Update messenger-backend submodule. 2018-12-13 01:54:12 +01:00
B. Petersen f3366681d0 add missing core-strings 2018-12-12 23:12:49 +01:00
B. Petersen 0ad2916bcf pimp search results 2018-12-12 21:23:32 +01:00
B. Petersen e4c564ace4 adjust app name, init transifex 2018-12-12 18:10:26 +01:00
björn petersen e90ab537d3 Merge pull request #171 from deltachat/transl
rework translations
2018-12-12 17:56:46 +01:00
B. Petersen defac037de rework strings 2018-12-12 17:55:08 +01:00
B. Petersen 33f07b584b remove unused strings and ids, remove translations for now 2018-12-11 23:31:58 +01:00
B. Petersen 6efbd89674 remove unused share menu; for creation of a new chat, the known floating button should be used 2018-12-11 22:49:49 +01:00
B. Petersen c7e37d153d set correct locale in share activity fragment, fixes crash in #147 2018-12-11 22:41:22 +01:00
B. Petersen 2021979d8e remove unused resources: styles 2018-12-11 22:11:42 +01:00
B. Petersen 5b8383dac3 remove dead code and unused resources wrt group creation 2018-12-11 21:55:09 +01:00
B. Petersen 0b05b954f7 remove unused resources: colors, authenticator, dimensions 2018-12-11 21:35:07 +01:00
B. Petersen 0376acb5ae remove unused google playstore strings 2018-12-11 21:34:25 +01:00
B. Petersen 17dc8cebca remove unused resources detected by lint 2018-12-11 16:45:09 +01:00
B. Petersen 33747e7a41 remove unused resources detected by lint 2018-12-11 14:49:32 +01:00
B. Petersen 99b1703097 remove unused resources detected by lint 2018-12-11 14:22:22 +01:00
B. Petersen a14547ce42 remove unused resources: message refresh 2018-12-11 14:11:25 +01:00
B. Petersen d682084542 remove unused resources: videocam 2018-12-11 14:04:08 +01:00
B. Petersen 9813f01da8 remove unused resources: block, visibility, misc 2018-12-11 13:54:46 +01:00
B. Petersen 27cfc39786 remove unused resources: menu, face 2018-12-11 13:38:54 +01:00
B. Petersen 86914bf4fc remove unused resources: dashboard, devices 2018-12-11 13:10:09 +01:00
B. Petersen 1f9bd90eae remove unused resources: textsms, laptio, video splash, message, signal 2018-12-11 13:05:11 +01:00
B. Petersen 9edbc23207 remove unused resources: document download button 2018-12-11 11:36:38 +01:00
B. Petersen e425533d68 remove unused resources: bluetooth, fingerprint, database, transfer controls 2018-12-11 11:30:52 +01:00
B. Petersen 451f03a6a8 remove unused resources: lockscreen, dialpad, profile splash 2018-12-11 11:19:38 +01:00
B. Petersen 1c76562fc6 remove unused resources: timer, call icons 2018-12-11 11:13:02 +01:00
B. Petersen 94592d46ae remove dead code 2018-12-11 02:56:26 +01:00
B. Petersen a02dde5d51 remove unused resources 2018-12-11 01:40:57 +01:00
B. Petersen 73359fba7d cleanup gradle 2018-12-11 01:12:26 +01:00
B. Petersen f65ac4d604 remove unused squareup/dagger and okhttp dependencies 2018-12-11 01:04:30 +01:00
B. Petersen a469713fbc remove dependency to signal-protocol, closes #138 2018-12-11 00:56:08 +01:00
B. Petersen c781f3b9a4 remove complicated dependencies for tiny appendInt() to array 2018-12-11 00:53:04 +01:00
B. Petersen 87e1937381 remove dependency to google's phonenumers library, tackles #138 2018-12-11 00:23:58 +01:00
B. Petersen cf45c566ba remove tiny dependency to spongycastle/bouncycastle 2018-12-11 00:02:48 +01:00
B. Petersen 612dab112c remove dead code 2018-12-10 23:55:58 +01:00
B. Petersen 1d7bf82b18 add logger from external source here 2018-12-10 23:12:08 +01:00
B. Petersen 55ca2d0ef6 use deltachat-yyyy-MM-dd-HHmmss as a fallback file name, closes #115 2018-12-10 22:30:22 +01:00
B. Petersen 3542455e2a bump version 2018-12-10 17:53:56 +01:00
B. Petersen 2217ce6788 add global information to log, closes #108 2018-12-10 17:36:50 +01:00
B. Petersen 6e48c126fa more logic appearance-preference-order 2018-12-10 17:16:22 +01:00
B. Petersen 177288a8d4 do not open unused deaddrop profile, closes #131 2018-12-10 17:11:58 +01:00
B. Petersen 229ede09f1 do not truncate text to sms-like-sizes, closes #169 2018-12-10 17:04:26 +01:00
B. Petersen e9de6f7e40 rework log handling, no log uploading to foreign servers, closes #119 2018-12-10 15:54:54 +01:00
B. Petersen ce0c181489 remove unused OkHttp 2018-12-10 02:15:31 +01:00
B. Petersen 4e73f4cd0a remove UpdateApk for now as it uses dependecies to signal-http we want to get rid of 2018-12-10 01:57:18 +01:00
B. Petersen 890052d018 remove HourglassView and other probably dead code 2018-12-10 01:28:55 +01:00
B. Petersen 46a7159c5a remove dead code and layouts, remove webrtc 2018-12-10 01:04:25 +01:00
B. Petersen cc94b66799 remove unneeded DisplayMode 2018-12-10 00:43:44 +01:00
B. Petersen 3e4bf6a4a7 remove curve25519 java-dependency 2018-12-10 00:14:20 +01:00
B. Petersen 5dfc54bd43 allow editing name of contact, closes #166 2018-12-10 00:07:58 +01:00
B. Petersen db99a1da6c show encryption info, closes #167 2018-12-09 23:54:52 +01:00
B. Petersen c3c110b55a remove dead code 2018-12-09 22:46:02 +01:00
B. Petersen 31d4e5260f add missing components to profile activity 2018-12-09 21:53:05 +01:00
B. Petersen 109d49668f use DcEventCenter in RecipientPreferenceActivity 2018-12-09 21:12:40 +01:00
B. Petersen 5f13330a8e set avatar-click-handler only if needed, tackles #30 2018-12-09 13:52:38 +01:00
B. Petersen 6503469686 remove unneeded LoaderManager indirection 2018-12-09 13:46:24 +01:00
B. Petersen 9acef33db9 hide unused items from contact profile, tackles #30 2018-12-09 13:22:20 +01:00
B. Petersen 70c44c3efc show contact profile on contact-avatar-click in groups, tackles #30 2018-12-09 12:53:01 +01:00
B. Petersen bb8d4b2ef9 remove sqlite dependency 2018-12-09 03:39:01 +01:00
B. Petersen efb0f31387 remove unneeded persistent jobs 2018-12-09 03:30:44 +01:00
B. Petersen 7fd90ca5d6 remove unneeded parameters from Job object 2018-12-09 03:22:11 +01:00
B. Petersen 9f01b780c7 Update messenger-backend submodule. 2018-12-09 03:06:35 +01:00
B. Petersen 2738251be9 do not create or use signal.db, closes #144 2018-12-09 03:03:14 +01:00
B. Petersen 2ecd6bed8d do not try to load MediaRecord from AttachmentDatabase 2018-12-09 02:50:55 +01:00
B. Petersen 858747149a remove dead code, forward reply-event 2018-12-09 02:43:15 +01:00
B. Petersen b166f1e4fd remove dead code 2018-12-09 02:33:41 +01:00
B. Petersen b34cbc2b88 remove PartDataSource 2018-12-09 02:15:11 +01:00
B. Petersen efb640fb91 remove unneeded PartProvider 2018-12-09 02:04:40 +01:00
B. Petersen db7fcf81d8 make video playback work, closes #152 2018-12-09 01:03:22 +01:00
björn petersen 87f887fe3f Merge pull request #157 from deltachat/clean_out_signal_database
[wip] Clean out signal database
2018-12-08 23:46:33 +01:00
B. Petersen 5da75c7dd0 remove AttachmentDatabase loadings from PartAuthority 2018-12-08 18:22:08 +01:00
B. Petersen a945e659f5 fix crash in MediaOverviewActivity 2018-12-08 18:21:30 +01:00
B. Petersen bcf460eefd Remove GroupDatabase, RecipientDatabase from DatabaseFactory 2018-12-08 17:50:16 +01:00
B. Petersen 496d7ea8a0 remove RecipientsAdapter and belonging functions 2018-12-08 16:35:48 +01:00
Angelo Fuchs 68a5d887c5 #138 removing ThreadDatabase and link from DatabaseFactory to MediaDatabase 2018-12-08 16:18:08 +01:00
Angelo Fuchs dc22c9ef22 #138 removing Mms and Sms Database 2018-12-08 16:18:07 +01:00
Angelo Fuchs 8588765dc7 #138 removing MmsSmsDatabase 2018-12-08 16:18:07 +01:00
B. Petersen f49226d335 tweak 'archived' label 2018-12-08 01:36:59 +01:00
daniel.boehrs 575c815c97 Sharing and forwarding to chats #74 #147 2018-12-07 13:33:47 +01:00
daniel.boehrs 392d6df2c8 Fixed typo 2018-12-07 10:31:32 +01:00
daniel.boehrs 911ed8919a Merge branch 'master' of https://github.com/deltachat/deltachat-android-ii 2018-12-07 10:30:50 +01:00
daniel.boehrs 9dd344e6b7 implement "attach contact" #148 2018-12-07 10:30:08 +01:00
Florian Haar f31817c0a1 Merge branch 'master' of https://github.com/deltachat/deltachat-android-ii 2018-12-07 08:41:49 +01:00
Florian Haar 823217c593 Added default image as default on preferences screen #50 2018-12-07 08:41:21 +01:00
daniel.boehrs 8517570014 Removed patches folder #151 2018-12-07 08:22:48 +01:00
B. Petersen 155bcd42ea round borders for date/system messages 2018-12-06 20:25:51 +01:00
B. Petersen 245982d111 make date and system messages more visible, closes #98 2018-12-06 19:36:35 +01:00
B. Petersen 323ed1b79f adapt default background 2018-12-06 17:54:49 +01:00
B. Petersen 18b4363e83 remove dead code 2018-12-06 17:26:54 +01:00
B. Petersen f30a18422f set bubble foreground colors 2018-12-06 16:31:04 +01:00
B. Petersen d4f5732496 set bubble background color 2018-12-06 16:09:34 +01:00
B. Petersen ada9377a37 use new colors in profile 2018-12-06 15:16:34 +01:00
B. Petersen ef0eb15034 Update messenger-backend submodule. 2018-12-05 20:17:05 +01:00
björn petersen 71ac87c50e Merge pull request #158 from deltachat/colors
addapt to new color api
2018-12-05 20:16:37 +01:00
B. Petersen 84957ace38 addapt to new color api 2018-12-05 16:10:16 +01:00
B. Petersen 77f436c871 bump version 2018-12-04 15:26:19 +01:00
B. Petersen b8b94265a1 Update messenger-backend submodule. 2018-12-04 15:11:22 +01:00
Angelo Fuchs c80cca5cb9 #152 autodiscover unknown mimetypes. 2018-12-04 12:30:18 +01:00
B. Petersen 4a258ee155 remove dead code 2018-12-04 01:11:03 +01:00
B. Petersen e03a78d6a9 remove dead code 2018-12-04 01:00:29 +01:00
björn petersen 58a4bef619 Merge pull request #155 from deltachat/search
implement global search
2018-12-04 00:51:51 +01:00
B. Petersen 48b3982a9e make clicks on search result work 2018-12-04 00:50:54 +01:00
B. Petersen 83d42f689f move recipient dependency to local var 2018-12-04 00:18:37 +01:00
B. Petersen ec094dbd3d do search for chats, contacts, messages 2018-12-04 00:14:40 +01:00
B. Petersen d89540d798 adapt basic search functions 2018-12-03 19:22:30 +01:00
Angelo Fuchs 89355667c3 reformat at two spaces. 2018-12-03 15:02:55 +01:00
Angelo Fuchs fb6b30185d removing unused icon closes #154 2018-12-03 12:32:13 +01:00
B. Petersen c2bc362cb3 remove unneeded permission for global search, tackles #24 2018-12-03 04:22:24 +01:00
B. Petersen e7b2a63e39 remove dead database code 2018-12-03 01:22:49 +01:00
B. Petersen 9835021582 remove dead database code 2018-12-03 00:58:31 +01:00
B. Petersen a190897dfe handle image, gif, audio, video, document and text drafts, closes #73 2018-12-03 00:49:12 +01:00
B. Petersen a37dc03324 save complex draft, async draft saving+message sending 2018-12-01 19:00:29 +01:00
B. Petersen be30da8821 simplify checking for empty messages 2018-12-01 17:45:31 +01:00
B. Petersen 91a9363d20 remove separate sendTextMessage function 2018-12-01 17:35:56 +01:00
B. Petersen 5d235341f8 prepare for unique sendMessage function 2018-12-01 17:23:46 +01:00
B. Petersen eb1773799c remove one recusion on message sending 2018-12-01 16:07:57 +01:00
B. Petersen caef11536b correct logic error on filename generation 2018-12-01 09:48:22 +01:00
B. Petersen b641a72de4 remove even more dead contact sharing code 2018-12-01 00:49:31 +01:00
B. Petersen 5a530ca258 remove dead contact sharing code 2018-12-01 00:05:38 +01:00
B. Petersen f0a7f54025 group send-functions together 2018-11-30 23:32:32 +01:00
B. Petersen 5f159e1d4d cleanup ConversationActivity 2018-11-30 17:56:39 +01:00
B. Petersen 5aa526d979 remove unused dependency to pl.tajchert:waitingdots 2018-11-30 17:36:01 +01:00
B. Petersen 7879f9c22d remove unused apn database and tools 2018-11-30 16:50:27 +01:00
B. Petersen 17399f08e5 remove remaining giphy helpers, tackles #149 2018-11-30 16:02:43 +01:00
B. Petersen 868678b91d rearrange attach-buttons in attach-drawer so that the gap is less disturbing, tackles #149 2018-11-30 16:01:33 +01:00
B. Petersen ef11e1beb2 fill DcContact.getProfileImage() with life 2018-11-30 14:51:41 +01:00
B. Petersen d608f72599 Update messenger-backend submodule. 2018-11-30 14:00:18 +01:00
daniel.boehrs 3417cf428b remove giphy #149 2018-11-30 13:32:37 +01:00
B. Petersen 2a6609e76e Merge branch 'master' of https://github.com/deltachat/deltachat-android-ii 2018-11-30 11:53:21 +01:00
B. Petersen 6f19f922c6 Update messenger-backend submodule. 2018-11-30 11:53:10 +01:00
daniel.boehrs ba7bedb789 Fix naming #148 2018-11-30 11:33:18 +01:00
daniel.boehrs df55c901f0 implement "attach contact" #148 2018-11-30 11:30:11 +01:00
B. Petersen f90d1d6306 remove dead code 2018-11-30 07:26:33 +01:00
björn petersen e7ba46273e Merge pull request #150 from deltachat/profileimage
prefer delta profile image over system profile image
2018-11-30 07:20:34 +01:00
B. Petersen f2cecff741 prefer delta profile image over system profile image 2018-11-30 06:54:59 +01:00
B. Petersen e840e3bcbd remove dead code 2018-11-29 15:26:48 +01:00
B. Petersen bf4053d093 Update messenger-backend submodule. 2018-11-29 01:13:57 +01:00
B. Petersen 1750c07f4d handle text drafts, tackles #73 2018-11-29 01:13:46 +01:00
B. Petersen 983ee6bb80 remove TextSecurePreferences to Prefs which is more handy and has no branding 2018-11-28 16:52:04 +01:00
B. Petersen 7a33f75ba5 remove dead code 2018-11-28 16:50:16 +01:00
B. Petersen df5f3ded29 remove expiring messages manager 2018-11-28 02:00:18 +01:00
B. Petersen 96e1a19b4c remove unused profile sharing 2018-11-28 01:44:27 +01:00
B. Petersen fce4a4267a allow chat-specific ringtones and vibrations 2018-11-28 01:32:14 +01:00
B. Petersen dd8c869eb6 Update messenger-backend submodule. 2018-11-28 00:00:41 +01:00
B. Petersen 126b730f7e allow muting chats and show the state, closes #146 2018-11-27 23:58:07 +01:00
B. Petersen c0e365d2c7 remove dead code 2018-11-27 23:30:31 +01:00
B. Petersen 1f29102176 set name for requestCode 2018-11-27 22:22:36 +01:00
B. Petersen 676308a6fb remove dead code wrt quotes 2018-11-27 17:40:15 +01:00
B. Petersen ba635754ed remove dead code 2018-11-26 23:38:55 +01:00
B. Petersen 01de3d1599 remove dead code 2018-11-26 23:34:56 +01:00
B. Petersen ebcfd61e9a remove unverified|untrusted dialogs|banner 2018-11-26 23:08:26 +01:00
B. Petersen 38218d1846 remove dead code 2018-11-26 22:54:17 +01:00
B. Petersen 01b078cd38 disable doze reminder for now 2018-11-26 22:36:08 +01:00
B. Petersen 7f3f8451c3 remove signal's master key 2018-11-26 22:24:16 +01:00
B. Petersen ffe0f2b22d remove KeyCachingService completely 2018-11-26 22:09:28 +01:00
Daniel 44269cc6bb Merge pull request #140 from deltachat/keycache
remove unused functionality from KeyCachingService
2018-11-26 15:47:19 +01:00
daniel.boehrs eb4be81dce disallow multi select #101 2018-11-26 14:49:15 +01:00
daniel.boehrs a69d99dc7a allow unblocking contacts #101 2018-11-26 14:13:13 +01:00
daniel.boehrs d028ce34b0 Importing system contacts seems broken #134 2018-11-26 13:31:39 +01:00
B. Petersen f8affc698e remove dependencies from KeyCachingService 2018-11-26 02:08:43 +01:00
B. Petersen f84e468402 remove unused functionality from KeyCachingService 2018-11-26 01:56:43 +01:00
B. Petersen 2632117a34 remove dead code 2018-11-26 01:35:36 +01:00
B. Petersen 80dc9f2bd4 remove unused locked-flag 2018-11-26 01:17:35 +01:00
B. Petersen bf122cdb6b remove unneeded passphrase activities 2018-11-26 00:45:27 +01:00
B. Petersen 4f5b43579b move helper-classes from org.whispersystem here, tackles #138 2018-11-26 00:36:35 +01:00
B. Petersen b379dafbb5 remove sleep() dependecy to org.whispersystems:signal-service-android, tackles #138 2018-11-25 23:48:08 +01:00
B. Petersen 8fffcf9c80 remove group-db dependecy to org.whispersystems:signal-service-android, tackles #138 2018-11-25 23:41:21 +01:00
B. Petersen ef7fdee701 Merge branch 'master' of https://github.com/deltachat/deltachat-android-ii 2018-11-25 23:35:49 +01:00
B. Petersen 48b98150dc remove db dependecy to org.whispersystems:signal-service-android, tackles #138 2018-11-25 23:35:35 +01:00
B. Petersen af97da38da remove attachment/slider dependecy to org.whispersystems:signal-service-android, tackles #138 2018-11-25 23:23:34 +01:00
B. Petersen 39ad881eb2 remove dependecy to org.whispersystems:signal-service-android, tackles #138 2018-11-25 23:16:04 +01:00
B. Petersen 0bcec8ba44 remove group dependecy to org.whispersystems:signal-service-android, tackles #138 2018-11-25 23:07:47 +01:00
B. Petersen 8eb5b33aec show draft-title in chatlist 2018-11-25 22:44:01 +01:00
B. Petersen 612d7aa2b2 do not display empty messages as 'media messages' 2018-11-25 22:03:59 +01:00
B. Petersen 1927961002 remove signalservice-specific code 2018-11-25 13:56:37 +01:00
B. Petersen 2417ac06c4 allow saving attachments, closes #137 2018-11-25 13:20:22 +01:00
B. Petersen 3340df3cc7 cleanup StorageUtil 2018-11-25 13:01:35 +01:00
B. Petersen e3becf575a wording 2018-11-25 12:44:41 +01:00
B. Petersen 1363e56014 Update messenger-backend submodule. 2018-11-23 15:03:09 +01:00
Angelo Fuchs df37936ca9 cleanup: apk produced by gradle is now called 'Deltachat' instead of 'Signal' 2018-11-22 13:58:39 +01:00
Angelo Fuchs 7b6af2557d ignored git swap files. 2018-11-22 10:59:46 +01:00
daniel.boehrs f2b1967831 allow unblocking contacts #101 2018-11-21 15:20:14 +01:00
B. Petersen d305c61645 rm outdated BUILDING.md, refer to README.md for build instructions 2018-11-20 23:52:07 +01:00
B. Petersen ded1ad56a7 remove now unneeded dependecy-injector-classes 2018-11-20 23:06:50 +01:00
B. Petersen b8da4bc9c7 bump version 2018-11-20 18:56:38 +01:00
B. Petersen b83b2e9e29 Update messenger-backend submodule. 2018-11-20 18:50:28 +01:00
Angelo Fuchs 7f97bd0ea9 closes #114 when a user taps a picture or document (or the non-player segment of an audio message) he is asked if he wants to engage in a chat, just like he would if tapping a text. 2018-11-20 14:46:48 +01:00
Angelo Fuchs f0abb05e0a removed double filtering of messages. closes #128 - If there are new messages that only belong to one group the senders are now shown properly if the messages should be hidden. 2018-11-20 12:22:24 +01:00
Angelo Fuchs 7db7c5beeb proper handling of events in the background threads #128 2018-11-20 11:51:24 +01:00
Angelo Fuchs 50e22ddcc9 changing the display for multi-sender notifications for groups #128 2018-11-19 15:23:14 +01:00
Angelo Fuchs 85e2203244 notifications are now recreated once on startup of the app (e.G. after a restart of the phone). 2018-11-19 12:22:06 +01:00
Angelo Fuchs 7b2ef54922 notifications are now updated when a chat is seen #128 2018-11-19 11:22:27 +01:00
Angelo Fuchs 4043338f90 selecting chat background #50 for lower SDK versions. 2018-11-19 11:21:55 +01:00
Angelo Fuchs 269cb006c4 Update messenger-backend submodule. 2018-11-19 09:53:03 +01:00
B. Petersen 3daaa51d13 update issue-template 2018-11-17 23:51:52 +01:00
B. Petersen 099f3ad109 Update messenger-backend submodule. 2018-11-16 12:18:28 +01:00
B. Petersen 91ec15330b no interrupt-idle an activity starting, seems too much 2018-11-16 12:18:09 +01:00
Florian Haar 7a5f382315 Allow for customized Background image #50 2018-11-16 08:41:39 +01:00
B. Petersen 0cfc61fde9 handle DC_EVENT_ERROR_NETWORK, closes #129 2018-11-16 00:08:49 +01:00
B. Petersen 0a060fbb74 Update messenger-backend submodule. 2018-11-15 23:23:26 +01:00
B. Petersen 8a8034c33e tweak imap-thread 2018-11-15 16:38:33 +01:00
Angelo Fuchs 313e67fa57 multiple different senders in a chat are now distinguished #128 2018-11-15 12:13:41 +01:00
B. Petersen 0613b879fe remove dead code: BackoffReceiver, MmsBodyProvider 2018-11-15 02:26:36 +01:00
B. Petersen 155e748bd1 remove some verbose logging 2018-11-15 02:25:15 +01:00
B. Petersen 40e57b3286 remove header boilerplate 2018-11-15 02:11:44 +01:00
B. Petersen 90bf08845b remove dead code 2018-11-15 02:03:48 +01:00
B. Petersen 328132e041 adapt permissions 2018-11-15 01:55:53 +01:00
B. Petersen baec8d229d remove dead close: telephony 2018-11-15 01:32:57 +01:00
B. Petersen 740c7bd210 format 2018-11-15 01:17:40 +01:00
B. Petersen 032c38b3d7 remove dead code: sms 2018-11-15 01:15:15 +01:00
B. Petersen 2fbcf3f7f9 ignore warning that the apk is not searchable; this is a feature :) 2018-11-15 01:13:45 +01:00
B. Petersen 4a811d4f37 remove dead code: sms 2018-11-15 00:59:32 +01:00
B. Petersen 1f9ae91488 remove dead code: AccountAuthenticator 2018-11-15 00:49:51 +01:00
B. Petersen 3e76970257 remove dead code: verify identity 2018-11-15 00:00:46 +01:00
B. Petersen f022088ed9 remove dead code 2018-11-14 23:56:42 +01:00
B. Petersen e60c143a42 remove dead code: signal registration service 2018-11-14 23:44:01 +01:00
B. Petersen 5861ca14d6 remove no unused injections 2018-11-14 22:58:05 +01:00
B. Petersen 99f5948fc7 use DcContext.sendMsg() instead of MessageSender 2018-11-14 18:19:34 +01:00
B. Petersen c2e9ba3763 implement reply-from-notification, closes #126 2018-11-14 18:06:13 +01:00
B. Petersen 9743011f25 remove now unused greenrobot.eventbus 2018-11-14 17:56:07 +01:00
B. Petersen 7fb244b0be remove dead code 2018-11-14 17:36:47 +01:00
B. Petersen a79a33751b remove dead code 2018-11-14 17:28:27 +01:00
B. Petersen 1f4ccc2944 rework MessageRetrievalService into KeepAliveService 2018-11-14 17:12:59 +01:00
B. Petersen 7776939716 remove dead code: gcm receiver 2018-11-14 15:10:55 +01:00
B. Petersen d9810443fc remove dead code: SignalCommunicationModule and releated jobs and classes 2018-11-14 14:57:32 +01:00
B. Petersen 17d01b27f2 webrtc: remove dead code 2018-11-14 14:01:15 +01:00
B. Petersen fd2e034f13 webrtc: remove dependency from MessageNotifier 2018-11-14 14:01:01 +01:00
björn petersen 361e153605 Merge pull request #125 from deltachat/connect
connect permanently
2018-11-14 03:39:48 +01:00
B. Petersen 564915ab9f add out boot receiver 2018-11-14 03:37:55 +01:00
B. Petersen 69a887fe61 Update messenger-backend submodule. 2018-11-14 03:28:50 +01:00
B. Petersen e6020f9707 use permanent notification to keep threads alive 2018-11-14 03:28:25 +01:00
B. Petersen b2ee6320f4 remove header boilerplate 2018-11-14 00:12:51 +01:00
B. Petersen 98af653204 add network state receiver and call dc_maybe_network() on re-connect 2018-11-14 00:09:44 +01:00
B. Petersen 56527d3f3f remove signal's network state receiver 2018-11-13 23:55:03 +01:00
B. Petersen 1355f59a94 add a timer to restart smtp- and imap-threads if needed 2018-11-13 23:32:08 +01:00
B. Petersen c02df7a370 remove signals exponential backoff 2018-11-13 23:07:06 +01:00
B. Petersen 89e8e80665 adapt to new API, use lambda for threads 2018-11-13 21:40:03 +01:00
Angelo Fuchs 3ef1650b51 only produce a notification if something new happens, not if something gets noticed. #117 2018-11-13 14:39:27 +01:00
Angelo Fuchs 4739b8c165 in case ndk-build is done from gradle, this folder needs to be ignored. 2018-11-13 14:38:28 +01:00
B. Petersen ebdb5f382d Update messenger-backend submodule. 2018-11-13 00:20:09 +01:00
daniel.boehrs fa8e9cefd3 verified-icon not always visible in chat-titlebar #120 2018-11-09 15:23:32 +01:00
daniel.boehrs b459e9bd0e avatars from system contacts #55 2018-11-09 12:49:25 +01:00
Florian Haar a336ce3e2c Allow for customized Background image #50 2018-11-09 10:16:32 +01:00
Lars-Magnus Skog 986d86f82e Merge pull request #121 from JellyRollJunior/master
Fix error in README.md
2018-11-09 04:15:44 +01:00
Brandon Lin f202ca1eb2 Fix error in README.md
-removed double usage of "can"
2018-11-08 18:32:13 -08:00
Angelo Fuchs f1b2dd581a addendum #113. the notification event is running on the background thread now, the default for event handlers is the main thread, though. 2018-11-04 23:35:59 +02:00
Angelo Fuchs 5ed18c106c close #113. the notification event is running on the background thread now, the default for event handlers is the main thread, though. 2018-11-04 22:58:05 +02:00
Angelo Fuchs e051eecf48 closes #111 media gallery image selection now goes to the right image. 2018-11-04 21:42:40 +02:00
Angelo Fuchs 5fcf183215 don't display notifications for the currently active thread. closes #32 notifications are now completle 2018-11-04 16:58:18 +02:00
Angelo Fuchs df494a49a8 some cleanup, no functional change. 2018-11-04 14:16:53 +02:00
Angelo Fuchs 564b837d93 activating signalling (sound and vibration) for #32 2018-11-04 13:57:44 +02:00
Angelo Fuchs 8c9cd3dd3d having the proper icon for #32 notifications. 2018-11-02 17:10:35 +02:00
Florian Haar c290194c9a Allow for customized Background image #50 2018-11-02 13:39:03 +01:00
Florian Haar cf2bdefcee forward selected messages #74 2018-11-02 11:02:51 +01:00
Florian Haar 4f9c692dbd forward selected messages #74 2018-11-02 10:04:17 +01:00
daniel.boehrs dd67248066 avatars for contact / new chat view #55 2018-11-02 09:01:43 +01:00
Angelo Fuchs d4f1af7521 for #32 (notifications) the type of thread id in ConversationActivity is now int (not long). Where its too hard, I added a cast and a todo. 2018-11-01 21:22:13 +02:00
Angelo Fuchs df62bfe8de #32 grouping together the actions of marking messages as notified. 2018-11-01 21:22:13 +02:00
Angelo Fuchs b8929c181a added todos for future work. 2018-11-01 21:22:13 +02:00
Angelo Fuchs 9fa44b3e68 #32 notification stuff running in background thread so glide is satisfied. 2018-11-01 21:22:13 +02:00
daniel.boehrs 755d081c64 Adjust avatar fallback colors #55 2018-11-01 10:42:26 +01:00
daniel.boehrs b635384dd5 Make GroupCreateActivity aware of verified joins #92 2018-11-01 10:04:51 +01:00
daniel.boehrs 1fb07c9f80 unlocking does not work #112 2018-11-01 08:54:14 +01:00
Angelo Fuchs 5a9220356c notifications for new messages are displayed and hidden appropriately #32 2018-10-31 14:01:40 +02:00
Angelo Fuchs c8accec761 added convenience function when you already have a dc context 2018-10-31 14:01:40 +02:00
Angelo Fuchs cad5c5c185 generating slides from messages 2018-10-31 14:01:39 +02:00
Angelo Fuchs acaf836af9 DcMsg no longer requires the Recipient. 2018-10-31 14:01:39 +02:00
daniel.boehrs 5221b4c8fd Show qr and self reference on group edit #92 2018-10-30 16:19:18 +01:00
daniel.boehrs 5ee4320a6c Prepare ContactAccessor to load photos for #55 2018-10-30 14:02:26 +01:00
daniel.boehrs 92a0a83187 Rewrite profile image handling for #55 2018-10-30 12:16:02 +01:00
daniel.boehrs 76a8a724ff Adjust UI #55 2018-10-30 12:16:02 +01:00
B. Petersen d8ccf5ed6d add a function to get profile image of a contact 2018-10-30 11:21:55 +01:00
B. Petersen a2d6a00cd1 Update messenger-backend submodule. 2018-10-29 23:40:38 +01:00
Angelo Fuchs ffe69f7f4b Using DcEventDelegate instead of Object. 2018-10-29 23:01:57 +02:00
björn petersen 887cc3a1bb [WIP] Media gallery (#109) closes #78
* Update messenger-backend submodule.
* display a swipe able media gallery when one taps an image
* display a tiled gallery from chat-menu and from preview gallery
* changed some utility classes to handle the new situations
2018-10-29 20:55:49 +01:00
daniel.boehrs c192b719f5 show avatars for groups #55 2018-10-29 15:44:55 +01:00
daniel.boehrs ed0de74406 Adjust keyboard show / hide #92 2018-10-29 10:29:43 +01:00
B. Petersen ff1878511d show contact-avatar in deaddrop, tackles #95 2018-10-23 23:16:03 +02:00
B. Petersen a77cbee5f2 remove unused semi-transparency 2018-10-23 23:07:01 +02:00
B. Petersen e92fda0ca3 use plus-icon instead of pencil in chatlist, closes #107 2018-10-23 22:53:31 +02:00
B. Petersen a4c9e1699b improve 'no messages' hint on empty chats. 2018-10-23 21:51:14 +02:00
B. Petersen df87b64f66 upper-right align date in chatlist 2018-10-23 16:36:44 +02:00
B. Petersen b79e8e812d make status icons mutual exclusive 2018-10-23 16:24:19 +02:00
B. Petersen ec2deebda4 add space between columns in chatlist, closes #106 2018-10-23 16:09:09 +02:00
B. Petersen befbf84c59 remove unused thumbnail from chatlist 2018-10-23 14:30:08 +02:00
B. Petersen 7b205db200 do not show the date in bold on unread, too noisy. only show subject in bold and green unread counter. 2018-10-23 13:57:58 +02:00
B. Petersen e43c85b12b unify ripple color 2018-10-23 13:52:29 +02:00
B. Petersen 758c175b3d add horizontal border between chats in chatlist, tackles #106 2018-10-23 13:11:21 +02:00
B. Petersen fdceb0e080 draw verified-icon directly right of chat-title, closes #105 2018-10-23 12:00:56 +02:00
B. Petersen 3863ef91e1 comment 2018-10-23 09:51:35 +02:00
B. Petersen 6e07258fc7 make deaddrop-background compatible to selection-background 2018-10-23 07:04:15 +02:00
B. Petersen c07a0dedd6 bump version 2018-10-22 23:52:25 +02:00
B. Petersen e5b906184d do not draw buggy deaddrop background for now 2018-10-22 23:50:09 +02:00
B. Petersen 2dbd12403f implement archive/unarchive/delete/leave from chat-activity 2018-10-22 23:14:15 +02:00
daniel.boehrs 9906608956 fix group create crash #103 2018-10-22 19:08:35 +02:00
B. Petersen 5870f0cd02 implement group leaving 2018-10-22 18:09:58 +02:00
B. Petersen 3dc6ea1c85 cleanup chat-menu 2018-10-22 17:47:18 +02:00
B. Petersen e66ae137fe make 'Edit group' a first-class action, tackles #92 2018-10-22 17:06:00 +02:00
B. Petersen 4d32f5746c no special click-handler for ConversationUpdateItem 2018-10-22 16:32:26 +02:00
daniel.boehrs 6e5c6e3d4d Merge branch 'master' of https://github.com/deltachat/deltachat-android-ii 2018-10-22 16:23:54 +02:00
daniel.boehrs c459aa4476 set group image #92 2018-10-22 16:23:42 +02:00
B. Petersen bf4bcba78c remove RecipientModifiedListener from ConversationActivity and ConversationListActivity 2018-10-22 16:21:59 +02:00
B. Petersen ccb5e3285f Update messenger-backend submodule. 2018-10-22 16:12:34 +02:00
daniel.boehrs 5424d56801 edit groups #92 2018-10-22 15:20:24 +02:00
B. Petersen 5c15784f66 hide unused controls in contact-requests, tackles #95 2018-10-22 01:21:15 +02:00
B. Petersen 0abecd74c9 remove unused code 2018-10-22 00:56:42 +02:00
B. Petersen aa3df42f71 ask 'Chat with NAME?' on clicks on a contact request and offer several options, tackles #95. 2018-10-22 00:29:45 +02:00
B. Petersen cfe6e023cb handle msg_id and contact_id in chatlist-items 2018-10-21 23:57:00 +02:00
B. Petersen 6140b2aab4 add a function to get the msg_id from a chatlist-index 2018-10-21 23:55:09 +02:00
B. Petersen cc95e1fa1f show contact request in chatlist with different background 2018-10-21 23:04:58 +02:00
B. Petersen 643e8d80f7 typo 2018-10-21 15:02:12 +02:00
B. Petersen 84cc1c124a show correct title for contact requests 2018-10-21 15:01:33 +02:00
B. Petersen 22d8f3177f remove unused parameters on opening/creating chats 2018-10-21 14:43:44 +02:00
B. Petersen 471f4480ac remove now unused ConversationActivity.DISTRIBUTION_TYPE_EXTRA 2018-10-21 14:36:29 +02:00
B. Petersen bc387096f5 remove dependency from this.distributionType on draft saving 2018-10-21 14:30:41 +02:00
B. Petersen 93b5a345ea remove unused group-options 2018-10-21 14:22:59 +02:00
B. Petersen 50b18b7d65 remove now redundant ConversationActivity.ADDRESS_EXTRA 2018-10-21 14:15:55 +02:00
B. Petersen 004319db64 remove dependency to ConversationActivity.ADDRESS_EXTRA from ConversationFragment 2018-10-21 14:09:33 +02:00
B. Petersen 90b52cebf1 remove TIMING_EXTRA 2018-10-21 13:58:58 +02:00
B. Petersen f4a01a2bae re-add accidentially removed advanced-preference click-handler 2018-10-21 01:28:56 +02:00
B. Petersen 77ed15125d move invite/help to settings 2018-10-21 00:59:11 +02:00
B. Petersen 15ef0271fc add contact-request (aka deaddrop) menu entry, tackles #95 2018-10-21 00:02:19 +02:00
B. Petersen 1dd2ad04ba a click on a deaddrop-message opens a new chat, tackles #95 2018-10-20 23:52:54 +02:00
B. Petersen 0a259d2277 bump version 2018-10-19 23:06:47 +02:00
B. Petersen 9f6a7cbf00 make create groups work again, tackles #92 2018-10-19 23:03:06 +02:00
B. Petersen 5c6e84b21b bump version 2018-10-19 15:30:59 +02:00
B. Petersen 00f0f143af send voice messages as such 2018-10-19 15:29:40 +02:00
B. Petersen 7bcfec2367 send images, audio, documents 2018-10-19 15:07:15 +02:00
daniel.boehrs 17e5fe5a89 Verify icon layout broken #93 2018-10-19 10:11:26 +02:00
Florian Haar 4b8fef6918 Merge branch 'master' of https://github.com/deltachat/deltachat-android-ii 2018-10-19 09:03:08 +02:00
Florian Haar 44afb50c81 Allow for customized Background image #50 2018-10-19 09:01:47 +02:00
B. Petersen 39f14a4a9a basically send media with URIs 2018-10-19 01:40:27 +02:00
1403 changed files with 24390 additions and 892996 deletions
+31 -31
View File
@@ -1,31 +1,31 @@
# Thank you for contributing to Delta Chat.
If you like to discuss a **new feature** or submit suggestions,
please use the community forum:
* <https://support.delta.chat>
If you intend to send a **bug report** for Delta Chat,
search for existing bugs first:
* [Core](https://github.com/deltachat/deltachat-core/issues?&q=is%3Aissue)
* [Android](https://github.com/deltachat/deltachat-android-ii/issues?&q=is%3Aissue)
* [iOS](https://github.com/deltachat/deltachat-ios/issues?&q=is%3Aissue)
* [Desktop](https://github.com/deltachat/deltachat-ios/issues?&q=is%3Aissue)
* [Node](https://github.com/deltachat/deltachat-node/issues?&q=is%3Aissue)
In short, the Android/iOS/Desktop parts are about the User Interface.
The Core part is about handling the connection to the mail server and the chat
or e-mail messages as well as providing secure communication by using
[Autocrypt](https://autocrypt.org/en/latest/).
A _bug_ is a reproducable misbehaviour,
when something happens but something else should happen instead.
Please try to create your issue in the respective issue tracker.
Did you know there is a [Help](https://delta.chat/en/help) page for Delta Chat?
To ask questions, you are also invited to join our IRC channel #deltachat
on [Freenode](https://kiwiirc.com/nextclient/#irc://irc.freenode.net/deltachat).
# Thank you for contributing to Delta Chat.
If you like to discuss a **new feature** or submit suggestions,
please use the community forum:
* <https://support.delta.chat>
If you intend to send a **bug report** for Delta Chat,
search for existing bugs first:
* [Core](https://github.com/deltachat/deltachat-core/issues?&q=is%3Aissue)
* [Android](https://github.com/deltachat/deltachat-android/issues?&q=is%3Aissue)
* [iOS](https://github.com/deltachat/deltachat-ios/issues?&q=is%3Aissue)
* [Desktop](https://github.com/deltachat/deltachat-ios/issues?&q=is%3Aissue)
* [Node](https://github.com/deltachat/deltachat-node/issues?&q=is%3Aissue)
In short, the Android/iOS/Desktop parts are about the User Interface.
The Core part is about handling the connection to the mail server and the chat
or e-mail messages as well as providing secure communication by using
[Autocrypt](https://autocrypt.org/en/latest/).
A _bug_ is a reproducable misbehaviour,
when something happens but something else should happen instead.
Please try to create your issue in the respective issue tracker.
Did you know there is a [Help](https://delta.chat/en/help) page for Delta Chat?
To ask questions, you are also invited to join our IRC channel #deltachat
on [Freenode](https://kiwiirc.com/nextclient/#irc://irc.freenode.net/deltachat).
+15 -37
View File
@@ -1,48 +1,26 @@
<!--
Please read the guidelines linked above, especially when you are a first time contributor. Remove this text and provide some basic informations below, if applicable. Remove template content which is not applicable.
This is a bug report tracker. New features are discussed in the forum: https://support.delta.chat
This is a bug report forum, if you like to discuss a new feature or submit suggestions, please use the community forum at https://support.delta.chat
Please fill out as much of this form as you can (leaving out stuff that is not applicable is ok).
-->
**Delta Chat version**
<!-- See settings dialog … -->
**Expected behavior**
<!-- What is the expected output? -->
**Actual behavior**
<!-- What do you see instead? -->
**Steps to reproduce the problem**
1.
2.
**Screen snapshots**
<!-- If applicable … -->
**Debug logs**
<details>
<summary>Logs</summary>
```
- Platform (android/blackberry/anbox):
- Device:
- Delta Chat Version:
- Expected behavior:
- Actual behavior:
- Steps to reproduce the problem:
- Screenshots:
- Logs:
<!--
If applicable, debug logs can be copied from within the Delta Chat app:
Open the _Settings_ menu -> _About_ -> _version number|Info_.
Debug logs can be copied from within the Delta Chat app with
Settings menu -> Advanced -> Debug log
Alternatively from the Android system log:
`adb logcat -v time -s DeltaChat`
` adb logcat -v time -s DeltaChat `
This log contains private data (e.g. mail address, provider information) which shall be removed or anonymised prior to posting.
Logs may contain private data
which shall be removed or anonymised prior to posting.
-->
```
</details>
+8
View File
@@ -1,9 +1,11 @@
*.keystore
.classpath
project.properties
.project
.settings
bin/
gen/
gplay/
.idea/
*.iml
*.so
@@ -27,3 +29,9 @@ jni/libspeex/.deps/
# ignore private scripts and directories, eg. local2github.prv.sh
*.prv*
# contains files for ndk-build when done from gradle.
.externalNativeBuild
# no vi tmp files
*.swp
+2 -2
View File
@@ -1,8 +1,8 @@
[main]
host = https://www.transifex.com
lang_map = fr_CA:fr-rCA,pt_BR:pt-rBR,pt_PT:pt,zh_CN:zh-rCN,zh_HK:zh-rHK,zh_TW:zh-rTW,da_DK:da-rDK,de_DE:de,tr_TR:tr,fr_FR:fr,es_ES:es,hu_HU:hu,sv_SE:sv-rSE,bg_BG:bg,el_GR:el,kn_IN:kn-rIN,cs_CZ:cs,he:iw,id:in,lt_LT:lt,km_KH:km-rKH,th_TH:th
lang_map = nl_NL:nl, ja_JP:ja, pt_BR:pt-rBR
[signal-android.master]
[delta-chat-app.stringsxml]
file_filter = res/values-<lang>/strings.xml
source_file = res/values/strings.xml
source_lang = en
+74 -188
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="org.thoughtcrime.securesms">
xmlns:tools="http://schemas.android.com/tools"
package="org.thoughtcrime.securesms">
<uses-sdk tools:overrideLibrary="com.amulyakhare.textdrawable,com.astuetz.pagerslidingtabstrip,pl.tajchert.waitingdots,com.h6ah4i.android.multiselectlistpreferencecompat,android.support.v13,com.davemorrissey.labs.subscaleview,com.tomergoldst.tooltips,com.klinker.android.send_message,com.takisoft.colorpicker,android.support.v14.preference"/>
@@ -15,92 +15,41 @@
<uses-feature android:name="android.hardware.portrait" android:required="false"/>
<uses-feature android:name="android.hardware.touchscreen" android:required="false"/>
<uses-permission android:name="android.permission.USE_FINGERPRINT"/>
<uses-permission android:name="org.thoughtcrime.securesms.ACCESS_SECRETS"/>
<uses-permission android:name="android.permission.READ_PROFILE"/>
<uses-permission android:name="android.permission.WRITE_PROFILE"/>
<uses-permission android:name="android.permission.BROADCAST_WAP_PUSH"
tools:ignore="ProtectedPermissions"/>
<uses-permission android:name="android.permission.READ_CONTACTS"/>
<uses-permission android:name="android.permission.WRITE_CONTACTS"/>
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_CALL_LOG" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS" />
<uses-permission android:name="android.permission.READ_CALL_STATE"/>
<!-- For sending/receiving events -->
<uses-permission android:name="android.permission.WRITE_CALENDAR"/>
<uses-permission android:name="android.permission.READ_CALENDAR"/>
<!-- Normal -->
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<!-- So we can add a TextSecure 'Account' -->
<uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />
<uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" />
<uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
<uses-permission android:name="android.permission.USE_CREDENTIALS"/>
<!-- For conversation 'shortcuts' on the desktop -->
<uses-permission android:name="android.permission.INSTALL_SHORTCUT"/>
<!-- For fixing MMS -->
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
<!-- Set image as wallpaper -->
<uses-permission android:name="android.permission.SET_WALLPAPER"/>
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BROADCAST_STICKY" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
<uses-permission android:name="android.permission.INSTALL_SHORTCUT" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.SET_WALLPAPER" />
<uses-permission android:name="android.permission.RAISED_THREAD_PRIORITY" />
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"/>
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
<application android:name=".ApplicationContext"
android:icon="@mipmap/ic_launcher_dev"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:label="Delta Chat"
android:supportsRtl="true"
tools:replace="android:allowBackup"
android:allowBackup="false"
android:theme="@style/TextSecure.LightTheme"
android:largeHeap="true">
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="AIzaSyCSx9xea86GwDKGznCAULE9Y5a8b-TfN9U"/>
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
android:largeHeap="true"
tools:ignore="GoogleAppIndexingWarning">
<!-- android car support, see https://developer.android.com/training/auto/start/,
as this potentially blocks releases on gplay due to extra-checks,
we disable this during the first gplay releases -->
<!--
<meta-data android:name="com.google.android.gms.car.application"
android:resource="@xml/automotive_app_desc" />
<activity android:name="org.thoughtcrime.securesms.WebRtcCallActivity"
android:excludeFromRecents="true"
android:screenOrientation="portrait"
android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|screenSize|fontScale"
android:launchMode="singleTask"/>
-->
<activity android:name=".InviteActivity"
android:theme="@style/TextSecure.HighlightTheme"
@@ -117,7 +66,6 @@
android:excludeFromRecents="true"
android:launchMode="singleTask"
android:taskAffinity=""
android:noHistory="true"
android:windowSoftInputMode="stateHidden"
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize">
@@ -133,6 +81,18 @@
<data android:mimeType="*/*"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND_MULTIPLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="audio/*" />
<data android:mimeType="image/*" />
<data android:mimeType="text/plain" />
<data android:mimeType="video/*" />
<data android:mimeType="application/*"/>
<data android:mimeType="text/*"/>
<data android:mimeType="*/*"/>
</intent-filter>
<meta-data
android:name="android.service.chooser.chooser_target_service"
android:value=".service.DirectShareService" />
@@ -140,7 +100,7 @@
</activity>
<activity android:name=".ConversationListActivity"
android:label="@string/app_name"
android:label="Delta Chat"
android:launchMode="singleTask"
android:theme="@style/TextSecure.LightNoActionBar"
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize"
@@ -164,7 +124,7 @@
</activity-alias>
<activity android:name=".ConversationListArchiveActivity"
android:label="@string/AndroidManifest_archived_conversations"
android:label="@string/chat_archived_chats_title"
android:launchMode="singleTask"
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize"
android:parentActivityName=".ConversationListActivity">
@@ -192,48 +152,28 @@
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize" />
<activity android:name=".GroupCreateActivity"
android:windowSoftInputMode="stateVisible"
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize"/>
<activity android:name=".DatabaseUpgradeActivity"
android:theme="@style/NoAnimation.Theme.AppCompat.Light.DarkActionBar"
android:launchMode="singleTask"
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize"/>
<activity android:name=".PassphraseCreateActivity"
android:label="@string/AndroidManifest__create_passphrase"
android:windowSoftInputMode="stateUnchanged"
android:theme="@style/TextSecure.LightNoActionBar"
android:launchMode="singleTask"
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize"/>
<activity android:name=".PassphrasePromptActivity"
android:launchMode="singleTask"
android:theme="@style/TextSecure.LightIntroTheme"
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize"/>
<activity android:name=".NewConversationActivity"
android:theme="@style/TextSecure.LightNoActionBar"
android:windowSoftInputMode="stateAlwaysVisible"
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize"/>
android:windowSoftInputMode="stateHidden"
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize">
<intent-filter>
<data android:scheme="mailto"/>
<action android:name="android.intent.action.VIEW"/>
<action android:name="android.intent.action.SENDTO"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
</intent-filter>
</activity>
<activity android:name=".ContactMultiSelectionActivity"
android:label="@string/AndroidManifest__select_contacts"
android:label="@string/contacts_title"
android:windowSoftInputMode="stateHidden"
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize"/>
<activity android:name=".giph.ui.GiphyActivity"
android:theme="@style/TextSecure.LightNoActionBar"
android:windowSoftInputMode="stateHidden"
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize"/>
<activity android:name=".PassphraseChangeActivity"
android:label="@string/AndroidManifest__change_passphrase"
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize"/>
<activity android:name=".VerifyIdentityActivity"
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize"/>
<activity android:name=".ApplicationPreferencesActivity"
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize"/>
@@ -244,17 +184,27 @@
<activity android:name=".RegistrationActivity"
android:launchMode="singleTask"
android:theme="@style/TextSecure.LightNoActionBar"
android:windowSoftInputMode="stateUnchanged"
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize"/>
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<activity android:name=".LogSubmitActivity"
android:label="@string/AndroidManifest__log_submit"
<!-- this scheme is used as the redirect_url for getOauth2Url()
and should be whitelisted by the supported oauth2 services -->
<data android:scheme="chat.delta" android:path="/${applicationId}/auth" tools:ignore="AppLinkUrlError"/>
<data android:scheme="chat.delta" android:path="/auth" tools:ignore="AppLinkUrlError"/>
</intent-filter>
</activity>
<activity android:name=".LogViewActivity"
android:label="@string/pref_view_log"
android:windowSoftInputMode="stateHidden"
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize"/>
<activity android:name=".MediaPreviewActivity"
android:label="@string/AndroidManifest__media_preview"
android:label="@string/media_preview"
android:windowSoftInputMode="stateHidden"
android:launchMode="singleTask"
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize"/>
@@ -280,7 +230,7 @@
android:theme="@style/TextSecure.LightNoActionBar"
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize"/>
<activity android:name=".BlockedContactsActivity"
<activity android:name=".BlockedAndShareContactsActivity"
android:theme="@style/TextSecure.LightTheme"
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize"/>
@@ -297,22 +247,22 @@
<activity android:name=".CreateProfileActivity"
android:theme="@style/TextSecure.LightTheme"
android:windowSoftInputMode="stateVisible"
android:windowSoftInputMode="stateHidden|adjustResize"
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize"/>
<activity android:name=".QrScanActivity"
android:theme="@style/TextSecure.LightTheme"
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize"/>
android:theme="@style/TextSecure.LightTheme"
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize"/>
<activity android:name=".QrShowActivity"
android:theme="@style/TextSecure.LightTheme"
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize"/>
<activity android:name=".QrShowActivity"
android:theme="@style/TextSecure.LightTheme"
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize"/>
<activity android:name=".ClearProfileAvatarActivity"
android:theme="@style/Theme.AppCompat.Dialog.Alert"
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize"
android:icon="@drawable/clear_profile_avatar"
android:label="@string/AndroidManifest_remove_photo">
android:label="@string/menu_delete_image">
<intent-filter>
<action android:name="org.thoughtcrime.securesms.action.CLEAR_PROFILE_PHOTO"/>
@@ -320,40 +270,15 @@
</intent-filter>
</activity>
<activity android:name=".contactshare.ContactShareEditActivity"
<activity android:name=".preferences.ChatBackgroundActivity"
android:theme="@style/TextSecure.LightTheme"
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize"/>
<activity android:name=".contactshare.ContactNameEditActivity"
android:theme="@style/TextSecure.LightNoActionBar"
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize"/>
<activity android:name=".map.MapActivity" />
<activity android:name=".contactshare.SharedContactDetailsActivity"
android:theme="@style/TextSecure.LightNoActionBar"
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize"/>
<service android:name=".connect.KeepAliveService" android:enabled="true" />
<activity android:name=".preferences.ChatBackgroundActivity"
android:theme="@style/TextSecure.LightTheme"
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize"/>
<service android:enabled="true" android:name="org.thoughtcrime.securesms.service.WebRtcCallService"/>
<service android:enabled="true" android:exported="false" android:name=".service.KeyCachingService"/>
<service android:enabled="true" android:name=".service.MessageRetrievalService"/>
<service android:name=".service.AccountAuthenticatorService" android:exported="true">
<intent-filter>
<action android:name="android.accounts.AccountAuthenticator" />
</intent-filter>
<meta-data android:name="android.accounts.AccountAuthenticator" android:resource="@xml/authenticator" />
</service>
<service android:name=".service.ContactsSyncAdapterService" android:exported="true">
<intent-filter>
<action android:name="android.content.SyncAdapter"/>
</intent-filter>
<meta-data android:name="android.content.SyncAdapter" android:resource="@xml/syncadapter" />
<meta-data android:name="android.provider.CONTACTS_STRUCTURE" android:resource="@xml/contactsformat" />
</service>
<service android:name=".geolocation.LocationBackgroundService" />
<service android:name=".service.DirectShareService"
android:permission="android.permission.BIND_CHOOSER_TARGET_SERVICE">
@@ -362,14 +287,7 @@
</intent-filter>
</service>
<service android:name=".service.GenericForegroundService"/>
<receiver android:name=".gcm.GcmBroadcastReceiver" android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="org.thoughtcrime.securesms" />
</intent-filter>
</receiver>
<receiver android:name=".connect.TimerReceiver" android:enabled="true"/>
<receiver android:name=".notifications.MarkReadReceiver"
android:enabled="true"
@@ -401,20 +319,6 @@
</intent-filter>
</receiver>
<receiver android:name=".service.ExpirationListener" />
<receiver android:name=".jobmanager.requirements.BackoffReceiver" />
<provider android:name=".providers.PartProvider"
android:grantUriPermissions="true"
android:exported="false"
android:authorities="${applicationId}.provider.securesms" />
<provider android:name=".providers.MmsBodyProvider"
android:grantUriPermissions="true"
android:exported="false"
android:authorities="${applicationId}.provider.securesms.mms" />
<provider android:name="android.support.v4.content.FileProvider"
android:authorities="${applicationId}.fileprovider"
android:exported="false"
@@ -438,24 +342,6 @@
</intent-filter>
</receiver>
<receiver android:name=".service.DirectoryRefreshListener">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
<receiver android:name=".service.RotateSignedPreKeyListener">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
<receiver android:name=".service.PersistentConnectionBootListener">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
</intent-filter>
</receiver>
<receiver android:name=".notifications.MessageNotifier$ReminderReceiver">
<intent-filter>
<action android:name="org.thoughtcrime.securesms.MessageNotifier.REMINDER_ACTION"/>
-74
View File
@@ -1,74 +0,0 @@
Building Signal
===============
Basics
------
Signal uses [Gradle](http://gradle.org) to build the project and to maintain
dependencies. However, you needn't install it yourself; the
"gradle wrapper" `gradlew`, mentioned below, will do that for you.
Building Signal
---------------
The following steps should help you (re)build Signal from the command line.
1. Checkout the Signal-Android project source with the command:
git clone https://github.com/signalapp/Signal-Android.git
2. Make sure you have the [Android SDK](https://developer.android.com/sdk/index.html) installed.
3. Ensure that the following packages are installed from the Android SDK manager:
* Android SDK Build Tools (see buildToolsVersion in build.gradle)
* SDK Platform (All API levels)
* Android Support Repository
* Google Repository
4. Create a local.properties file at the root of your source checkout and add an sdk.dir entry to it. For example:
sdk.dir=/Application/android-sdk-macosx
5. Using Java 8
6. Execute Gradle:
./gradlew build
Visual assets
----------------------
Source assets tend to be large binary blobs, which are best stored outside of git repositories. Some source files are SVGs that can be auto-colored and sized using a tool like [android-res-utils](https://github.com/sebkur/android-res-utils).
Sample command for generating our audio placeholder image:
```bash
pngs_from_svg.py ic_audio.svg /path/to/Signal/res/ 150 --color #000 --opacity 0.54 --suffix _light
pngs_from_svg.py ic_audio.svg /path/to/Signal/res/ 150 --color #fff --opacity 1.00 --suffix _light
```
Setting up a development environment
------------------------------------
[Android Studio](https://developer.android.com/sdk/installing/studio.html) is the recommended development environment.
1. Install Android Studio.
2. Open Android Studio. On a new installation, the Quickstart panel will appear. If you have open projects, close them using "File > Close Project" to see the Quickstart panel.
3. From the Quickstart panel, choose "Configure" then "SDK Manager".
4. In the SDK Tools tab of the SDK Manager, make sure that the "Android Support Repository" is installed, and that the latest "Android SDK build-tools" are installed. Click "OK" to return to the Quickstart panel.
5. From the Quickstart panel, choose "Checkout from Version Control" then "git".
6. Paste the URL for the Signal-Android project when prompted (https://github.com/signalapp/Signal-Android.git).
7. Android studio should detect the presence of a project file and ask you whether to open it. Click "yes".
9. Default config options should be good enough.
9. Project initialisation and build should proceed.
Contributing code
-----------------
Code contributions should be sent via github as pull requests, from feature branches [as explained here](https://help.github.com/articles/using-pull-requests).
Mailing list
------------
Development discussion happens on the whispersystems mailing list.
[To join](https://lists.riseup.net/www/info/whispersystems)
Send emails to whispersystems@lists.riseup.net
+598
View File
@@ -0,0 +1,598 @@
# Delta Chat Android Changelog
## v0.301.0
2019-04-20
* Experimental location-streaming can be enabled in the advanced settings;
when enabled, you can optionally stream your location to a group
and view a map with the members that are also streaming their location
* Tweaked dark-mode
* Improved account setup and profile dialogs
* Show and hide the virtual keyboard more gracefully
* Speed up program start
* Speed up message sending
* Handle Webp-Images and Vcard-files
* Add Japanese and Brazilian Portuguese translations
* Update several other translations
* Bug fixes
The changes have been done by Alexander, Ampli-fier, Angelo Fuchs,
Asiel Díaz Benítez, Besnik, Björn Petersen, cyBerta, Daniel Böhrs, Enrico B.,
ferhad.necef, Floris Bruynooghe, Friedel Ziegelmayer, Heimen Stoffels,
Holger Krekel, Janka, Jikstra, Luis, Moo, Nico de Haen, Ole Carlsen, Osoitz,
Ozancan Karataş, Racer1, sebek, Viktor Pracht, Webratte and others
## v0.200.0
2019-03-14
* Simplified setup (OAuth2) for google.com and yandex.com
* Improved setup for many other providers
* Decide, which e-mails should appear - "Chats only", "Accepted contacts" or "All"
* Improve moving chat messages to the DeltaChat folder
* Optional a stronger image compression
* Smaller message sizes in groups
* Share files from other apps to Delta Chat
* Share texts from mailto:-links
* Log can be opened from setup screen
* Add Lithuanian translation
* Update several other translations
* Bug fixes
The changes have been done by Alexandex, Angelo Fuchs, Asiel Díaz Benítez,
Björn Petersen, Besnik, Christian Klump, cyBerta, Daniel Böhrs, Enrico B.,
ferhad.necef, Florian Haar, Floris Bruynooghe, Friedel Ziegelmayer,
Heimen Stoffels, Holger Krekel, Iskatel Istiny, Lech Rowerski, Moo,
Ole Carlsen, violoncelloCH and others
## v0.101.0
2019-02-12
* First Play Store release, optimisations for Android O
* Ask to disable battery optimisations
* Start Azerbaijani and Swedish translations
* Update several other translations
* Many bug fixes
The changes have been done by Ampli-fier, Angelo Fuchs, Asiel Díaz Benítez,
Besnik, Björn Petersen, Christian Klump, Daniel Böhrs, Enrico B., ferhad.necef,
Florian Haar, Floris Bruynooghe, Heimen Stoffels, Holger Krekel,
Iskatel Istiny, Lech Rowerski, violoncelloCH and others.
## v0.100.0
2019-01-23
* Complete rework of the ui using pure material design
* Images and other files can be sent together with a description
* Images can be modified before sending, eg. text can be added or
hand-drawn signs
* Image and media gallery for each chat
* Embedded camera, new camera icon directly in input field
* Embedded video player
* New emoticons
* Contacts and groups can be joined with a QR-code-scan
* Options for watching several IMAP-folders
* Option to move messages to the DeltaChat-folder
* Improved multi-device behavior
* Improved Accessiblity eg. for screen readers
* Dark theme
* Support right-to-left languages
* Relative time display
* Chatlist and contat list support a long click for several operations
* Archive chats by swiping a chat right out of the chatlist
* Show date always atop of the chat
* Fix redraw problems with hidden system status or navigation bar
* Reply directly from within notification
* The system credentials has be be entered before exports
* The app can be protected by the system credentials
* Hide the permanent notification more reliable
* Improved resending of messages
* Allow password starting/ending with whitespaces
* Bug fixes
* Probably more i forgot
The changes have been done by Ampli-fier, Angelo Fuchs, Asiel Díaz Benítez,
Björn Petersen, chklump, Daniel Böhrs, Florian Haar, Hocceruser, Holger Krekel,
Lars-Magnus Skog
Translations are still in progress and video-recording is not yet re-implemented.
Help is very welcome -:)
## v0.20.0
2018-08-14
* Check size before sending videos, files and other attachments
* On sending problems, try over an appropriate number of times; then give up
* Detect sending problems related to the message size,
show an error and do not try over
* Show message errors in the message info
* Add user forum to website
* Update python bindings
* Seed node.js bindings and a CLI version based on this
* Prepare Android bindings update
* Update Danish, Italian and Russian translations
The changes have been done by Andrei Guliaikin, Angelo Fuchs, Björn Petersen,
compl4xx, Boehrsi, Enrico B., Floris Bruynooghe, Holger Krekel, Janka, Jikstra,
Karissa McKelvey, Lars-Magnus Skog, Ole Carlsen
## v0.19.0
2018-07-10
* Give advices for Google users
* Speed up by making database-locks unneccessary
* Fix drafts appearing twice
* Update Albanian, Basque, Catalan, Danish, Dutch, English,
Italian, Polish, Russian, and Turkish translations
* Update website
The changes have been done by Allan Nordhøy, Angelo Fuchs, Besnik,
Björn Petersen, Calbasi, Claudio Arseni, guland2000, Heimen Stoffels,
Holger Krekel, Luis Fernando Stürmer da Rosa, Mahmut Özcan, Ole Carlsen,
Osoitz, sebek, Thomas Oster
## v0.18.2
2018-06-23
* Fix initial configure process to hang at 95% under some circumstances
## v0.18.0
2018-06-21
* Speed up message sending/receiving
* Retry failed sending/receiving jobs just in the moment
the networks becomes available again
* Make message sending/receiving more reliable
* Handle attachment file names with non-ASCII characters correctly
* Paging through images made available by Angelo Fuchs
* Several connection issues with different configurations
were fixed by Thomas Oster
* Improve chat-folder creation by Thomas Oster
* Request permissions before using the camera; added by Thomas Oster
* Key import improved by Thomas Oster
* Improve background and foreground message fetching reliability
* Try to use the permanent notification only when really needed
* Update internal sqlite library from 3.22.0 to 3.23.1
* Update internal libEtPan library from 1.7 to 1.8
* Add Danish translation from Ole Carlsen
* Update Albanian, Basque, Danish, Italian, Norwegian, Dutch, Polish,
Portuguese, Russian and Telugu translations
## v0.17.3
2018-05-17
* Fix system messages appearing twice
* Fix: Use all gossipped verifications in verified groups
* Update Basque, Polish, Russian and Ukrainian translations
## v0.17.2
2018-05-15
* Fix problem with adding formerly uncontacted members to groups
* Unblock manually blocked members when they are added manually as contact again
## v0.17.1
2018-05-11
* Improve QR code scanning screens
* Add a labs-option to disabled the new QR logo overlay
* Update Russian translations
## v0.17.0
2018-05-07
* Show shared chats in user profiles
* If a contact has changed his encryption setups,
this is shown as a system messages in the middle of the chat view
* Show added group members, changed group titles etc. as system messages
* Show direct buttons to create a new group or contact in the "New Chat" dialog
* Improve "Add contact" dialog
* Move subject and most chat metadata to the encrypted part
following the "Memoryhole" proposal
* Show read-timestamps in message info
* Do not add contacts from Bcc to group-memberlist
to avoid privacy leaks and to get a unique memberlist for all group-members
* In a mail contains plaintext and encrypted parts,
the whole mail is treated as not being encrypted correctly
* Restructure settings and advanced settings
* Fix problems with Office 365 and similar services
* Fix a problem where incoming messages are shown as being sent by oneself
* Experimental QR code scanning options can be enabled in the advanced settings
* Update Albanian, Catalan, Dutch, French, German, Italian, Norwegian, Polish,
Russian, Spanish, Turkish and Ukrainian translations
* Add Basque translation
* Add Chinese translation
* Add Japanese translation
## v0.16.0
2018-03-19
* Messages from normal clients to more than one recipient
create an implicit "ad-hoc group"
* Allow group creation though contact requests
* Always display the _sending_ time in the chat list;
the list itself is sorted by _receiving_ time
and "Message info" shows both times now
* If parts but the footnote are cut from mails,
this is indicated "..."; use "Message info" to get the full text
* Highlight the subject in the "Message info"
* Autoconfigure prefers 'https' over 'http'
* Bug fixes, eg. avoid freezes if the connection is lost
* Update Russian, Tamil and Turkish translations
## v0.15.0
2018-02-27
* Render the waveform for voice messages
* Fix problems with voice messages on various devices
* Improve deletion of message that were moved around by another e-mail client
* Really delete messages on the server, do not only mark them for deletion
* Ignore subsequent keys or blocks in OpenPGP files
* Leave incoming Autocrypt Setup Messages in the inbox
so that any number of other e-mail-clients can process them
* Avoid messages sent to the "Me" chat appearing twice in other e-mail clients
* Update Albanian translation
## v0.14.0
2018-02-20
* Evaluate gossiped keys
* Option to transfer the Autocrypt Setup to another device or e-mail client
* Accept Autocrypt Setup transferred from other devices or e-mail client
* Send any data from device to device
using the chat "Me - Messages I sent to myself"
* Do not send messages when there is an access error
* Request for contact permissions only once
* Bug fixes
* Update French and Turkish translations
## v0.13.0
2018-01-18
* Reply encrypted if the sender has enabled encryption manually
(esp. useful when chatting with clients as K-9 or Enigmail)
* Update welcome screen graphics
* Update Norwegian, Russian and Turkish translations
## v0.12.0
2018-01-07
* Gossip keys of other group members in the encrypted payload
(will also be evaluated in one of the next versions)
* Use SHA-256 instead of SHA-1 in signatures
* Make the permanent notification clickable
* Update permanent notification after import
* Fix rendering of system messages
* Various bug fixes
* Update Albanian, French, Italian, Norwegian, Polish, Russian
and Turkish translations
## v0.11.4
2017-12-17
* Add option to initiate Autocrypt Key Transfer
* Connect after importing a backup
* Reading memory hole headers
* Add Albanian translation
* Update German, Italian, Polish, Portuguese, Russian, Turkish
and Ukrainian translations
## v0.10.0
2017-11-29
* Fix usage of multiple private keys
* Fix various memory leaks
* Update English, Portuguese and Turkish translations
## v0.9.9
2017-11-18
* Alternate include order for F-Droid
* Add Serbian translation
* Update Catalan, Dutch, English, French, German, Hungarian, Italian, Polish,
Portuguese, Russian, Spanish, Tamil, Telugu and Ukrainian translations
## v0.9.8
2017-11-15
* Fix a bug that avoids chat creation under some circumstances
(bug introduced in 0.9.7)
## v0.9.7
2017-11-14
* Archive chats or delete chats by a long press
* Notify the user in the chatlist about contact requests
of known users or of other Delta Chat clients
* Show messages only for explicitly wanted chats
* Show more detailed reasons about failed end-to-end-encryptions
* Explicit option to leave a group
* Do not show the padlock if end-to-end-encryption is disabled by the user
* Import images from a backup when using a different device with different paths
* Add copy-to-clipboard function for "About / Info"
* Rework Emoji-code
* Add Norwegian Bokmål translation
* Add Tamil translation
* Add Turkish translation
* Update Catalan, German, French, Italian, Korean, Dutch, Polish, Portuguese,
Russian, Telugu and Ukrainian translations
## v0.9.6
2017-10-18
* Support keys generated with multiple subkeys eg. from K-9
* Show PDFs and other attachments with bad names
* Bug fixes
## v0.9.5
2017-10-08
* Backup export and import function
* Query password before export
* Move replies from normal E-Mail-Clients to the "Chats" folder
* Improve helping MUAs on showing chat threads
* Improve onboarding
* Add URL to default footer
* Test a different approach for battery saving in this release
* Update French, Italian, German, Polish, Portuguese, Russian
and Ukrainian translations
## v0.9.4
2017-08-23
* Introduce an editable "Status" field that is shown eg. in email footers
* Editable and synchronized group images
* Show the subject of messages that cannot be decrypted
* Do not send "Read receipts" when decryption fails
* Do not request "Read receipts" from normal MUAs
as there are too many MUAs responding with weird, non-standard formats
* Deleting a chat always deletes all messages from the device permanently
* Ignore messages from mailing lists
* Do not spread the original authors name nor address on forwarding
* Encrypt mails send to SMTP and to IMAP the same way
* Improve showing HTML-mails
* Cleanup Android code
* Remove badge counter on app restart
* Add Ukrainian translation
* Add Telugu translation
* Add Catalan translation
* Update German, Spanish, French, Hungarian, Italian, Polish, Portuguese
and Russian translations
## v0.9.3
2017-07-13
* Introduce "Read receipts" and avoid social pressure to leave it activated
* Improve encryption dialog in profile
* Fix marking messages as "seen" when opening the contact requests
* Ignore signature.asc files of signed-only messages
* Update Polish, Portuguese and Russian translations
## v0.9.2
2017-06-28
* Encrypt group chats
* Cryptographically sign messages
* Validate signatures of incoming messages ("Info" shows the state)
* Show lock beside end-to-end-encrypted messages with a validated signature
* If end-to-end-encryption is available on sending time,
guarantee the message not to be sent without end-to-end-encryption later
* Show special characters in HTML-mails
* Help MUAs on showing chat threads
* Show attachments from multipart/alternative structures
* Upgrade from Autocrypt Level 0 to Level 1;
as the levels are not compatible, encryption on mixed setups does not happen
* Update Polish, Portuguese, Spanish and French translations
## v0.9.1
2017-06-04
* Profile: Improve encryption state dialog
* Improved video quality of short clips
* Make encryption-dialog localizable
* Update Russian translation
## v0.9.0
2017-06-01
* Add end-to-end-encrypting following the OpenPGP and Autocrypt standards
* Add a function to compare keys
* Profile: Add option to copy the email address to the clipboard
* Pimp GUI
## v0.1.36
2017-05-04
* Support camera on Android Nougat
## v0.1.34
2017-05-03
* Link to new homepage https://delta.chat
* Localizable Help-URLs
## v0.1.33
2017-04-29
* Better support for right-to-left (RTL) languages, taking advantage of
Android 4.2 (Jelly Bean MR1, API level 17).
* Send PNG files without resizing and converting to JPEG
* If JPEG files are send without compression,
they still appear as image, not as attached files
* Raise-to-speak defaults to false
* Unify long click behaviour
* Support Android's system function "Delete data"
* Replies to messages pop up automatically
even if send from other email addresses (typical scenario for alias addresses)
* Fix group-replies from normal email-clients.
## v0.1.32
2017-04-22
* Update Spanish and Portuguese translations
* Update internal sqlite library to version 3.18.0, released on 2017-03-28
* Remove more of the custom language handling, use Android's routines instead
* General code cleanup
* Play GIF files
* Option to disable autoplaying GIF files
* When sending contacts, only use the names the receivers have set themselves
* Show some hints when long-pressing icons in the action bar
## v0.1.29
2017-04-19
* Add Russian translation
* For outgoing (group-)messages,
only use the names the receivers have set themselves
## v0.1.28
2017-04-14
* Pimp notifications
* Bug fixes
## v0.1.27
2017-04-12
* Use a permanent foreground service for reliable notifications
* Monitor the IMAP-IDLE thread and reconnect if IMAP-IDLE seems to hang
* Various battery and background optimizations
## v0.1.25
2017-04-04
* Use system or user selected video player.
* Do not connect if not configured (avoids a warning on the first time startup)
* Add vertical scrollbar, eg. to settings activities.
* Pimp GUI and logo.
* Update Korean.
## v0.1.24
2017-03-31
* Share images and documents from other apps to Delta Chat
* Offer to mailto:-link-support to other apps
* Ignore implausible sending time of incoming messages;
use the receive time in these rare cases
* Show errors only when Delta Chat is in foreground
* Dynamically adapt video bitrate for longer videos
to an attachment-size of max. 25 MB
## v0.1.23
2017-03-28
* Retry connecting to IMAP if there is not network available on the first try
* Notify about new messages if the app is not active for hours,
optimize battery consumption
## v0.1.22
2017-03-22
* Show HTML-only messages
* Show connection errors
* Add options for SSL/TLS and STARTTLS
* Automatic account configuration, if possible
* Recode large videos
* Add Hungarian translation
* Add Korean translation
## v0.1.21
2017-03-10
* Record and send voice messages
* Record and send videos
* Send and play music
* Send contacts and email addresses
* Sending and opening attachments of any type
* Share and open commands for all attachments
* Accept VCards send to us by other apps
* Clickable email addresses
* Update Polish translation
* Fix tablet startup bug
* Close the app when using the lock-app-via-pincode function
* Protect data by using a content provider for sharing
* Try to clear the task switcher's screenshots when locking the app via pincode
* Pimp GUI
## v0.1.20
2017-02-16
* Avoid unwanted downloads of lots of old messages
* Make the "Chats" folder visible if the server hides new folders by default
* Fix a crash when the server returns empty folders
* Update Polish and Portuguese translations
* Use API level 25 (Nougat 7.1) as target
## v0.1.18
2017-02-11
* Add Polish translation
* Use a new default background for chats
* Improve typography by using the system font instead of a custom resource font
* Remove custom plural handling, use Android's routines instead
* Remove unused source code and strings
* More fixes of lint errors and warnings
## v0.1.17
2017-02-07
* Drop two unnecessary permissions
ACCESS_COARSE_LOCATION and ACCESS_FINE_LOCATION
* Really add French translation
* Update Portuguese translation
* Start fixing translation handling of the program
* Remove special "foss" build, because the whole program is free now.
## v0.1.16
2017-02-06
* Add French translation
* Fix some lint errors and warnings
## v0.1.15
2017-01-31
* Prepare for first release on F-Droid
-34
View File
@@ -1,34 +0,0 @@
TextSecure provides encrypted text messages for Android.
Copyright 2011 Whisper Systems
This software has the follow third party dependencies:
Bouncy Castle 1.42
http://www.bouncycastle.org/
MIT License
Copyright (c) 2000 - 2011 The Legion Of The Bouncy Castle (http://www.bouncycastle.org)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
ZXing
http://code.google.com/p/zxing/
Apache License 2.0
Copyright 2009 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
+14 -11
View File
@@ -1,25 +1,28 @@
## Delta Chat Android Client
This is the android client for Delta Chat. For the core library and other common
information, please refer to [Delta Chat Core Library](https://github.com/deltachat/deltachat-core).
For ready-to-use binaries, please go to https://delta.chat .
This is the android client for [Delta Chat](https://delta.chat/).
It is available on [F-Droid](https://f-droid.org/app/com.b44t.messenger) and
the [Google Play Store](https://play.google.com/store/apps/details?id=chat.delta).
The APK can also be downloaded from [github](https://github.com/deltachat/deltachat-android/releases)
(for experienced users only).
![Logo](https://delta.chat/assets/features/start-img4.png)
For the core library and other common information, please refer to the
[Delta Chat Core Library](https://github.com/deltachat/deltachat-core).
[<img src="https://f-droid.org/badge/get-it-on.png" alt="Get it on F-Droid" height="75"/>](https://f-droid.org/packages/com.b44t.messenger)
<img alt="Screenshot Chat List" src="docs/images/2019-01-chatlist.png" width="298" /> <img alt="Screenshot Chat View" src="docs/images/2019-01-chat.png" width="298" />
# Build
When checking out _deltachat-android-ii_, make sure also to check out the
When checking out _deltachat-android_, make sure also to check out the
subproject _deltachat-core_:
- When using Git, you can can do this initially by
`$ git clone --recursive https://github.com/deltachat/deltachat-android-ii`
- When using Git, you can do this initially by
`$ git clone --recursive https://github.com/deltachat/deltachat-android`
or later by `git submodule update --init --recursive`. If you do this in your
home directory, this results in the folder `~/deltachat-android-ii` which is just fine.
home directory, this results in the folder `~/deltachat-android` which is just fine.
- Alternatively, you can download the [deltachat-android zip-file](https://github.com/deltachat/deltachat-android-ii/archive/master.zip); in this case, also download the [deltachat-core zip-file](https://github.com/deltachat/deltachat-core/archive/master.zip) and place its contents to `jni/messenger-backend`
- Alternatively, you can download the [deltachat-android zip-file](https://github.com/deltachat/deltachat-android/archive/master.zip); in this case, also download the [deltachat-core zip-file](https://github.com/deltachat/deltachat-core/archive/master.zip) and place its contents to `jni/messenger-backend`
Then, call `ndk-build` in the root directory to build the C-part;
this also builds deltachat-core. Afterwards run the project in Android Studio.
@@ -79,4 +82,4 @@ The user interface classes are based on the Signal messenger.
Licensed under the GPLv3, see LICENSE file for details.
Copyright © 2017, 2018 Delta Chat contributors
Copyright © 2017-2019 Delta Chat contributors
-78
View File
@@ -1,78 +0,0 @@
#! /usr/bin/env python
import sys
from zipfile import ZipFile
class ApkDiff:
IGNORE_FILES = ["META-INF/CERT.RSA", "META-INF/CERT.SF", "META-INF/MANIFEST.MF"]
def compare(self, sourceApk, destinationApk):
sourceZip = ZipFile(sourceApk, 'r')
destinationZip = ZipFile(destinationApk, 'r')
if self.compareManifests(sourceZip, destinationZip) and self.compareEntries(sourceZip, destinationZip) == True:
print "APKs match!"
else:
print "APKs don't match!"
def compareManifests(self, sourceZip, destinationZip):
sourceEntrySortedList = sorted(sourceZip.namelist())
destinationEntrySortedList = sorted(destinationZip.namelist())
for ignoreFile in self.IGNORE_FILES:
while ignoreFile in sourceEntrySortedList: sourceEntrySortedList.remove(ignoreFile)
while ignoreFile in destinationEntrySortedList: destinationEntrySortedList.remove(ignoreFile)
if len(sourceEntrySortedList) != len(destinationEntrySortedList):
print "Manifest lengths differ!"
for (sourceEntryName, destinationEntryName) in zip(sourceEntrySortedList, destinationEntrySortedList):
if sourceEntryName != destinationEntryName:
print "Sorted manifests don't match, %s vs %s" % (sourceEntryName, destinationEntryName)
return False
return True
def compareEntries(self, sourceZip, destinationZip):
sourceInfoList = filter(lambda sourceInfo: sourceInfo.filename not in self.IGNORE_FILES, sourceZip.infolist())
destinationInfoList = filter(lambda destinationInfo: destinationInfo.filename not in self.IGNORE_FILES, destinationZip.infolist())
if len(sourceInfoList) != len(destinationInfoList):
print "APK info lists of different length!"
return False
for sourceEntryInfo in sourceInfoList:
for destinationEntryInfo in list(destinationInfoList):
if sourceEntryInfo.filename == destinationEntryInfo.filename:
sourceEntry = sourceZip.open(sourceEntryInfo, 'r')
destinationEntry = destinationZip.open(destinationEntryInfo, 'r')
if self.compareFiles(sourceEntry, destinationEntry) != True:
print "APK entry %s does not match %s!" % (sourceEntryInfo.filename, destinationEntryInfo.filename)
return False
destinationInfoList.remove(destinationEntryInfo)
break
return True
def compareFiles(self, sourceFile, destinationFile):
sourceChunk = sourceFile.read(1024)
destinationChunk = destinationFile.read(1024)
while sourceChunk != "" or destinationChunk != "":
if sourceChunk != destinationChunk:
return False
sourceChunk = sourceFile.read(1024)
destinationChunk = destinationFile.read(1024)
return True
if __name__ == '__main__':
if len(sys.argv) != 3:
print "Usage: apkdiff <pathToFirstApk> <pathToSecondApk>"
sys.exit(1)
ApkDiff().compare(sys.argv[1], sys.argv[2])
-2
View File
@@ -1,2 +0,0 @@
*.db
*.db.gz
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
-106
View File
@@ -1,106 +0,0 @@
import sys
import re
import argparse
import sqlite3
import gzip
from progressbar import ProgressBar, Counter, Timer
from lxml import etree
parser = argparse.ArgumentParser(prog='apntool', description="""Process Android's apn xml files and drop them into an
easily queryable SQLite db. Tested up to version 9 of
their APN file.""")
parser.add_argument('-v', '--version', action='version', version='%(prog)s v1.1')
parser.add_argument('-i', '--input', help='the xml file to parse', default='apns.xml', required=False)
parser.add_argument('-o', '--output', help='the sqlite db output file', default='apns.db', required=False)
parser.add_argument('--quiet', help='do not show progress or verbose instructions', action='store_true', required=False)
parser.add_argument('--no-gzip', help="do not gzip after creation", action='store_true', required=False)
args = parser.parse_args()
def normalized(target):
o2_typo = re.compile(r"02\.co\.uk")
port_typo = re.compile(r"(\d+\.\d+\.\d+\.\d+)\.(\d+)")
leading_zeros = re.compile(r"(/|\.|^)0+(\d+)")
subbed = o2_typo.sub(r'o2.co.uk', target)
subbed = port_typo.sub(r'\1:\2', subbed)
subbed = leading_zeros.sub(r'\1\2', subbed)
return subbed
try:
connection = sqlite3.connect(args.output)
cursor = connection.cursor()
cursor.execute('SELECT SQLITE_VERSION()')
version = cursor.fetchone()
if not args.quiet:
print("SQLite version: %s" % version)
print("Opening %s" % args.input)
cursor.execute("PRAGMA legacy_file_format=ON")
cursor.execute("PRAGMA journal_mode=DELETE")
cursor.execute("PRAGMA page_size=32768")
cursor.execute("VACUUM")
cursor.execute("DROP TABLE IF EXISTS apns")
cursor.execute("""CREATE TABLE apns(_id INTEGER PRIMARY KEY, mccmnc TEXT, mcc TEXT, mnc TEXT, carrier TEXT,
apn TEXT, mmsc TEXT, port INTEGER, type TEXT, protocol TEXT, bearer TEXT, roaming_protocol TEXT,
carrier_enabled INTEGER, mmsproxy TEXT, mmsport INTEGER, proxy TEXT, mvno_match_data TEXT,
mvno_type TEXT, authtype INTEGER, user TEXT, password TEXT, server TEXT)""")
apns = etree.parse(args.input)
root = apns.getroot()
pbar = None
if not args.quiet:
pbar = ProgressBar(widgets=['Processed: ', Counter(), ' apns (', Timer(), ')'], maxval=len(list(root))).start()
count = 0
for apn in root.iter("apn"):
if apn.get("mmsc") is None:
continue
sqlvars = ["?" for x in apn.attrib.keys()] + ["?"]
mccmnc = "%s%s" % (apn.get("mcc"), apn.get("mnc"))
normalized_mmsc = normalized(apn.get("mmsc"))
if normalized_mmsc != apn.get("mmsc"):
print("normalize MMSC: %s => %s" % (apn.get("mmsc"), normalized_mmsc))
apn.set("mmsc", normalized_mmsc)
if not apn.get("mmsproxy") is None:
normalized_mmsproxy = normalized(apn.get("mmsproxy"))
if normalized_mmsproxy != apn.get("mmsproxy"):
print("normalize proxy: %s => %s" % (apn.get("mmsproxy"), normalized_mmsproxy))
apn.set("mmsproxy", normalized_mmsproxy)
values = [apn.get(attrib) for attrib in apn.attrib.keys()] + [mccmnc]
keys = apn.attrib.keys() + ["mccmnc"]
cursor.execute("SELECT 1 FROM apns WHERE mccmnc = ? AND apn = ?", [mccmnc, apn.get("apn")])
if cursor.fetchone() is None:
statement = "INSERT INTO apns (%s) VALUES (%s)" % (", ".join(keys), ", ".join(sqlvars))
cursor.execute(statement, values)
count += 1
if not args.quiet:
pbar.update(count)
if not args.quiet:
pbar.finish()
connection.commit()
print("Successfully written to %s" % args.output)
if not args.no_gzip:
gzipped_file = "%s.gz" % (args.output,)
with open(args.output, 'rb') as orig:
with gzip.open(gzipped_file, 'wb') as gzipped:
gzipped.writelines(orig)
print("Successfully gzipped to %s" % gzipped_file)
if not args.quiet:
print("\nTo include this in the distribution, copy it to the project's assets/databases/ directory.")
print("If you support API 10 or lower, you must use the gzipped version to avoid corruption.")
except sqlite3.Error, e:
if connection:
connection.rollback()
print("Error: %s" % e.args[0])
sys.exit(1)
finally:
if connection:
connection.close()
-3
View File
@@ -1,3 +0,0 @@
argparse>=1.2.1
lxml>=3.3.3
progressbar-latest>=2.4
Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.
+82 -336
View File
@@ -1,279 +1,110 @@
import java.security.MessageDigest
buildscript {
repositories {
maven {
url "https://repo1.maven.org/maven2"
jcenter()
}
maven {
url 'https://maven.google.com/'
name 'Google'
}
maven {
url "https://repo1.maven.org/maven2"
jcenter()
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath files('libs/gradle-witness.jar')
}
}
apply plugin: 'com.android.application'
apply plugin: 'witness'
repositories {
google()
mavenCentral()
maven {
url "https://repo1.maven.org/maven2/"
}
maven {
url "https://raw.github.com/signalapp/maven/master/preferencefragment/releases/"
}
maven {
url "https://raw.github.com/signalapp/maven/master/smil/releases/"
}
maven {
url "https://raw.github.com/signalapp/maven/master/photoview/releases/"
}
maven {
url "https://raw.github.com/signalapp/maven/master/shortcutbadger/releases/"
}
maven {
url "https://raw.github.com/signalapp/maven/master/circular-progress-button/releases/"
}
maven {
url "https://raw.github.com/signalapp/maven/master/sqlcipher/release/"
}
maven {
url "https://maven.google.com"
}
maven { // textdrawable
url 'https://dl.bintray.com/amulyakhare/maven'
// Used only for PhotoView
url "https://jitpack.io"
name 'JitPack Github wrapper'
}
jcenter()
mavenLocal()
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
dependencies {
compile 'com.android.support:appcompat-v7:27.0.2'
compile 'com.android.support:recyclerview-v7:27.0.2'
compile 'com.android.support:design:27.0.2'
compile 'com.android.support:support-v13:27.0.2'
compile 'com.android.support:cardview-v7:27.0.2'
compile 'com.android.support:preference-v7:27.0.2'
compile 'com.android.support:preference-v14:27.0.2'
compile 'com.android.support:gridlayout-v7:27.0.2'
compile 'com.android.support:multidex:1.0.2'
compile 'com.android.support:exifinterface:27.0.2'
compile 'com.android.support.constraint:constraint-layout:1.1.2'
compile 'android.arch.lifecycle:extensions:1.1.1'
compile 'android.arch.lifecycle:common-java8:1.1.1'
implementation 'com.android.support:appcompat-v7:27.1.1' // one use in SearchToolbar.
implementation 'com.android.support:design:27.1.1' // used in various locations for a lot of components
implementation 'com.android.support:support-v13:27.1.1' // used to prevent a 25... version to be loaded (from where ever)
implementation 'com.android.support:preference-v7:27.1.1' // actually a dependency of -v14
implementation 'com.android.support:preference-v14:27.1.1' // used to manage the users preferences
implementation 'com.android.support:exifinterface:27.1.1' // Used to edit the Exif in BitmapUtil
implementation 'com.android.support.constraint:constraint-layout:1.1.2' // Used in several places
implementation 'android.arch.lifecycle:extensions:1.1.1' // Used in situations where data changes should be displayed directly (e.G. Search)
implementation 'android.arch.lifecycle:common-java8:1.1.1' // Used in situations where data changes should be displayed directly (e.G. Search)
compile 'com.google.android.gms:play-services-gcm:9.6.1'
compile 'com.google.android.gms:play-services-maps:9.6.1'
compile 'com.google.android.gms:play-services-places:9.6.1'
implementation 'com.google.android.exoplayer:exoplayer:r2.3.1' // plays video.
compile 'com.google.android.exoplayer:exoplayer:r2.3.1'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.5' // used as JSON library TODO: check if java builtin would work as well
compile('org.whispersystems:libpastelog:1.1.2') {
exclude group: 'com.squareup.okhttp3', module: 'okhttp'
}
compile 'org.whispersystems:signal-service-android:2.7.6'
compile 'org.whispersystems:webrtc-android:M68'
implementation 'com.journeyapps:zxing-android-embedded:3.4.0' // QR Code scanner
compile 'com.journeyapps:zxing-android-embedded:3.4.0'
compile "me.leolin:ShortcutBadger:1.1.16"
compile 'se.emilsjolander:stickylistheaders:2.7.0'
compile 'com.jpardogo.materialtabstrip:library:1.0.9'
compile 'org.apache.httpcomponents:httpclient-android:4.3.5'
compile 'com.github.chrisbanes:PhotoView:2.1.3'
compile 'com.github.bumptech.glide:glide:4.5.0'
implementation "me.leolin:ShortcutBadger:1.1.16" // display messagecount on the home screen icon.
implementation 'com.jpardogo.materialtabstrip:library:1.0.9' // used in the emoji selector for the tab selection.
implementation 'com.github.chrisbanes:PhotoView:2.1.3' // does the zooming on photos / media
implementation 'com.github.bumptech.glide:glide:4.5.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.5.0'
compile 'com.makeramen:roundedimageview:2.1.0'
compile 'com.pnikosis:materialish-progress:1.5'
compile 'org.greenrobot:eventbus:3.0.0'
compile 'pl.tajchert:waitingdots:0.1.0'
compile 'com.soundcloud.android:android-crop:0.9.10@aar'
compile 'com.melnykov:floatingactionbutton:1.3.0'
compile 'com.squareup.dagger:dagger:1.2.2'
annotationProcessor 'com.squareup.dagger:dagger-compiler:1.2.2'
compile 'mobi.upod:time-duration-picker:1.1.3'
provided 'com.squareup.dagger:dagger-compiler:1.2.2'
compile 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
compile 'com.google.zxing:core:3.2.1'
compile ('com.davemorrissey.labs:subsampling-scale-image-view:3.6.0') {
implementation 'com.makeramen:roundedimageview:2.1.0' // crops the avatars to circles
implementation 'com.pnikosis:materialish-progress:1.5' // used only in the "Progress Wheel" in Share Activity.
implementation 'com.soundcloud.android:android-crop:0.9.10@aar' // used in Group Select Avatar, should be unified with profie
implementation 'com.nineoldandroids:library:2.4.0' // DEPRECATED! Used to slide in the half-camera.
implementation 'mobi.upod:time-duration-picker:1.1.3' // Used to pick the time for inactivity.
implementation 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1' // number of unread messages,
// the one-letter circle for the contacts (when there is not avatar) and a white background.
implementation 'com.google.zxing:core:3.2.1' // QR Code scanner
implementation ('com.davemorrissey.labs:subsampling-scale-image-view:3.6.0') { // for the zooming on photos / media
exclude group: 'com.android.support', module: 'support-annotations'
}
compile ('cn.carbswang.android:NumberPickerView:1.0.9') {
exclude group: 'com.android.support', module: 'appcompat-v7'
}
compile ('com.tomergoldst.android:tooltips:1.0.6') {
exclude group: 'com.android.support', module: 'appcompat-v7'
}
compile ('com.klinkerapps:android-smsmms:4.0.1') {
exclude group: 'com.squareup.okhttp', module: 'okhttp'
exclude group: 'com.squareup.okhttp', module: 'okhttp-urlconnection'
}
compile 'com.annimon:stream:1.1.8'
compile ('com.takisoft.fix:colorpicker:0.9.1') {
exclude group: 'com.android.support', module: 'appcompat-v7'
exclude group: 'com.android.support', module: 'recyclerview-v7'
}
compile 'com.codewaves.stickyheadergrid:stickyheadergrid:0.9.4'
compile 'com.github.dmytrodanylyk.circular-progress-button:library:1.1.3-S2'
compile 'org.signal:android-database-sqlcipher:3.5.9-S3'
compile ('com.googlecode.ez-vcard:ez-vcard:0.9.11') {
exclude group: 'com.fasterxml.jackson.core'
exclude group: 'org.freemarker'
}
implementation 'com.annimon:stream:1.1.8' // brings future java streams api to SDK Version < 24
implementation 'com.codewaves.stickyheadergrid:stickyheadergrid:0.9.4' // glues the current time segment text in the gallery to the top.
implementation 'com.mapbox.mapboxsdk:mapbox-android-sdk:7.2.0'
testCompile 'junit:junit:4.12'
testCompile 'org.assertj:assertj-core:1.7.1'
testCompile 'org.mockito:mockito-core:1.9.5'
testCompile 'org.powermock:powermock-api-mockito:1.6.1'
testCompile 'org.powermock:powermock-module-junit4:1.6.1'
testCompile 'org.powermock:powermock-module-junit4-rule:1.6.1'
testCompile 'org.powermock:powermock-classloading-xstream:1.6.1'
//debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.3'
//releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.3'
//debugImplementation 'com.squareup.leakcanary:leakcanary-support-fragment:1.6.3'
androidTestCompile 'com.android.support:multidex:1.0.2'
androidTestCompile 'com.android.support:multidex-instrumentation:1.0.2'
androidTestCompile 'com.google.dexmaker:dexmaker:1.2'
androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.2'
androidTestCompile ('org.assertj:assertj-core:1.7.1') {
testImplementation 'junit:junit:4.12'
testImplementation 'junit:junit:4.12'
testImplementation 'org.assertj:assertj-core:1.7.1'
testImplementation 'org.mockito:mockito-core:1.9.5'
testImplementation 'org.powermock:powermock-api-mockito:1.6.1'
testImplementation 'org.powermock:powermock-module-junit4:1.6.1'
testImplementation 'org.powermock:powermock-module-junit4-rule:1.6.1'
testImplementation 'org.powermock:powermock-classloading-xstream:1.6.1'
androidTestImplementation ('org.assertj:assertj-core:1.7.1') {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
androidTestCompile ('com.squareup.assertj:assertj-android:1.1.1') {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
exclude group: 'com.android.support', module: 'support-annotations'
}
}
dependencyVerification {
verify = [
'com.android.support:design:fa5c27a705310e95a8f4099c98777132ed901a0d69178942306bb34cd76f0d57',
'com.android.support:preference-v14:1fcf40bd560dc21ce55b6a292d1326d28f52dc5e4f2a64eef2f38dd95777b645',
'com.android.support:preference-v7:d9f32ddc92f8d6a0bd86a18f4fcaff805fa021245e395b6e7dd382907443ee53',
'com.pnikosis:materialish-progress:d71d80e00717a096784482aee21001a9d299fec3833e4ebd87739ed36cf77c54',
'pl.tajchert:waitingdots:2835d49e0787dbcb606c5a60021ced66578503b1e9fddcd7a5ef0cd5f095ba2c',
'mobi.upod:time-duration-picker:db469ce0f48dd96b892eac424ed76870e54bf00fe0a28cdcddfbe5f2a226a0e1',
'com.codewaves.stickyheadergrid:stickyheadergrid:5b4aa6a52a957cfd55f60f4220c11c0c371385a3cb9786cae03c260dcdef5794',
'com.android.support:appcompat-v7:b2825e8b47f665d3362d8481c8d147d1af9230d16f23a2b94f6ccbc53c68cec1',
'com.melnykov:floatingactionbutton:15d58d4fac0f7a288d0e5301bbaf501a146f5b3f5921277811bf99bd3b397263',
'com.android.support:recyclerview-v7:3eb953930f10941f2b0447ec123a9b03d2746a42a99c523e82c3ece3308ca70b',
'com.android.support:support-v13:6f2848811ceef2e32cc98da02a045d65f7e7447a6bd7198b9ec10aa14d7ad55c',
'com.android.support:cardview-v7:57f867a3c8f33e2d4dc0a03e2dfa03cad6267a908179f04a725a68ea9f0b8ccf',
'com.android.support:gridlayout-v7:227b5fdffa20f53bd562503aab6d2293d52cf64b5a6ab1116d2150f87bff9e88',
'com.android.support:multidex:7cd48755c7cfdb6dd2d21cbb02236ec390f6ac91cde87eb62f475b259ab5301d',
'com.android.support:exifinterface:0e7cd526c4468895cd8549def46b3d33c8bcfb1ae4830569898d8c7326b15bb2',
'android.arch.lifecycle:extensions:429426b2feec2245ffc5e75b3b5309bedb36159cf06dc71843ae43526ac289b6',
'android.arch.lifecycle:common-java8:7078b5c8ccb94203df9cc2a463c69cf0021596e6cf966d78fbfd697aaafe0630',
'com.google.android.gms:play-services-gcm:312e61253a236f2d9b750b9c04fc92fd190d23b0b2755c99de6ce4a28b259dae',
'com.google.android.gms:play-services-places:abf3a4a3b146ec7e6e753be62775e512868cf37d6f88ffe2d81167b33b57132b',
'com.google.android.gms:play-services-maps:45e8021e7ddac4a44a82a0e9698991389ded3023d35c58f38dbd86d54211ec0e',
'com.google.android.exoplayer:exoplayer:955085aa611a8f7cf6c61b88ae03d1a392f4ad94c9bfbc153f3dedb9ffb14718',
'org.whispersystems:libpastelog:fe56b4db9ec743c8b565e3e4caa9228fafe132dc0bf82000d6e359b97a81177c',
'org.whispersystems:signal-service-android:823eed29e64fb0aa30d2078cb5ec0245e2a0713a4028121329c5c28788ef27f8',
'org.whispersystems:webrtc-android:66cb312eb024eaf6aa93e662d37d0c46632e049d47a2dcc9c291207589ee7a43',
'me.leolin:ShortcutBadger:e3cb3e7625892129b0c92dd5e4bc649faffdd526d5af26d9c45ee31ff8851774',
'se.emilsjolander:stickylistheaders:a08ca948aa6b220f09d82f16bbbac395f6b78897e9eeac6a9f0b0ba755928eeb',
'com.jpardogo.materialtabstrip:library:c6ef812fba4f74be7dc4a905faa4c2908cba261a94c13d4f96d5e67e4aad4aaa',
'org.apache.httpcomponents:httpclient-android:6f56466a9bd0d42934b90bfbfe9977a8b654c058bf44a12bdc2877c4e1f033f1',
'com.github.chrisbanes:PhotoView:ed06775308da260e1fd86d1d3288988fcd3d80db24ce0d7c9fcfedc39e622292',
'com.github.bumptech.glide:glide:997de7ac95be6c944d3b8cbe13de11307736ea45451c1b09a6cec7c328ead59f',
'com.makeramen:roundedimageview:1f5a1865796b308c6cdd114acc6e78408b110f0a62fc63553278fbeacd489cd1',
'org.greenrobot:eventbus:180d4212467df06f2fbc9c8d8a2984533ac79c87769ad883bc421612f0b4e17c',
'com.soundcloud.android:android-crop:ffd4b973cf6e97f7d64118a0dc088df50e9066fd5634fe6911dd0c0c5d346177',
'com.squareup.dagger:dagger:789aca24537022e49f91fc6444078d9de8f1dd99e1bfb090f18491b186967883',
'com.amulyakhare:com.amulyakhare.textdrawable:54c92b5fba38cfd316a07e5a30528068f45ce8515a6890f1297df4c401af5dcb',
'com.google.zxing:core:b4d82452e7a6bf6ec2698904b332431717ed8f9a850224f295aec89de80f2259',
'com.davemorrissey.labs:subsampling-scale-image-view:550c5baa07e0bb4ff0a18b705e96d34436d22619248bd8c08c08c730b1f55cfe',
'cn.carbswang.android:NumberPickerView:18b3c316d62c7c277978a8d4ed57a5b8f4e943762264960f579a8a549c756729',
'com.tomergoldst.android:tooltips:4c56697dd1ad64b8066535c61f961a6d901e7ae5d97ae27084ba40ad620349b6',
'com.klinkerapps:android-smsmms:e7c3328a0f3a8dd44daa8129de4e99996f3057a4546e47891b036b81e0ebf1d1',
'com.annimon:stream:5da6e2e3e0551d61a3ea7014f04312276549e3dd739cf637996e4cf43c5535b9',
'com.takisoft.fix:colorpicker:f5d0dbabe406a1800498ca9c1faf34db36e021d8488bf10360f29961fe3ab0d1',
'com.github.dmytrodanylyk.circular-progress-button:library:8dc6a29a5a8db7b2ad5a9a7fda1dc9ae0893f4c8f0545732b2c63854ea693e8e',
'org.signal:android-database-sqlcipher:33d4063336893af00b9d68b418e7b290cace74c20ce8aacffddc0911010d3d73',
'com.googlecode.ez-vcard:ez-vcard:7e24ad50b222d2f70ac91bdccfa3c0f6200b078d797cb784837f75e77bb4210f',
'com.google.android.gms:play-services-iid:54e919f9957b8b7820da7ee9b83471d00d0cac1cf08ddea8b5b41aea80bb1a70',
'com.google.android.gms:play-services-base:0ca636a8fc9a5af45e607cdcd61783bf5d561cbbb0f862021ce69606eee5ad49',
'com.google.android.gms:play-services-tasks:69ec265168e601d0203d04cd42e34bb019b2f029aa1e16fabd38a5153eea2086',
'com.google.android.gms:play-services-basement:95dd882c5ffba15b9a99de3fefb05d3a01946623af67454ca00055d222f85a8d',
'com.android.support:support-v4:1b2b37169fcccfef5e563d273749e3792decdce9818bc17932403a2363f537b4',
'com.android.support:support-fragment:e4358388022a2205777575a7251fe357334658e4123d5d6e3b082f5899d9b011',
'com.android.support:animated-vector-drawable:5b117a2c13a898c2a3c84c480d64edcfac2ef720aa9b742c29249fac774ffc48',
'com.android.support:support-core-ui:2284072511a95d504c074de80c82cd33724c6d2754117833b98ba3a09994163e',
'com.android.support:transition:1a7db0453c1467fc8fd815e6d50ca6bb475a7a9ba6b5f3b307329688a7c62a68',
'com.android.support:support-core-utils:b69c6e1e7731b876b910fc7100bcadf40a57f27b32ca26b91400995542112c96',
'com.android.support:support-media-compat:6dd9327ee9aa467cab479aad97df375072b2b6ba61eadffdaa5a88de3843c457',
'com.android.support:support-vector-drawable:bf4f4fcbf58b1380616581224e6487c230bfdb3434ec353d4adaa4b1f4865cfa',
'com.android.support:support-compat:ed4d25d91a0b13d8b9def1c0de69ed03d7fb89d50fb37eb0e9b63b0cf7a42357',
'android.arch.lifecycle:livedata:50ab0490c1ff1a7cfb4e554032998b080888946d0dd424f39900efc4a1bcd750',
'android.arch.lifecycle:livedata-core:d6fdd8b985d6178d7ea2f16986a24e83f1bee936b74d43167c69e08d3cc12c50',
'android.arch.core:runtime:c3215aa5873311b3f88a6f4e4a3c25ad89971bc127de8c3e1291c57f93a05c39',
'android.arch.lifecycle:runtime:c4e4be66c1b2f0abec593571454e1de14013f7e0f96bf2a9f212931a48cae550',
'android.arch.core:common:3a616a32f433e9e23f556b38575c31b013613d3ae85206263b7625fe1f4c151a',
'android.arch.lifecycle:common:8d378e88ebd5189e09eef623414812c868fd90aa519d6160e2311fb8b81cff56',
'android.arch.lifecycle:viewmodel:7de29cfaba77d6b5d5be234c57f6812d0150d087e63941af22ba1d1f8e2bc96a',
'com.github.bumptech.glide:gifdecoder:59ccf3bb0cec11dab4b857382cbe0b171111b6fc62bf141adce4e1180889af15',
'com.android.support:support-annotations:af05330d997eb92a066534dbe0a3ea24347d26d7001221092113ae02a8f233da',
'org.whispersystems:signal-protocol-android:5b8acded7f2a40178eb90ab8e8cbfec89d170d91b3ff5e78487d1098df6185a1',
'org.whispersystems:signal-service-java:6169643c65dcba8c784744006fc3afd9b6f309041b310a33a624121e3577433a',
'com.github.bumptech.glide:disklrucache:c1b1b6f5bbd01e2fcdc9d7f60913c8d338bdb65ed4a93bfa02b56f19daaade4b',
'com.github.bumptech.glide:annotations:bede99ef9f71517a4274bac18fd3e483e9f2b6108d7d6fe8f4949be4aa4d9512',
'com.nineoldandroids:library:68025a14e3e7673d6ad2f95e4b46d78d7d068343aa99256b686fe59de1b3163a',
'javax.inject:javax.inject:91c77044a50c481636c32d916fd89c9118a72195390452c81065080f957de7ff',
'com.klinkerapps:logger:177e325259a8b111ad6745ec10db5861723c99f402222b80629f576f49408541',
'com.google.android:flexbox:a9989fd13ae2ee42765dfc515fe362edf4f326e74925d02a10369df8092a4935',
'org.jsoup:jsoup:abeaf34795a4de70f72aed6de5966d2955ec7eb348eeb813324f23c999575473',
'org.whispersystems:curve25519-android:82595394422b957d4a5b5f1b27b75ba25cf6dc4db4d312418ca38cd6fff279ca',
'org.whispersystems:signal-protocol-java:5152c2b01a25147967d6bf82e540f947901bdfa79260be3eb3e96b03f787d6b5',
'com.google.protobuf:protobuf-java:e0c1c64575c005601725e7c6a02cebf9e1285e888f756b2a1d73ffa8d725cc74',
'com.googlecode.libphonenumber:libphonenumber:183392c0565be16d3f6f86680b4106bbde6fe31a402ad21bf9823d938c0c8706',
'com.fasterxml.jackson.core:jackson-databind:835097bcdd11f5bc8a08378c70d4c8054dfa4b911691cc2752063c75534d198d',
'com.squareup.okhttp3:okhttp:7265adbd6f028aade307f58569d814835cd02bc9beffb70c25f72c9de50d61c4',
'com.madgag.spongycastle:prov:b8c3fec3a59aac1aa04ccf4dad7179351e54ef7672f53f508151b614c131398a',
'org.whispersystems:curve25519-java:7dd659d8822c06c3aea1a47f18fac9e5761e29cab8100030b877db445005f03e',
'com.fasterxml.jackson.core:jackson-annotations:0ca408c24202a7626ec8b861e99d85eca5e38b73311dd6dd12e3e9deecc3fe94',
'com.fasterxml.jackson.core:jackson-core:cbf4604784b4de226262845447a1ad3bb38a6728cebe86562e2c5afada8be2c0',
'com.squareup.okio:okio:734269c3ebc5090e3b23566db558f421f0b4027277c79ad5d176b8ec168bb850',
'com.madgag.spongycastle:core:8d6240b974b0aca4d3da9c7dd44d42339d8a374358aca5fc98e50a995764511f',
]
}
android {
flavorDimensions "none"
compileSdkVersion 27
buildToolsVersion '27.0.1'
buildToolsVersion '27.0.3'
useLibrary 'org.apache.http.legacy'
dexOptions {
javaMaxHeapSize "4g"
}
defaultConfig {
versionCode 394
versionName "0.0.4"
applicationId "chat.delta.androidii"
versionCode 542
versionName "0.301.0"
applicationId "com.b44t.messenger"
minSdkVersion 14
targetSdkVersion 25
multiDexEnabled true
targetSdkVersion 26
vectorDrawables.useSupportLibrary = true
project.ext.set("archivesBaseName", "Signal");
buildConfigField "long", "BUILD_TIMESTAMP", getLastCommitTimestamp() + "L"
buildConfigField "String", "SIGNAL_URL", "\"https://textsecure-service.whispersystems.org\""
buildConfigField "String", "SIGNAL_CDN_URL", "\"https://cdn.signal.org\""
buildConfigField "String", "SIGNAL_SERVICE_STATUS_URL", "\"uptime.signal.org\""
buildConfigField "String", "GIPHY_PROXY_HOST", "\"giphy-proxy-production.whispersystems.org\""
buildConfigField "int", "GIPHY_PROXY_PORT", "80"
buildConfigField "String", "USER_AGENT", "\"OWA\""
// base name of the generated apk
project.ext.set("archivesBaseName", "deltachat");
buildConfigField "boolean", "DEV_BUILD", "false"
buildConfigField "String", "MAP_ACCESS_TOKEN", '"pk.eyJ1IjoiZGVsdGFjaGF0IiwiYSI6ImNqc3c1aWczMzBjejY0M28wZmU0a3cwMzMifQ.ZPTH9dFJaav06RAu4rTYHw"'
ndk {
abiFilters "armeabi", "armeabi-v7a", "x86"
@@ -297,6 +128,23 @@ android {
}
signingConfigs {
signingConfigs {
debug {
// add `DC_DEBUG_STORE_FILE=/path/to/debug.keystore` to `~/.gradle/gradle.properties`
if(project.hasProperty("DC_DEBUG_STORE_FILE" )) {
storeFile file(DC_DEBUG_STORE_FILE )
}
}
release {
// can be defined at `~/.gradle/gradle.properties` or at "Build/Generate signed APK"
if(project.hasProperty("DC_RELEASE_STORE_FILE")) {
storeFile file(DC_RELEASE_STORE_FILE)
storePassword DC_RELEASE_STORE_PASSWORD
keyAlias DC_RELEASE_KEY_ALIAS
keyPassword DC_RELEASE_KEY_PASSWORD
}
}
}
release
}
@@ -304,26 +152,17 @@ android {
debug {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-google-play-services.pro',
'proguard-dagger.pro',
'proguard-jackson.pro',
'proguard-sqlite.pro',
'proguard-appcompat-v7.pro',
'proguard-square-okhttp.pro',
'proguard-square-okio.pro',
'proguard-spongycastle.pro',
'proguard-rounded-image-view.pro',
'proguard-glide.pro',
'proguard-shortcutbadger.pro',
'proguard-retrofit.pro',
'proguard-webrtc.pro',
'proguard-klinker.pro',
'proguard-retrolambda.pro',
'proguard-okhttp.pro',
'proguard-ez-vcard.pro',
'proguard.cfg'
testProguardFiles 'proguard-automation.pro',
'proguard.cfg'
applicationIdSuffix ".beta"
}
release {
minifyEnabled true
@@ -333,18 +172,12 @@ android {
}
productFlavors {
play {
fat {
dimension "none"
ext.websiteUpdateUrl = "null"
buildConfigField "boolean", "PLAY_STORE_DISABLED", "false"
buildConfigField "String", "NOPLAY_UPDATE_URL", "$ext.websiteUpdateUrl"
}
website {
gplay {
dimension "none"
ext.websiteUpdateUrl = "https://updates.signal.org/android"
buildConfigField "boolean", "PLAY_STORE_DISABLED", "true"
buildConfigField "String", "NOPLAY_UPDATE_URL", "\"$ext.websiteUpdateUrl\""
applicationId "chat.delta"
}
}
@@ -365,99 +198,12 @@ android {
assets.srcDirs = ['assets']
jniLibs.srcDirs = ['libs']
}
androidTest {
java.srcDirs = ['test/androidTest/java']
}
test {
java.srcDirs = ['test/unitTest/java']
java.srcDirs = ['test']
}
website.manifest.srcFile 'website/AndroidManifest.xml'
}
lintOptions {
abortOnError false
}
}
task assembleWebsiteDescriptor << {
android.applicationVariants.all { variant ->
if (variant.name.equals("websiteDebug") ||
variant.name.equals("websiteRelease"))
{
File file = new File(variant.outputs[0].outputFile.path)
if (file.exists()) {
MessageDigest md = MessageDigest.getInstance("SHA-256");
file.eachByte 4096, {bytes, size ->
md.update(bytes, 0, size);
}
String digest = md.digest().collect {String.format "%02x", it}.join();
String url = variant.productFlavors.get(0).ext.websiteUpdateUrl
String apkName = variant.outputs[0].outputFile.name
String descriptor = "{" +
"\"versionCode\" : $project.android.defaultConfig.versionCode," +
"\"versionName\" : \"$project.android.defaultConfig.versionName\"," +
"\"sha256sum\" : \"$digest\"," +
"\"url\" : \"$url/$apkName\"" +
"}"
File descriptorFile = new File(variant.outputs[0].outputFile.parent, apkName.replace(".apk", ".json"))
descriptorFile.write(descriptor)
}
}
}
}
tasks.whenTaskAdded { task ->
if (task.name.equals("lint")) {
task.enabled = false
}
if (task.name.equals("assembleWebsiteDebug") ||
task.name.equals("assembleWebsiteRelease"))
{
task.finalizedBy assembleWebsiteDescriptor
}
}
def getLastCommitTimestamp() {
new ByteArrayOutputStream().withStream { os ->
def result = exec {
executable = 'git'
args = ['log', '-1', '--pretty=format:%ct']
standardOutput = os
}
return os.toString() + "000"
}
}
def Properties props = new Properties()
def propFile = new File('signing.properties')
if (propFile.canRead()){
props.load(new FileInputStream(propFile))
if (props !=null &&
props.containsKey('STORE_FILE') &&
props.containsKey('STORE_PASSWORD') &&
props.containsKey('KEY_ALIAS') &&
props.containsKey('KEY_PASSWORD'))
{
android.signingConfigs.release.storeFile = file(props['STORE_FILE'])
android.signingConfigs.release.storePassword = props['STORE_PASSWORD']
android.signingConfigs.release.keyAlias = props['KEY_ALIAS']
android.signingConfigs.release.keyPassword = props['KEY_PASSWORD']
} else {
println 'signing.properties found but some entries are missing'
android.buildTypes.release.signingConfig = null
}
}else {
println 'signing.properties not found'
android.buildTypes.release.signingConfig = null
}
+56
View File
@@ -0,0 +1,56 @@
# F-Droid - Overview
- https://gitlab.com/fdroid/fdroiddata/blob/master/metadata/com.b44t.messenger.yml
contains the descripion and all meta data shown for Delta Chat on F-Droid
- when a new tag in the form `v1.2.3` is added to the deltachat-android repo,
F-Droid will pick up this version and distribute it -
this may take some days or even weeks.
before creating a new version, please have a look at docs/release-checklist.md
# F-Droid Build status
- <https://f-droid.org/wiki/page/com.b44t.messenger/lastbuild>
shows the last build attempt
- <https://f-droid.org/repo/com.b44t.messenger_VERSIONCODE.apk>
(with VERSIONCODE = 537 or so) links to successfully built apk
even if it is not yet in the index (which may take some more time).
# Use F-Droid-tools locally
$ git clone https://gitlab.com/fdroid/fdroiddata
$ git clone https://gitlab.com/fdroid/fdroidserver
$ cd fdroiddata
now, metadata/com.b44t.messenger.txt can be modified.
for testing, one can change the repo to a branch
by adding the line `Update Check Mode:RepoManifest/BRANCH` to the file.
set some path to ndk etc:
$ cp ../fdroidserver/examples/config.py . # adapt file as needed
checkout repo as f-droid would do:
$ ../fdroidserver/fdroid checkupdates -v com.b44t.messenger
(for testing with uncommited changes, add --allow-dirty)
build repo as f-droid would do:
$ ../froidserver/fdroid build -v com.b44t.messenger:<versionCode>
(via https://f-droid.org/docs/Installing_the_Server_and_Repo_Tools/
and https://f-droid.org/docs/Building_Applications/ -
might require `pip install pyasn1 pyasn1_modules pyaml requests`)
# Changing the Description on F-Droid
- the description can be changed via a PR to the file above
- make sure there is a "newline" at the end of the description
(see https://gitlab.com/fdroid/fdroiddata/merge_requests/3580)
- reformat the metadata using
$ ../fdroidserver/fdroid rewritemeta com.b44t.messenger # called from fdroiddata dir
Binary file not shown.

After

Width:  |  Height:  |  Size: 443 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

+14
View File
@@ -0,0 +1,14 @@
# Google Play Store
If you have access to uploading and signing apks,
this can be done at
https://play.google.com/apps/publish/
The description can be discussed and changed at
https://github.com/deltachat/deltachat-android/blob/master/store/text.md
In future, we can also add the screenshots or other assets there.
# Google Play Releases
see `release-checklist.md`
+45
View File
@@ -0,0 +1,45 @@
# Release new F-Droid version
Release core, if needed, then:
1. $ ./tools/update-core.sh
2. $ tx pull # test and commit changes
3. bump version, adapt changelog, commit
4. deltachat-android on Github: "Draft a new release" with the version form `v1.2.3`
... some days later, F-Droid should be updated.
# Release new Play Store version
Release core, f-droid, then:
5. In Android Studio, select "Build / Generate signed APK"
(not: App Bundle as this would require uploading the signing key to Google)
6. Select flavor `gplayRelease` with V1 signature enabled
(needed for easy APK verificarion), V2 is optional
7. Test the generated APK from `gplay/release`
8. Upload the APK to https://play.google.com/apps/publish/
# For an additional APK
9. In Android Studio make sure, the target is fatDebug
and select "Build / Build APK"
(TODO: or also use the release signing key)
10. Upload the generated APK to the created Github release
# Testing checklist
Only some rough ideas, ideally, this should result into a simple checklist
that can be checked before releasing.
However, although it would be nice to test "everything", we should keep in mind
that the test should be doable in, say, 10~15 minutes.
- create new account with (one of?): gmail, yandex, other
or (?) test an existing account
- send and receive a message
- create a group
- do a contact verification
- join a group via a qr scan
+5
View File
@@ -898,11 +898,15 @@ messenger-backend/src/dc_contact.c \
messenger-backend/src/dc_dehtml.c \
messenger-backend/src/dc_hash.c \
messenger-backend/src/dc_imap.c \
messenger-backend/src/dc_oauth2.c \
messenger-backend/src/dc_job.c \
messenger-backend/src/dc_jobthread.c \
messenger-backend/src/dc_key.c \
messenger-backend/src/dc_keyring.c \
messenger-backend/src/dc_loginparam.c \
messenger-backend/src/dc_lot.c \
messenger-backend/src/dc_move.c \
messenger-backend/src/dc_location.c \
messenger-backend/src/dc_context.c \
messenger-backend/src/dc_configure.c \
messenger-backend/src/dc_e2ee.c \
@@ -919,6 +923,7 @@ messenger-backend/src/dc_msg.c \
messenger-backend/src/dc_param.c \
messenger-backend/src/dc_pgp.c \
messenger-backend/src/dc_saxparser.c \
messenger-backend/src/dc_jsmn.c \
messenger-backend/src/dc_simplify.c \
messenger-backend/src/dc_smtp.c \
messenger-backend/src/dc_sqlite3.c \
+233 -33
View File
@@ -64,8 +64,15 @@ static jstring jstring_new__(JNIEnv* env, const char* a)
return ret;
}
// convert c-timestamp to java-timestamp
#define JTIMESTAMP(a) (((jlong)a)*((jlong)1000))
// convert java-timestamp to c-timestamp
#define CTIMESTAMP(a) (((jlong)a)/((jlong)1000))
static jintArray dc_array2jintArray_n_unref(JNIEnv *env, dc_array_t* ca)
{
/* takes a C-array of type dc_array_t and converts it it a Java-Array.
@@ -238,27 +245,63 @@ JNIEXPORT jint Java_com_b44t_messenger_DcContext_isConfigured(JNIEnv *env, jobje
}
JNIEXPORT void Java_com_b44t_messenger_DcContext_performJobs(JNIEnv *env, jobject obj)
JNIEXPORT void Java_com_b44t_messenger_DcContext_performImapJobs(JNIEnv *env, jobject obj)
{
dc_perform_imap_jobs(get_dc_context(env, obj));
}
JNIEXPORT void Java_com_b44t_messenger_DcContext_idle(JNIEnv *env, jobject obj)
JNIEXPORT void Java_com_b44t_messenger_DcContext_performImapIdle(JNIEnv *env, jobject obj)
{
dc_perform_imap_idle(get_dc_context(env, obj));
}
JNIEXPORT void Java_com_b44t_messenger_DcContext_interruptIdle(JNIEnv *env, jobject obj)
JNIEXPORT void Java_com_b44t_messenger_DcContext_performImapFetch(JNIEnv *env, jobject obj)
{
dc_perform_imap_fetch(get_dc_context(env, obj));
}
JNIEXPORT void Java_com_b44t_messenger_DcContext_interruptImapIdle(JNIEnv *env, jobject obj)
{
dc_interrupt_imap_idle(get_dc_context(env, obj));
}
JNIEXPORT void Java_com_b44t_messenger_DcContext_fetch(JNIEnv *env, jobject obj)
JNIEXPORT void Java_com_b44t_messenger_DcContext_performSentboxFetch(JNIEnv *env, jobject obj)
{
dc_perform_imap_fetch(get_dc_context(env, obj));
dc_perform_sentbox_fetch(get_dc_context(env, obj));
}
JNIEXPORT void Java_com_b44t_messenger_DcContext_performSentboxIdle(JNIEnv *env, jobject obj)
{
dc_perform_sentbox_idle(get_dc_context(env, obj));
}
JNIEXPORT void Java_com_b44t_messenger_DcContext_interruptSentboxIdle(JNIEnv *env, jobject obj)
{
dc_interrupt_sentbox_idle(get_dc_context(env, obj));
}
JNIEXPORT void Java_com_b44t_messenger_DcContext_performMvboxFetch(JNIEnv *env, jobject obj)
{
dc_perform_mvbox_fetch(get_dc_context(env, obj));
}
JNIEXPORT void Java_com_b44t_messenger_DcContext_performMvboxIdle(JNIEnv *env, jobject obj)
{
dc_perform_mvbox_idle(get_dc_context(env, obj));
}
JNIEXPORT void Java_com_b44t_messenger_DcContext_interruptMvboxIdle(JNIEnv *env, jobject obj)
{
dc_interrupt_mvbox_idle(get_dc_context(env, obj));
}
@@ -274,9 +317,9 @@ JNIEXPORT void Java_com_b44t_messenger_DcContext_performSmtpIdle(JNIEnv *env, jo
}
JNIEXPORT void Java_com_b44t_messenger_DcContext_interruptSmtpIdle(JNIEnv *env, jobject obj)
JNIEXPORT void Java_com_b44t_messenger_DcContext_maybeNetwork(JNIEnv *env, jobject obj)
{
dc_interrupt_smtp_idle(get_dc_context(env, obj));
dc_maybe_network(get_dc_context(env, obj));
}
@@ -452,11 +495,15 @@ JNIEXPORT jint Java_com_b44t_messenger_DcContext_removeContactFromChat(JNIEnv *e
}
JNIEXPORT void Java_com_b44t_messenger_DcContext_setDraft(JNIEnv *env, jobject obj, jint chat_id, jstring draft /* NULL=delete */)
JNIEXPORT void Java_com_b44t_messenger_DcContext_setDraft(JNIEnv *env, jobject obj, jint chat_id, jobject msg /* NULL=delete */)
{
CHAR_REF(draft);
dc_set_text_draft(get_dc_context(env, obj), chat_id, draftPtr /* NULL=delete */);
CHAR_UNREF(draft);
dc_set_draft(get_dc_context(env, obj), chat_id, get_dc_msg(env, msg));
}
JNIEXPORT jlong Java_com_b44t_messenger_DcContext_getDraftCPtr(JNIEnv *env, jobject obj, jint chat_id)
{
return (jlong)dc_get_draft(get_dc_context(env, obj), chat_id);
}
@@ -559,7 +606,7 @@ JNIEXPORT void Java_com_b44t_messenger_DcContext_setConfig(JNIEnv *env, jobject
}
JNIEXPORT jstring Java_com_b44t_messenger_DcContext_getConfig(JNIEnv *env, jobject obj, jstring key, jstring def/*may be NULL*/)
JNIEXPORT jstring Java_com_b44t_messenger_DcContext_getConfig(JNIEnv *env, jobject obj, jstring key)
{
CHAR_REF(key);
char* temp = dc_get_config(get_dc_context(env, obj), keyPtr);
@@ -611,6 +658,19 @@ JNIEXPORT jstring Java_com_b44t_messenger_DcContext_getInfo(JNIEnv *env, jobject
}
JNIEXPORT jstring Java_com_b44t_messenger_DcContext_getOauth2Url(JNIEnv *env, jobject obj, jstring addr, jstring redirectUrl)
{
CHAR_REF(addr);
CHAR_REF(redirectUrl);
char* temp = dc_get_oauth2_url(get_dc_context(env, obj), addrPtr, redirectUrlPtr);
jstring ret = JSTRING_NEW(temp);
free(temp);
CHAR_UNREF(redirectUrl);
CHAR_UNREF(addr);
return ret;
}
JNIEXPORT jstring Java_com_b44t_messenger_DcContext_getContactEncrInfo(JNIEnv *env, jobject obj, jint contact_id)
{
char* temp = dc_get_contact_encrinfo(get_dc_context(env, obj), contact_id);
@@ -681,6 +741,114 @@ JNIEXPORT jint Java_com_b44t_messenger_DcContext_addAddressBook(JNIEnv *env, job
}
JNIEXPORT void Java_com_b44t_messenger_DcContext_sendLocationsToChat(JNIEnv *env, jobject obj, jint chat_id, jint seconds)
{
dc_send_locations_to_chat(get_dc_context(env, obj), chat_id, seconds);
}
JNIEXPORT jboolean Java_com_b44t_messenger_DcContext_isSendingLocationsToChat(JNIEnv *env, jobject obj, jint chat_id)
{
return (dc_is_sending_locations_to_chat(get_dc_context(env, obj), chat_id)!=0);
}
JNIEXPORT jboolean Java_com_b44t_messenger_DcContext_setLocation(JNIEnv *env, jobject obj, jfloat latitude, jfloat longitude, jfloat accuracy)
{
return (dc_set_location(get_dc_context(env, obj), latitude, longitude, accuracy)!=0);
}
JNIEXPORT jlong Java_com_b44t_messenger_DcContext_getLocationsCPtr(JNIEnv *env, jobject obj, jint chat_id, jint contact_id, jlong timestamp_start, jlong timestamp_end)
{
return (jlong)dc_get_locations(get_dc_context(env, obj), chat_id, contact_id, CTIMESTAMP(timestamp_start), CTIMESTAMP(timestamp_end));
}
JNIEXPORT void Java_com_b44t_messenger_DcContext_deleteAllLocations(JNIEnv *env, jobject obj)
{
dc_delete_all_locations(get_dc_context(env, obj));
}
/*******************************************************************************
* DcArray
******************************************************************************/
static dc_array_t* get_dc_array(JNIEnv *env, jobject obj)
{
static jfieldID fid = 0;
if (fid==0) {
jclass cls = (*env)->GetObjectClass(env, obj);
fid = (*env)->GetFieldID(env, cls, "arrayCPtr", "J" /*Signature, J=long*/);
}
if (fid) {
return (dc_array_t*)(*env)->GetLongField(env, obj, fid);
}
return NULL;
}
JNIEXPORT void Java_com_b44t_messenger_DcArray_unrefArrayCPtr(JNIEnv *env, jobject obj)
{
dc_array_unref(get_dc_array(env, obj));
}
JNIEXPORT jint Java_com_b44t_messenger_DcArray_getCnt(JNIEnv *env, jobject obj)
{
return dc_array_get_cnt(get_dc_array(env, obj));
}
JNIEXPORT jfloat Java_com_b44t_messenger_DcArray_getLatitude(JNIEnv *env, jobject obj, jint index)
{
return (jfloat)dc_array_get_latitude(get_dc_array(env, obj), index);
}
JNIEXPORT jfloat Java_com_b44t_messenger_DcArray_getLongitude(JNIEnv *env, jobject obj, jint index)
{
return (jfloat)dc_array_get_longitude(get_dc_array(env, obj), index);
}
JNIEXPORT jfloat Java_com_b44t_messenger_DcArray_getAccuracy(JNIEnv *env, jobject obj, jint index)
{
return (jfloat)dc_array_get_accuracy(get_dc_array(env, obj), index);
}
JNIEXPORT jlong Java_com_b44t_messenger_DcArray_getTimestamp(JNIEnv *env, jobject obj, jint index)
{
return JTIMESTAMP(dc_array_get_timestamp(get_dc_array(env, obj), index));
}
JNIEXPORT jint Java_com_b44t_messenger_DcArray_getMsgId(JNIEnv *env, jobject obj, jint index)
{
return dc_array_get_msg_id(get_dc_array(env, obj), index);
}
JNIEXPORT jint Java_com_b44t_messenger_DcArray_getLocationId(JNIEnv *env, jobject obj, jint index)
{
return dc_array_get_id(get_dc_array(env, obj), index);
}
JNIEXPORT jstring Java_com_b44t_messenger_DcArray_getMarker(JNIEnv *env, jobject obj, jint index)
{
char* temp = dc_array_get_marker(get_dc_array(env, obj), index);
jstring ret = NULL;
if (temp) {
ret = JSTRING_NEW(temp);
}
free(temp);
return ret;
}
/*******************************************************************************
* DcChatlist
@@ -726,6 +894,12 @@ JNIEXPORT jlong Java_com_b44t_messenger_DcChatlist_getChatCPtr(JNIEnv *env, jobj
}
JNIEXPORT jint Java_com_b44t_messenger_DcChatlist_getMsgId(JNIEnv *env, jobject obj, jint index)
{
return dc_chatlist_get_msg_id(get_dc_chatlist(env, obj), index);
}
JNIEXPORT jlong Java_com_b44t_messenger_DcChatlist_getMsgCPtr(JNIEnv *env, jobject obj, jint index)
{
dc_chatlist_t* chatlist = get_dc_chatlist(env, obj);
@@ -810,6 +984,12 @@ JNIEXPORT jstring Java_com_b44t_messenger_DcChat_getProfileImage(JNIEnv *env, jo
}
JNIEXPORT jint Java_com_b44t_messenger_DcChat_getColor(JNIEnv *env, jobject obj)
{
return dc_chat_get_color(get_dc_chat(env, obj));
}
JNIEXPORT jboolean Java_com_b44t_messenger_DcChat_isUnpromoted(JNIEnv *env, jobject obj)
{
return dc_chat_is_unpromoted(get_dc_chat(env, obj))!=0;
@@ -828,31 +1008,22 @@ JNIEXPORT jboolean Java_com_b44t_messenger_DcChat_isVerified(JNIEnv *env, jobjec
}
JNIEXPORT jstring Java_com_b44t_messenger_DcChat_getDraft(JNIEnv *env, jobject obj) /* returns NULL for "no draft" */
JNIEXPORT jboolean Java_com_b44t_messenger_DcChat_isSendingLocations(JNIEnv *env, jobject obj)
{
const char* temp = dc_chat_get_text_draft(get_dc_chat(env, obj));
jstring ret = temp? JSTRING_NEW(temp) : NULL;
free(temp);
return ret;
return dc_chat_is_sending_locations(get_dc_chat(env, obj))!=0;
}
JNIEXPORT jlong Java_com_b44t_messenger_DcChat_getDraftTimestamp(JNIEnv *env, jobject obj)
JNIEXPORT jintArray Java_com_b44t_messenger_DcContext_getChatMedia(JNIEnv *env, jobject obj, jint chat_id, jint type1, jint type2, jint type3)
{
return JTIMESTAMP(dc_chat_get_draft_timestamp(get_dc_chat(env, obj)));
}
JNIEXPORT jintArray Java_com_b44t_messenger_DcContext_getChatMedia(JNIEnv *env, jobject obj, jint chat_id, jint msg_type, jint or_msg_type)
{
dc_array_t* ca = dc_get_chat_media(get_dc_context(env, obj), chat_id, msg_type, or_msg_type);
dc_array_t* ca = dc_get_chat_media(get_dc_context(env, obj), chat_id, type1, type2, type3);
return dc_array2jintArray_n_unref(env, ca);
}
JNIEXPORT jint Java_com_b44t_messenger_DcContext_getNextMedia(JNIEnv *env, jobject obj, jint msg_id, jint dir)
JNIEXPORT jint Java_com_b44t_messenger_DcContext_getNextMedia(JNIEnv *env, jobject obj, jint msg_id, jint dir, jint type1, jint type2, jint type3)
{
return dc_get_next_media(get_dc_context(env, obj), msg_id, dir);
return dc_get_next_media(get_dc_context(env, obj), msg_id, dir, type1, type2, type3);
}
@@ -894,12 +1065,14 @@ JNIEXPORT jintArray Java_com_b44t_messenger_DcContext_getChatContacts(JNIEnv *en
static dc_msg_t* get_dc_msg(JNIEnv *env, jobject obj)
{
static jfieldID fid = 0;
if (fid==0) {
jclass cls = (*env)->GetObjectClass(env, obj);
fid = (*env)->GetFieldID(env, cls, "msgCPtr", "J" /*Signature, J=long*/);
}
if (fid) {
return (dc_msg_t*)(*env)->GetLongField(env, obj, fid);
if (env && obj) {
if (fid==0) {
jclass cls = (*env)->GetObjectClass(env, obj);
fid = (*env)->GetFieldID(env, cls, "msgCPtr", "J" /*Signature, J=long*/);
}
if (fid) {
return (dc_msg_t*)(*env)->GetLongField(env, obj, fid);
}
}
return NULL;
}
@@ -932,6 +1105,18 @@ JNIEXPORT jlong Java_com_b44t_messenger_DcMsg_getTimestamp(JNIEnv *env, jobject
}
JNIEXPORT jlong Java_com_b44t_messenger_DcMsg_getSortTimestamp(JNIEnv *env, jobject obj)
{
return JTIMESTAMP(dc_msg_get_sort_timestamp(get_dc_msg(env, obj)));
}
JNIEXPORT jboolean Java_com_b44t_messenger_DcMsg_hasDeviatingTimestamp(JNIEnv *env, jobject obj)
{
return dc_msg_has_deviating_timestamp(get_dc_msg(env, obj))!=0;
}
JNIEXPORT jint Java_com_b44t_messenger_DcMsg_getType(JNIEnv *env, jobject obj)
{
return dc_msg_get_viewtype(get_dc_msg(env, obj));
@@ -1175,6 +1360,21 @@ JNIEXPORT jstring Java_com_b44t_messenger_DcContact_getNameNAddr(JNIEnv *env, jo
}
JNIEXPORT jstring Java_com_b44t_messenger_DcContact_getProfileImage(JNIEnv *env, jobject obj)
{
const char* temp = dc_contact_get_profile_image(get_dc_contact(env, obj));
jstring ret = JSTRING_NEW(temp);
free(temp);
return ret;
}
JNIEXPORT jint Java_com_b44t_messenger_DcContact_getColor(JNIEnv *env, jobject obj)
{
return dc_contact_get_color(get_dc_contact(env, obj));
}
JNIEXPORT jboolean Java_com_b44t_messenger_DcContact_isBlocked(JNIEnv *env, jobject obj)
{
return (jboolean)(dc_contact_is_blocked(get_dc_contact(env, obj))!=0);
Binary file not shown.
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
-907
View File
@@ -1,907 +0,0 @@
From e6d913938a67f8ef3174722a7ce38be8be92305f Mon Sep 17 00:00:00 2001
Message-Id: <e6d913938a67f8ef3174722a7ce38be8be92305f.1534410135.git.daniel.boehrs@open-xchange.com>
In-Reply-To: <371694c11a8b1192ef5230b98af3a5719add98ef.1534410134.git.daniel.boehrs@open-xchange.com>
References: <371694c11a8b1192ef5230b98af3a5719add98ef.1534410134.git.daniel.boehrs@open-xchange.com>
From: "B. Petersen" <r10s@b44t.com>
Date: Fri, 27 Jul 2018 17:12:43 +0200
Subject: [PATCH 5/6] add java-binding-classes
---
src/com/b44t/messenger/MrChat.java | 87 ++++++
src/com/b44t/messenger/MrChatlist.java | 64 +++++
src/com/b44t/messenger/MrContact.java | 57 ++++
src/com/b44t/messenger/MrLot.java | 56 ++++
src/com/b44t/messenger/MrMailbox.java | 485 +++++++++++++++++++++++++++++++++
src/com/b44t/messenger/MrMsg.java | 102 +++++++
6 files changed, 851 insertions(+)
diff --git a/src/com/b44t/messenger/MrChat.java b/src/com/b44t/messenger/MrChat.java
new file mode 100644
index 0000000..2165182
--- /dev/null
+++ b/src/com/b44t/messenger/MrChat.java
@@ -0,0 +1,87 @@
+/*******************************************************************************
+ *
+ * Delta Chat Android
+ * (C) 2017 Björn Petersen
+ * Contact: r10s@b44t.com, http://b44t.com
+ *
+ * This program is free software: you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation, either version 3 of the License, or (at your option) any later
+ * version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program. If not, see http://www.gnu.org/licenses/ .
+ *
+ *******************************************************************************
+ *
+ * File: MrChat.java
+ * Purpose: Wrap around mrchat_t
+ *
+ ******************************************************************************/
+
+package com.b44t.messenger;
+
+import android.text.TextUtils;
+
+public class MrChat {
+
+ public final static int MR_CHAT_ID_DEADDROP = 1;
+ public final static int MR_CHAT_ID_STARRED = 5;
+ public final static int MR_CHAT_ID_ARCHIVED_LINK = 6;
+ public final static int MR_CHAT_ID_LAST_SPECIAL = 9;
+
+ public MrChat(long hChat) {
+ m_hChat = hChat;
+ }
+
+ @Override protected void finalize() throws Throwable {
+ super.finalize();
+ MrChatUnref(m_hChat);
+ m_hChat = 0;
+ }
+
+ public native int getId();
+ public native boolean isGroup();
+ public native int getArchived();
+ public native String getName();
+ public native String getSubtitle();
+
+ public native String getProfileImage();
+ public native boolean isUnpromoted();
+ public native boolean isSelfTalk();
+ public native boolean isVerified();
+ public native String getDraft();
+ public native long getDraftTimestamp();
+
+ private long m_hChat; // must not be renamed as referenced by JNI under the name "m_hChat"
+ private native static void MrChatUnref (long hChat);
+
+
+ /* additional functions that are not 1:1 available in the backend
+ **********************************************************************************************/
+
+ public long getCPtr() {
+ return m_hChat;
+ }
+
+ public String getNameNAddr()
+ {
+ // returns name of group chats or name+email-address for normal chats
+ String name = "ErrGrpNameNAddr";
+ if( isGroup() ) {
+ name = getName();
+ }
+ else {
+ int contacts[] = MrMailbox.getChatContacts(getId());
+ if( contacts.length==1 ) {
+ name = MrMailbox.getContact(contacts[0]).getNameNAddr();
+ }
+ }
+ return name;
+ }
+}
diff --git a/src/com/b44t/messenger/MrChatlist.java b/src/com/b44t/messenger/MrChatlist.java
new file mode 100644
index 0000000..c9194e7
--- /dev/null
+++ b/src/com/b44t/messenger/MrChatlist.java
@@ -0,0 +1,64 @@
+/*******************************************************************************
+ *
+ * Delta Chat Android
+ * (C) 2017 Björn Petersen
+ * Contact: r10s@b44t.com, http://b44t.com
+ *
+ * This program is free software: you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation, either version 3 of the License, or (at your option) any later
+ * version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program. If not, see http://www.gnu.org/licenses/ .
+ *
+ *******************************************************************************
+ *
+ * File: MrChatlist.java
+ * Purpose: Wrap around mrchatlist_t
+ *
+ ******************************************************************************/
+
+
+package com.b44t.messenger;
+
+
+public class MrChatlist {
+ public MrChatlist(long hChatlist) {
+ m_hChatlist = hChatlist;
+ }
+
+ @Override protected void finalize() throws Throwable {
+ super.finalize();
+ MrChatlistUnref(m_hChatlist);
+ m_hChatlist = 0;
+ }
+
+ public int getCnt() {
+ return MrChatlistGetCnt(m_hChatlist);
+ }
+
+ public MrChat getChatByIndex(int index) {
+ return new MrChat(MrChatlistGetChatByIndex(m_hChatlist, index));
+ }
+
+ public MrMsg getMsgByIndex(int index) {
+ return new MrMsg(MrChatlistGetMsgByIndex(m_hChatlist, index));
+ }
+
+ public MrLot getSummaryByIndex(int index, MrChat chat) {
+ return new MrLot(MrChatlistGetSummaryByIndex(m_hChatlist, index, chat.getCPtr()));
+ }
+
+ private long m_hChatlist;
+ private native static void MrChatlistUnref (long hChatlist);
+ private native static int MrChatlistGetCnt (long hChatlist);
+ private native static long MrChatlistGetChatByIndex (long hChatlist, int index); // returns hChat which must be unref'd after usage
+ private native static long MrChatlistGetMsgByIndex (long hChatlist, int index); // returns hMsg which must be unref'd after usage
+ private native static long MrChatlistGetSummaryByIndex(long hChatlist, int index, long hChat);
+}
diff --git a/src/com/b44t/messenger/MrContact.java b/src/com/b44t/messenger/MrContact.java
new file mode 100644
index 0000000..9ad568b
--- /dev/null
+++ b/src/com/b44t/messenger/MrContact.java
@@ -0,0 +1,57 @@
+/*******************************************************************************
+ *
+ * Delta Chat Android
+ * (C) 2017 Björn Petersen
+ * Contact: r10s@b44t.com, http://b44t.com
+ *
+ * This program is free software: you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation, either version 3 of the License, or (at your option) any later
+ * version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program. If not, see http://www.gnu.org/licenses/ .
+ *
+ *******************************************************************************
+ *
+ * File: MrContact.java
+ * Purpose: Wrap around mrcontact_t
+ *
+ ******************************************************************************/
+
+
+package com.b44t.messenger;
+
+
+public class MrContact {
+
+ public final static int MR_CONTACT_ID_SELF = 1;
+ public final static int MR_CONTACT_ID_DEVICE = 2;
+ public final static int MR_CONTACT_ID_LAST_SPECIAL = 9;
+
+ public MrContact(long hContact) {
+ m_hContact = hContact;
+ }
+
+ @Override protected void finalize() throws Throwable {
+ super.finalize();
+ MrContactUnref(m_hContact);
+ m_hContact = 0;
+ }
+
+ public native String getName();
+ public native String getDisplayName();
+ public native String getFirstName();
+ public native String getAddr();
+ public native String getNameNAddr();
+ public native boolean isBlocked();
+ public native boolean isVerified();
+
+ private long m_hContact;
+ private native static void MrContactUnref (long hContact);
+}
diff --git a/src/com/b44t/messenger/MrLot.java b/src/com/b44t/messenger/MrLot.java
new file mode 100644
index 0000000..1e61f75
--- /dev/null
+++ b/src/com/b44t/messenger/MrLot.java
@@ -0,0 +1,56 @@
+/*******************************************************************************
+ *
+ * Delta Chat Android
+ * (C) 2017 Björn Petersen
+ * Contact: r10s@b44t.com, http://b44t.com
+ *
+ * This program is free software: you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation, either version 3 of the License, or (at your option) any later
+ * version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program. If not, see http://www.gnu.org/licenses/ .
+ *
+ *******************************************************************************
+ *
+ * File: MrLot.java
+ * Purpose: Wrap around mrpoortext_t
+ *
+ ******************************************************************************/
+
+
+package com.b44t.messenger;
+
+
+public class MrLot {
+
+ public final static int MR_TEXT1_DRAFT = 1;
+ public final static int MR_TEXT1_USERNAME = 2;
+ public final static int MR_TEXT1_SELF = 3;
+
+ public MrLot(long hLot) {
+ m_hLot = hLot;
+ }
+
+ @Override protected void finalize() throws Throwable {
+ super.finalize();
+ MrLotUnref(m_hLot);
+ m_hLot = 0;
+ }
+
+ public native String getText1();
+ public native int getText1Meaning();
+ public native String getText2();
+ public native long getTimestamp();
+ public native int getState();
+ public native int getId();
+
+ private long m_hLot;
+ private native static void MrLotUnref(long hLot);
+}
diff --git a/src/com/b44t/messenger/MrMailbox.java b/src/com/b44t/messenger/MrMailbox.java
new file mode 100644
index 0000000..be11d67
--- /dev/null
+++ b/src/com/b44t/messenger/MrMailbox.java
@@ -0,0 +1,485 @@
+/*******************************************************************************
+ *
+ * Delta Chat Android
+ * (C) 2017 Björn Petersen
+ * Contact: r10s@b44t.com, http://b44t.com
+ *
+ * This program is free software: you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation, either version 3 of the License, or (at your option) any later
+ * version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program. If not, see http://www.gnu.org/licenses/ .
+ *
+ *******************************************************************************
+ *
+ * File: MrMailbox.java
+ * Purpose: Wrap around mrmailbox_t
+ *
+ ******************************************************************************/
+
+
+package com.b44t.messenger;
+
+
+import android.app.Activity;
+import android.content.SharedPreferences;
+import android.util.Log;
+
+import java.io.BufferedInputStream;
+import java.io.BufferedReader;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.net.HttpURLConnection;
+import java.net.URL;
+
+public class MrMailbox {
+
+ public static void init () {
+ m_hMailbox = MrMailboxNew();
+ }
+
+ public native static int open(String dbfile);
+ public native static void close();
+ public native static String getBlobdir();
+
+ public native static void configure();
+ public native static void stopOngoingProcess();
+
+ public native static int isConfigured();
+
+ public native static void performJobs();
+ public native static void fetch();
+ public native static void idle();
+ public native static void interruptIdle();
+
+ public native static void performSmtpJobs();
+ public native static void performSmtpIdle();
+ public native static void interruptSmtpIdle();
+
+ public native static void setConfig(String key, String value);
+ public native static void setConfigInt(String key, int value);
+ public native static String getConfig(String key, String def);
+ public native static int getConfigInt(String key, int def);
+
+ public native static String getInfo();
+ public native static String cmdline(String cmd);
+
+ public native static String initiateKeyTransfer();
+ public native static boolean continueKeyTransfer(int msg_id, String setup_code);
+ public final static int MR_IMEX_EXPORT_SELF_KEYS = 1;
+ public final static int MR_IMEX_IMPORT_SELF_KEYS = 2;
+ public final static int MR_IMEX_EXPORT_BACKUP = 11;
+ public final static int MR_IMEX_IMPORT_BACKUP = 12;
+ public native static void imex(int what, String dir);
+ public native static String imexHasBackup(String dir);
+ public native static int checkPassword(String pw);
+
+ private static long m_hMailbox = 0; // do not rename this, is used in C-part
+ private native static long MrMailboxNew(); // returns hMailbox which must be unref'd after usage (Names as mrmailbox_new don't work due to the additional underscore)
+
+ // contacts
+ public final static int MR_GCL_VERIFIED_ONLY = 1;
+ public final static int MR_GCL_ADD_SELF = 2;
+ public native static int[] getContacts(int flags, String query);
+ public native static int getBlockedCount();
+ public native static int[] getBlockedContacts();
+
+ public static MrContact getContact(int contact_id) {
+ return new MrContact(MrMailboxGetContact(m_hMailbox, contact_id));
+ }
+
+ public static int createContact(String name, String addr) {
+ return MrMailboxCreateContact(m_hMailbox, name, addr);
+ }
+
+ public static void blockContact(int id, int block) {
+ MrMailboxBlockContact(m_hMailbox, id, block);
+ }
+
+ public native static String getContactEncrInfo(int contact_id);
+
+ public static int deleteContact(int id) {
+ return MrMailboxDeleteContact(m_hMailbox, id);
+ }
+
+ public static int addAddressBook(String adrbook) {
+ return MrMailboxAddAddressBook(m_hMailbox, adrbook);
+ }
+
+ private native static long MrMailboxGetContact (long hMailbox, int id);// returns hContact which must be unref'd after usage
+ private native static int MrMailboxCreateContact (long hMailbox, String name, String addr);
+ private native static void MrMailboxBlockContact (long hMailbox, int id, int block);
+ private native static int MrMailboxDeleteContact (long hMailbox, int id); // returns 0 if the contact could not be deleted (eg. it is in use, maybe by deaddrop)
+ private native static int MrMailboxAddAddressBook (long hMailbox, String adrbook);
+
+
+ // chats
+ public final static int MR_GCL_ARCHIVED_ONLY = 0x01;
+ public final static int MR_GCL_NO_SPECIALS = 0x02;
+ public static MrChatlist getChatlist(int listflags, String query, int queryId) {
+ return new MrChatlist(MrMailboxGetChatlist(m_hMailbox, listflags, query, queryId));
+ }
+
+ public static MrChat getChat(int chat_id) {
+ return new MrChat(MrMailboxGetChat(m_hMailbox, chat_id));
+ }
+
+ public native static void markseenMsgs (int msg_ids[]);
+ public native static void marknoticedChat (int chat_id);
+ public native static void marknoticedContact (int contact_id);
+ public native static void archiveChat (int chat_id, int archive);
+
+ public native static int getChatIdByContactId (int contact_id);
+ public native static int createChatByContactId(int contact_id);
+ public native static int createChatByMsgId (int msg_id);
+
+ public native static int createGroupChat (boolean verified, String name);
+ public native static int isContactInChat (int chat_id, int contact_id);
+ public native static int addContactToChat (int chat_id, int contact_id);
+ public native static int removeContactFromChat (int chat_id, int contact_id);
+ public native static void setDraft (int chat_id, String draft/*NULL=delete*/);
+ public native static int setChatName (int chat_id, String name);
+ public native static int setChatProfileImage (int chat_id, String name);
+
+ public final static int MR_GCM_ADDDAYMARKER = 0x01;
+ public native static int[] getChatMsgs(int chat_id, int flags, int marker1before);
+
+ public native static int[] searchMsgs(int chat_id, String query);
+
+ public native static int[] getFreshMsgs();
+
+ public native static int[] getChatMedia(int chat_id, int msg_type, int or_msg_type);
+ public native static int getNextMedia(int msg_id, int dir);
+ public native static int[] getChatContacts(int chat_id);
+ public native static void deleteChat(int chat_id);
+
+ private native static long MrMailboxGetChatlist (long hMailbox, int listflags, String query, int queryId); // returns hChatlist which must be unref'd after usage
+ private native static long MrMailboxGetChat (long hMailbox, int chat_id); // return hChat which must be unref'd after usage
+
+
+ // msgs
+ public static MrMsg getMsg(int msg_id) {
+ return new MrMsg(MrMailboxGetMsg(m_hMailbox, msg_id));
+ }
+
+ public static String getMsgInfo(int id) {
+ return MrMailboxGetMsgInfo(m_hMailbox, id);
+ }
+
+ public static native int getFreshMsgCount(int chat_id);
+
+ public native static void deleteMsgs(int msg_ids[]);
+ public native static void forwardMsgs(int msg_ids[], int chat_ids);
+
+ public native static int sendTextMsg(int chat_id, String text);
+ public native static int sendVcardMsg(int chat_id, int contact_id);
+ public native static int sendMediaMsg(int chat_id, int type, String file, String mime, int w, int h, int time_ms, String author, String trackname);
+
+ private native static long MrMailboxGetMsg (long hMailbox, int id); // return hMsg which must be unref'd after usage
+ private native static String MrMailboxGetMsgInfo (long hMailbox, int id);
+
+ // out-of-band verification
+ public final static int MR_QR_ASK_VERIFYCONTACT = 200;
+ public final static int MR_QR_ASK_VERIFYGROUP = 202;
+ public final static int MR_QR_FPR_OK = 210;
+ public final static int MR_QR_FPR_MISMATCH = 220;
+ public final static int MR_QR_FPR_WITHOUT_ADDR = 230;
+ public final static int MR_QR_ADDR = 320;
+ public final static int MR_QR_TEXT = 330;
+ public final static int MR_QR_URL = 332;
+ public final static int MR_QR_ERROR = 400;
+ public native static int checkQrCPtr(String qr);
+ public static MrLot checkQr(String qr) { return new MrLot(checkQrCPtr(qr)); }
+
+ public native static String getSecurejoinQr(int chat_id);
+ public native static int joinSecurejoin(String qr);
+
+ // static
+ public native static String MrGetVersionStr ();
+ public native static String CPtr2String (long hString); // get strings eg. from data1 from the callback
+ public native static long String2CPtr (String str);
+
+ /* receive events
+ **********************************************************************************************/
+
+ public final static int MR_EVENT_INFO = 100;
+ public final static int MR_EVENT_WARNING = 300;
+ public final static int MR_EVENT_ERROR = 400; // INFO and WARNING are blocked in the mrwrapper.c
+
+ public final static int MR_EVENT_MSGS_CHANGED = 2000;
+ public final static int MR_EVENT_INCOMING_MSG = 2005;
+ public final static int MR_EVENT_MSG_DELIVERED = 2010;
+ public final static int DC_EVENT_MSG_FAILED = 2012;
+ public final static int MR_EVENT_MSG_READ = 2015;
+
+ public final static int MR_EVENT_CHAT_MODIFIED = 2020;
+
+ public final static int MR_EVENT_CONTACTS_CHANGED = 2030;
+
+ public final static int MR_EVENT_CONFIGURE_PROGRESS = 2041;
+
+ public final static int MR_EVENT_IMEX_PROGRESS = 2051;
+ public final static int MR_EVENT_IMEX_FILE_WRITTEN = 2052;
+
+ public final static int MR_EVENT_SECUREJOIN_INVITER_PROGRESS = 2060;
+ public final static int MR_EVENT_SECUREJOIN_JOINER_PROGRESS = 2061;
+
+ public final static int MR_EVENT_IS_OFFLINE = 2081;
+ public final static int MR_EVENT_GET_STRING = 2091;
+ public final static int MR_EVENT_GET_QUANTITIY_STRING = 2092;
+ public final static int MR_EVENT_HTTP_GET = 2100;
+
+ public static final Object m_lastErrorLock = new Object();
+ public static int m_lastErrorCode = 0;
+ public static String m_lastErrorString = "";
+ public static boolean m_showNextErrorAsToast = true;
+
+ public static long MrCallback(final int event, final long data1, final long data2) // this function is called from within the C-wrapper
+ {
+ switch(event) {
+ case MR_EVENT_CONFIGURE_PROGRESS:
+ /*AndroidUtilities.runOnUIThread(new Runnable() {
+ @Override
+ public void run() {
+ if( data1 == 0 || data1 == 1000 ) {
+ NotificationCenter.getInstance().postNotificationName(NotificationCenter.configureEnded, (int)data1);
+ }
+ else {
+ NotificationCenter.getInstance().postNotificationName(NotificationCenter.configureProgress, (int)data1);
+ }
+ }
+ });*/
+ return 0;
+
+ case MR_EVENT_IMEX_PROGRESS:
+ /*AndroidUtilities.runOnUIThread(new Runnable() {
+ @Override
+ public void run() {
+ if (data1==0 || data1==1000) {
+ NotificationCenter.getInstance().postNotificationName(NotificationCenter.imexEnded, (int) data1);
+ }
+ else {
+ NotificationCenter.getInstance().postNotificationName(NotificationCenter.imexProgress, (int) data1);
+ }
+ }
+ });*/
+ return 0;
+
+ case MR_EVENT_IMEX_FILE_WRITTEN: {
+ /*final String fileName = CPtr2String(data1);
+ AndroidUtilities.runOnUIThread(new Runnable() {
+ @Override
+ public void run() {
+ NotificationCenter.getInstance().postNotificationName(NotificationCenter.imexFileWritten, fileName);
+ }
+ });*/
+ }
+ return 0;
+
+ case MR_EVENT_SECUREJOIN_INVITER_PROGRESS:
+ /*AndroidUtilities.runOnUIThread(new Runnable() {
+ @Override
+ public void run() {
+ NotificationCenter.getInstance().postNotificationName(NotificationCenter.secureJoinInviterProgress, (int)data1, (int)data2);
+ }
+ });*/
+ return 0;
+
+ case MR_EVENT_SECUREJOIN_JOINER_PROGRESS:
+ /*AndroidUtilities.runOnUIThread(new Runnable() {
+ @Override
+ public void run() {
+ NotificationCenter.getInstance().postNotificationName(NotificationCenter.secureJoinJoinerProgress, (int)data1, (int)data2);
+ }
+ });*/
+ return 0;
+
+ case MR_EVENT_MSGS_CHANGED:
+ case MR_EVENT_INCOMING_MSG:
+ /*AndroidUtilities.runOnUIThread(new Runnable() {
+ @Override
+ public void run() {
+ NotificationCenter.getInstance().postNotificationName(NotificationCenter.dialogsNeedReload, event, (int)data1, (int)data2);
+ if( event == MR_EVENT_INCOMING_MSG ) {
+ NotificationsController.getInstance().processNewMessages((int)data1, (int)data2);
+ }
+ }
+ });*/
+ return 0;
+
+ case MR_EVENT_MSG_DELIVERED:
+ case MR_EVENT_MSG_READ:
+ case DC_EVENT_MSG_FAILED:
+ /*AndroidUtilities.runOnUIThread(new Runnable() {
+ @Override
+ public void run() {
+ NotificationCenter.getInstance().postNotificationName(NotificationCenter.messagesSentOrRead, event, (int)data1, (int)data2);
+ NotificationCenter.getInstance().postNotificationName(NotificationCenter.dialogsNeedReload);
+ }
+ });*/
+ return 0;
+
+ case MR_EVENT_CONTACTS_CHANGED:
+ /*AndroidUtilities.runOnUIThread(new Runnable() {
+ @Override
+ public void run() {
+ NotificationCenter.getInstance().postNotificationName(NotificationCenter.contactsDidLoaded, (int)data1);
+ NotificationCenter.getInstance().postNotificationName(NotificationCenter.blockedUsersDidLoaded);
+ NotificationCenter.getInstance().postNotificationName(NotificationCenter.dialogsNeedReload);
+ }
+ });*/
+ return 0;
+
+ case MR_EVENT_CHAT_MODIFIED:
+ /*AndroidUtilities.runOnUIThread(new Runnable() {
+ @Override
+ public void run() {
+ NotificationCenter.getInstance().postNotificationName(NotificationCenter.dialogsNeedReload);
+ NotificationCenter.getInstance().postNotificationName(NotificationCenter.updateInterfaces,
+ UPDATE_MASK_NAME|UPDATE_MASK_CHAT_NAME|
+ UPDATE_MASK_CHAT_MEMBERS|UPDATE_MASK_AVATAR);
+ }
+ });*/
+ return 0;
+
+ case MR_EVENT_INFO:
+ Log.i("DeltaChat", CPtr2String(data2));
+ break;
+
+ case MR_EVENT_WARNING:
+ Log.w("DeltaChat", CPtr2String(data2));
+ break;
+
+ case MR_EVENT_ERROR:
+ Log.e("DeltaChat", CPtr2String(data2));
+ synchronized (m_lastErrorLock) {
+ m_lastErrorCode = (int)data1;
+ m_lastErrorString = CPtr2String(data2);
+ }
+ /*AndroidUtilities.runOnUIThread(new Runnable() {
+ @Override
+ public void run() {
+ synchronized (m_lastErrorLock) {
+ if( m_showNextErrorAsToast ) {
+ if(ForegroundDetector.getInstance().isForeground()) {
+ AndroidUtilities.showHint(ApplicationLoader.applicationContext, m_lastErrorString);
+ }
+ }
+ m_showNextErrorAsToast = true;
+ }
+ }
+ });*/
+ return 0;
+
+ case MR_EVENT_GET_STRING:
+ /*String s;
+ switch( (int)data1 ) {
+ // the string-IDs are defined in the backend; as this is the only place where they're used, there is no benefit in creating an enum or sth. like that.
+ case 1: s = ApplicationLoader.applicationContext.getString(R.string.NoMessages); break;
+ case 2: s = ApplicationLoader.applicationContext.getString(R.string.FromSelf); break;
+ case 3: s = ApplicationLoader.applicationContext.getString(R.string.Draft); break;
+ case 7: s = ApplicationLoader.applicationContext.getString(R.string.AttachVoiceMessage); break;
+ case 8: s = ApplicationLoader.applicationContext.getString(R.string.Deaddrop); break;
+ case 9: s = ApplicationLoader.applicationContext.getString(R.string.AttachPhoto); break;
+ case 10: s = ApplicationLoader.applicationContext.getString(R.string.AttachVideo); break;
+ case 11: s = ApplicationLoader.applicationContext.getString(R.string.Audio); break;
+ case 12: s = ApplicationLoader.applicationContext.getString(R.string.AttachDocument); break;
+ case 13: s = ApplicationLoader.applicationContext.getString(R.string.DefaultStatusText); break;
+ case 14: s = ApplicationLoader.applicationContext.getString(R.string.MsgNewGroupDraft); break;
+ case 15: s = ApplicationLoader.applicationContext.getString(R.string.MsgGroupNameChanged); break;
+ case 16: s = ApplicationLoader.applicationContext.getString(R.string.MsgGroupImageChanged); break;
+ case 17: s = ApplicationLoader.applicationContext.getString(R.string.MsgMemberAddedToGroup); break;
+ case 18: s = ApplicationLoader.applicationContext.getString(R.string.MsgMemberRemovedFromToGroup); break;
+ case 19: s = ApplicationLoader.applicationContext.getString(R.string.MsgGroupLeft); break;
+ case 20: s = ApplicationLoader.applicationContext.getString(R.string.Error); break;
+ case 21: s = ApplicationLoader.applicationContext.getString(R.string.ErrSelfNotInGroup); break;
+ case 22: s = ApplicationLoader.applicationContext.getString(R.string.NoNetwork); break;
+ case 23: s = ApplicationLoader.applicationContext.getString(R.string.AttachGif); break;
+ case 24: s = ApplicationLoader.applicationContext.getString(R.string.EncryptedMessage); break;
+ case 25: s = ApplicationLoader.applicationContext.getString(R.string.EncrinfoE2EAvailable); break;
+ case 27: s = ApplicationLoader.applicationContext.getString(R.string.EncrinfoTransport); break;
+ case 28: s = ApplicationLoader.applicationContext.getString(R.string.EncrinfoNone); break;
+ case 29: s = ApplicationLoader.applicationContext.getString(R.string.CannotDecryptBody); break;
+ case 30: s = ApplicationLoader.applicationContext.getString(R.string.EncrinfoFingerprints); break;
+ case 31: s = ApplicationLoader.applicationContext.getString(R.string.ReadReceipt); break;
+ case 32: s = ApplicationLoader.applicationContext.getString(R.string.ReadReceiptMailBody); break;
+ case 33: s = ApplicationLoader.applicationContext.getString(R.string.MsgGroupImageDeleted); break;
+ case 34: s = ApplicationLoader.applicationContext.getString(R.string.E2EEncryptionPreferred); break;
+ case 40: s = ApplicationLoader.applicationContext.getString(R.string.ArchivedChats); break;
+ case 42: s = ApplicationLoader.applicationContext.getString(R.string.AutocryptSetupMessageSubject); break;
+ case 43: s = ApplicationLoader.applicationContext.getString(R.string.AutocryptSetupMessageGeneralBody); break;
+ case 50: s = ApplicationLoader.applicationContext.getString(R.string.SelfTalkSubtitle); break;
+ case 60: s = ApplicationLoader.applicationContext.getString(R.string.ErrCannotLogin); break;
+ case 61: s = "<c#808080>" + ApplicationLoader.applicationContext.getString(R.string.ErrSeverResponse) + "</c>"; break;
+ default: s = null; break;
+ }
+ return String2CPtr(s);
+ */
+ return 0;
+
+ case MR_EVENT_GET_QUANTITIY_STRING:
+ /*String sp = "ErrQtyStrBadId";
+ switch( (int)data1 ) {
+ // the string-IDs are defined in the backend; as this is the only place where they're used, there is no benefit in creating an enum or sth. like that.
+ case 4: sp = ApplicationLoader.applicationContext.getResources().getQuantityString(R.plurals.Members, (int)data2, (int)data2); break;
+ case 6: sp = ApplicationLoader.applicationContext.getResources().getQuantityString(R.plurals.Contacts, (int)data2, (int)data2); break;
+ }
+ return String2CPtr(sp);
+ */
+ return 0;
+
+ case MR_EVENT_IS_OFFLINE:
+ //return ApplicationLoader.isNetworkOnline()? 0 : 1;
+ return 0;
+
+ case MR_EVENT_HTTP_GET:
+ String httpContent = null;
+ try {
+ URL url = new URL(CPtr2String(data1));
+ HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
+ try {
+ urlConnection.setConnectTimeout(10*1000);
+ InputStream inputStream = new BufferedInputStream(urlConnection.getInputStream());
+
+ BufferedReader r = new BufferedReader(new InputStreamReader(inputStream));
+
+ StringBuilder total = new StringBuilder();
+ String line;
+ while ((line = r.readLine()) != null) {
+ total.append(line).append('\n');
+ }
+ httpContent = total.toString();
+ } finally {
+ urlConnection.disconnect();
+ }
+ }
+ catch(Exception e) {
+ e.printStackTrace();
+ }
+ return String2CPtr(httpContent);
+ }
+ return 0;
+ }
+
+
+ /* additional functions that are not 1:1 available in the backend
+ **********************************************************************************************/
+
+ public static void log_i(String tag, String msg)
+ {
+ Log.i(tag, msg);
+ }
+
+ public native static int getCurrentTime ();
+
+
+
+
+}
diff --git a/src/com/b44t/messenger/MrMsg.java b/src/com/b44t/messenger/MrMsg.java
new file mode 100644
index 0000000..52a8ed2
--- /dev/null
+++ b/src/com/b44t/messenger/MrMsg.java
@@ -0,0 +1,102 @@
+/*******************************************************************************
+ *
+ * Delta Chat Android
+ * (C) 2017 Björn Petersen
+ * Contact: r10s@b44t.com, http://b44t.com
+ *
+ * This program is free software: you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation, either version 3 of the License, or (at your option) any later
+ * version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program. If not, see http://www.gnu.org/licenses/ .
+ *
+ *******************************************************************************
+ *
+ * File: MrMsg.java
+ * Purpose: Wrap around mrmsg_t
+ *
+ ******************************************************************************/
+
+
+package com.b44t.messenger;
+
+import android.graphics.Bitmap;
+import android.media.ThumbnailUtils;
+import android.provider.MediaStore;
+
+import java.io.File;
+
+public class MrMsg {
+
+ private static final String TAG = "MrMsg";
+
+ public final static int MR_MSG_UNDEFINED = 0;
+ public final static int MR_MSG_TEXT = 10;
+ public final static int MR_MSG_IMAGE = 20;
+ public final static int MR_MSG_GIF = 21;
+ public final static int MR_MSG_AUDIO = 40;
+ public final static int MR_MSG_VOICE = 41;
+ public final static int MR_MSG_VIDEO = 50;
+ public final static int MR_MSG_FILE = 60;
+
+ public final static int MR_STATE_UNDEFINED = 0;
+ public final static int MR_IN_FRESH = 10;
+ public final static int MR_IN_NOTICED = 13;
+ public final static int MR_OUT_PENDING = 20;
+ public final static int MR_OUT_ERROR = 24;
+ public final static int MR_OUT_DELIVERED = 26;
+ public final static int MR_OUT_MDN_RCVD = 28;
+
+ public final static int MR_MSG_ID_MARKER1 = 1;
+ public final static int MR_MSG_ID_DAYMARKER = 9;
+
+ public MrMsg(long hMsg) {
+ m_hMsg = hMsg;
+ }
+
+ @Override protected void finalize() throws Throwable {
+ super.finalize();
+ MrMsgUnref(m_hMsg);
+ m_hMsg = 0;
+ }
+
+ public native int getId();
+ public native String getText();
+ public native long getTimestamp();
+ public native int getType();
+ public native int getState();
+ public native int getChatId();
+ public native int getFromId();
+
+ public native int getWidth(int def);
+ public native int getHeight(int def);
+ public native int getDuration();
+ public native void lateFilingMediaSize(int width, int height, int duration);
+
+ public native int getBytes();
+ public MrLot getSummary(MrChat chat) { return new MrLot(getSummaryCPtr(chat.getCPtr())); }
+ private native long getSummaryCPtr(long hChat);
+ public native String getSummarytext(int approx_characters);
+ public native int showPadlock();
+ public MrLot getMediainfo() { return new MrLot(getMediainfoCPtr()); }
+ private native long getMediainfoCPtr();
+ public native String getFile();
+ public native String getFilemime();
+ public native String getFilename();
+ public native boolean isForwarded();
+ public native boolean isInfo();
+ public native boolean isSetupMessage();
+ public native String getSetupCodeBegin();
+ public native boolean isIncreation();
+
+ private long m_hMsg; // must not be renamed as referenced by JNI under the name "m_hMsg"
+ private native static void MrMsgUnref (long hMsg);
+
+};
--
2.8.2
@@ -1,56 +0,0 @@
From 60d175313bdadedeb331923dde3b5c10bbf582ae Mon Sep 17 00:00:00 2001
Message-Id: <60d175313bdadedeb331923dde3b5c10bbf582ae.1534410135.git.daniel.boehrs@open-xchange.com>
In-Reply-To: <371694c11a8b1192ef5230b98af3a5719add98ef.1534410134.git.daniel.boehrs@open-xchange.com>
References: <371694c11a8b1192ef5230b98af3a5719add98ef.1534410134.git.daniel.boehrs@open-xchange.com>
From: "B. Petersen" <r10s@b44t.com>
Date: Fri, 27 Jul 2018 17:13:16 +0200
Subject: [PATCH 6/6] initialize the java-bindings, all functions should be
callable now :)
---
src/org/thoughtcrime/securesms/ApplicationContext.java | 6 ++++++
src/org/thoughtcrime/securesms/util/FileUtils.java | 4 ----
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/org/thoughtcrime/securesms/ApplicationContext.java b/src/org/thoughtcrime/securesms/ApplicationContext.java
index f49cba5..fa22338 100644
--- a/src/org/thoughtcrime/securesms/ApplicationContext.java
+++ b/src/org/thoughtcrime/securesms/ApplicationContext.java
@@ -27,6 +27,7 @@ import android.support.annotation.NonNull;
import android.support.multidex.MultiDexApplication;
import android.util.Log;
+import com.b44t.messenger.MrMailbox;
import com.google.android.gms.security.ProviderInstaller;
import org.thoughtcrime.securesms.crypto.PRNGFixes;
@@ -88,6 +89,11 @@ public class ApplicationContext extends MultiDexApplication implements Dependenc
@Override
public void onCreate() {
super.onCreate();
+
+ System.loadLibrary("native-utils");
+ MrMailbox.MrCallback(0, 0, 0); // do not remove this call; this makes sure, the function is not removed from build or warnings are printed!
+ MrMailbox.init();
+
initializeRandomNumberFix();
initializeLogging();
initializeDependencyInjection();
diff --git a/src/org/thoughtcrime/securesms/util/FileUtils.java b/src/org/thoughtcrime/securesms/util/FileUtils.java
index e437edd..8927af6 100644
--- a/src/org/thoughtcrime/securesms/util/FileUtils.java
+++ b/src/org/thoughtcrime/securesms/util/FileUtils.java
@@ -9,10 +9,6 @@ import java.security.NoSuchAlgorithmException;
public class FileUtils {
- static {
- System.loadLibrary("native-utils");
- }
-
public static native int getFileDescriptorOwner(FileDescriptor fileDescriptor);
public static byte[] getFileDigest(FileInputStream fin) throws IOException {
--
2.8.2
-20
View File
@@ -1,20 +0,0 @@
-keepattributes *Annotation*,EnclosingMethod
-keep @interface dagger.*,javax.inject.*
-keep @dagger.Module class *
-keepclassmembers class * {
@javax.inject.* *;
@dagger.* *;
<init>();
}
-keepclasseswithmembernames class * {
@javax.inject.* <fields>;
}
-keep class javax.inject.** { *; }
-keep class **$$ModuleAdapter
-keep class **$$InjectAdapter
-keep class **$$StaticInjection
-keep class dagger.** { *; }
-keep class * extends dagger.** { *; }
-keep interface dagger.** {*;}
-dontwarn dagger.internal.codegen.**
-1
View File
@@ -1 +0,0 @@
-dontwarn ezvcard.io.html.HCardPage
-19
View File
@@ -1,19 +0,0 @@
## Google Play Services 4.3.23 specific rules ##
## https://developer.android.com/google/play-services/setup.html#Proguard ##
-keep class * extends java.util.ListResourceBundle {
protected Object[][] getContents();
}
-keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable {
public static final *** NULL;
}
-keepnames @com.google.android.gms.common.annotation.KeepName class *
-keepclassmembernames class * {
@com.google.android.gms.common.annotation.KeepName *;
}
-keepnames class * implements android.os.Parcelable {
public static final ** CREATOR;
}
-3
View File
@@ -1,3 +0,0 @@
-dontwarn android.net.ConnectivityManager
-dontwarn android.net.ConnectivityManager$NetworkCallback
-dontwarn org.webrtc.NetworkMonitorAutoDetect$ConnectivityManagerDelegate
-3
View File
@@ -1,3 +0,0 @@
-dontwarn okio.**
-dontwarn javax.annotation.Nullable
-dontwarn javax.annotation.ParametersAreNonnullByDefault
-26
View File
@@ -1,26 +0,0 @@
-keep class org.spongycastle.crypto.* {*;}
-keep class org.spongycastle.crypto.agreement.** {*;}
-keep class org.spongycastle.crypto.digests.* {*;}
-keep class org.spongycastle.crypto.ec.* {*;}
-keep class org.spongycastle.crypto.encodings.* {*;}
-keep class org.spongycastle.crypto.engines.* {*;}
-keep class org.spongycastle.crypto.macs.* {*;}
-keep class org.spongycastle.crypto.modes.* {*;}
-keep class org.spongycastle.crypto.paddings.* {*;}
-keep class org.spongycastle.crypto.params.* {*;}
-keep class org.spongycastle.crypto.prng.* {*;}
-keep class org.spongycastle.crypto.signers.* {*;}
-keep class org.spongycastle.jcajce.provider.asymmetric.* {*;}
-keep class org.spongycastle.jcajce.provider.asymmetric.util.* {*;}
-keep class org.spongycastle.jcajce.provider.asymmetric.dh.* {*;}
-keep class org.spongycastle.jcajce.provider.asymmetric.ec.* {*;}
-keep class org.spongycastle.jcajce.provider.digest.** {*;}
-keep class org.spongycastle.jcajce.provider.keystore.** {*;}
-keep class org.spongycastle.jcajce.provider.symmetric.** {*;}
-keep class org.spongycastle.jcajce.spec.* {*;}
-keep class org.spongycastle.jce.** {*;}
-dontwarn javax.naming.**
-5
View File
@@ -1,5 +0,0 @@
-keep class org.sqlite.** { *; }
-keep class org.sqlite.database.** { *; }
-keep class net.sqlcipher.** { *; }
-dontwarn net.sqlcipher.**
-6
View File
@@ -1,6 +0,0 @@
# OkHttp
-keepattributes Signature
-keepattributes *Annotation*
-keep class com.squareup.okhttp.** { *; }
-keep interface com.squareup.okhttp.** { *; }
-dontwarn com.squareup.okhttp.**
-5
View File
@@ -1,5 +0,0 @@
# Okio
-keep class sun.misc.Unsafe { *; }
-dontwarn java.nio.file.*
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
-dontwarn okio.**
-3
View File
@@ -1,3 +0,0 @@
-dontwarn org.webrtc.NetworkMonitorAutoDetect
-dontwarn android.net.Network
-keep class org.webrtc.** { *; }
-59
View File
@@ -1,59 +0,0 @@
/**
* Copyright (C) 2018 Open Whisper Systems
*
* Licensed according to the LICENSE file in this repository.
*/
package signal;
option java_package = "org.thoughtcrime.securesms.backup";
option java_outer_classname = "BackupProtos";
message SqlStatement {
message SqlParameter {
optional string stringParamter = 1;
optional uint64 integerParameter = 2;
optional double doubleParameter = 3;
optional bytes blobParameter = 4;
optional bool nullparameter = 5;
}
optional string statement = 1;
repeated SqlParameter parameters = 2;
}
message SharedPreference {
optional string file = 1;
optional string key = 2;
optional string value = 3;
}
message Attachment {
optional uint64 rowId = 1;
optional uint64 attachmentId = 2;
optional uint32 length = 3;
}
message Avatar {
optional string name = 1;
optional uint32 length = 2;
}
message DatabaseVersion {
optional uint32 version = 1;
}
message Header {
optional bytes iv = 1;
optional bytes salt = 2;
}
message BackupFrame {
optional Header header = 1;
optional SqlStatement statement = 2;
optional SharedPreference preference = 3;
optional Attachment attachment = 4;
optional DatabaseVersion version = 5;
optional bool end = 6;
optional Avatar avatar = 7;
}
-3
View File
@@ -1,3 +0,0 @@
all:
protoc --java_out=../src/ WebRtcData.proto Backups.proto
-31
View File
@@ -1,31 +0,0 @@
/**
* Copyright (C) 2014-2016 Open Whisper Systems
*
* Licensed according to the LICENSE file in this repository.
*/
package signal;
option java_package = "org.thoughtcrime.securesms.webrtc";
option java_outer_classname = "WebRtcDataProtos";
message Connected {
optional uint64 id = 1;
}
message Hangup {
optional uint64 id = 1;
}
message VideoStreamingStatus {
optional uint64 id = 1;
optional bool enabled = 2;
}
message Data {
optional Connected connected = 1;
optional Hangup hangup = 2;
optional VideoStreamingStatus videoStreamingStatus = 3;
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 656 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 477 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 268 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 297 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 129 B

After

Width:  |  Height:  |  Size: 344 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 223 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 186 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 178 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 502 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 484 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 478 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 307 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 425 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 553 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 284 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 311 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 309 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 381 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 585 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 294 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 276 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 256 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 347 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 448 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 130 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 359 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 568 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 513 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 483 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 656 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 196 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 727 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 307 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 190 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 168 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 423 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 540 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 876 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 664 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 220 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 373 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 354 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 188 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 428 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

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