Compare commits

..
266 Commits
Author SHA1 Message Date
waozi cddac728b1 fix bug 2026-06-23 14:25:11 -03:00
waozi cc92f494e3 add missing locales 2026-06-23 13:33:26 -03:00
waozi fd3d10521a udpate appimage build 2026-06-23 13:14:27 -03:00
waozi 351c1334c6 improve settings tehem 2026-06-23 11:52:07 -03:00
waozi 414a6ea198 move flint back to submodule 2026-06-22 21:46:54 -03:00
waozi aebb706eac update screenshot script 2026-06-22 14:07:51 -03:00
waozi 3ff584355c rm snap from gh actions 2026-06-22 12:52:54 -03:00
waozi 4d7538f46e update workflow 2026-06-22 12:43:14 -03:00
waozi b5d1fa617a update locales 2026-06-22 12:29:59 -03:00
waozi c700c5a616 fix logo 2026-06-22 11:51:04 -03:00
waozi 285a93fa58 fix image scaling 2026-06-22 11:39:33 -03:00
waozi 92777d5425 fix dropdown mode 2026-06-22 01:46:10 -03:00
waozi 05170a2846 hardn sql 2026-06-22 04:37:31 +00:00
waozi c34ad06050 fix last write wins 2026-06-22 04:35:18 +00:00
waozi 3cef21ab54 update wpa icons 2026-06-22 04:25:19 +00:00
waozi 1b0a50e248 simplify account model 2026-06-22 01:10:05 -03:00
waozi a6616d3cb2 bug fixes 2026-06-22 00:40:29 -03:00
waozi 0cf6f436e1 fi xstorage 2026-06-22 00:27:14 -03:00
waozi 06358b5bfb update icons 2026-06-22 00:13:14 -03:00
waozi 201dced542 update logos 2026-06-21 23:43:39 -03:00
waozi c580bc28ed tab bar 2026-06-21 20:37:40 -03:00
waozi 7b0ecd1e13 cleaner first user guide 2026-06-21 17:17:07 -03:00
waozi 53fdc50827 update version 2026-06-21 12:52:33 -03:00
waozi 0fb6e98993 fix orientation issues 2026-06-21 12:52:12 -03:00
waozi 2a95e1652f fix rotation bug 2026-06-21 12:43:00 -03:00
waozi 9a04b9893b improve avd script 2026-06-21 12:36:51 -03:00
waozi 4b093aef18 more cleanup and guided habits tetx 2026-06-21 12:00:35 -03:00
waozi 9f0a136689 clean up code 2026-06-21 11:41:16 -03:00
waozi 78507b44eb add skip feature in guide 2026-06-21 11:22:33 -03:00
waozi 7b7fb07717 fix padding issues 2026-06-21 01:59:07 -03:00
waozi 0f34ddc97d bug fixes 2026-06-21 01:46:41 -03:00
waozi c679b11b73 improve github action caching 2026-06-21 01:28:57 -03:00
waozi 82ccb092c2 improve edit icon 2026-06-21 01:16:41 -03:00
waozi 8bbbfe0be0 add new first time user guid 2026-06-21 01:08:35 -03:00
waozi ee89a9623a add basic transit]ion between screens 2026-06-21 00:22:03 -03:00
waozi df91739754 fix new hhabit creation 2026-06-21 00:01:55 -03:00
waozi 5fadbcacea improve workflow 2026-06-20 23:49:08 -03:00
waozi c0912d29f0 rm click 2026-06-20 23:35:31 -03:00
waozi a6648a51d1 fix ci 2026-06-20 19:52:44 -03:00
waozi 37cee8b105 ui improvements 2026-06-20 19:38:14 -03:00
waozi c766b84796 improve edit habit 2026-06-20 19:03:04 -03:00
waozi 663ad10fba refactor and bug fixes 2026-06-20 18:34:58 -03:00
waozi 1072d38690 sidebar + bottom nav 2026-06-20 18:18:27 -03:00
waozi fd1ac9403b add version 2026-06-20 16:24:56 -03:00
waozi 43286f23c9 fix line wrap 2026-06-20 16:20:47 -03:00
waozi c2f63faee6 fix locales 2026-06-20 16:09:34 -03:00
waozi 081357578b update screenshots 2026-06-20 14:43:58 -03:00
waozi a047d036f3 polish 2026-06-20 14:04:54 -03:00
waozi cdd14267f2 better abstractions 2026-06-20 11:24:25 -03:00
waozi 6ab4bd6e61 refactor 2026-06-20 10:48:11 -03:00
waozi 376c2ee40b split storage file 2026-06-20 10:31:34 -03:00
waozi 779699ac43 improve breath button positioning 2026-06-20 03:41:33 -03:00
waozi ce01d33aac improve meta and add .click 2026-06-20 03:31:01 -03:00
waozi 807aa54166 fix makefile 2026-06-20 00:49:19 -03:00
waozi 96de9c2492 update version 2026-06-20 00:38:47 -03:00
waozi 117e75c158 fix dropdown bug 2026-06-20 00:25:18 -03:00
waozi 8f556fd5a5 new release 2026-06-20 00:15:18 -03:00
waozi 2807328b00 implement proper sync 2026-06-19 23:46:29 -03:00
waozi 77c4078b9f code cleanup 2026-06-19 22:34:50 -03:00
waozi ed4f1f4d82 fix sync 2026-06-19 22:28:10 -03:00
waozi 41aab988cb consolidate sync logic 2026-06-19 20:17:22 -03:00
waozi 04c8ea1e82 bug fixes on web 2026-06-19 14:43:41 -03:00
waozi ef325ed4af improve account management 2026-06-19 14:20:17 -03:00
waozi 0ce5f1ecd5 improve account maangement 2026-06-19 14:19:52 -03:00
waozi 57a93fb1a2 fix icon row 2026-06-19 13:18:26 -03:00
waozi 3fac68a0c5 ui improvements 2026-06-19 13:15:21 -03:00
waozi 194c98327e implement habit conutr 2026-06-19 13:05:40 -03:00
waozi 1ece2a38f4 simplify tutorial 2026-06-19 11:49:43 -03:00
waozi 8d5fa97bc4 add sync settings 2026-06-19 11:13:30 -03:00
waozi f5488096d4 refactor and add private id generation 2026-06-19 01:59:20 -03:00
waozi 200be33406 improve file dialog 2026-06-19 00:00:41 -03:00
waozi c83544e512 fix tickmate import 2026-06-18 18:32:52 -03:00
waozi 26b3845a01 improved android data import for .db 2026-06-18 17:27:23 -03:00
waozi 6928984362 allow import db files 2026-06-18 17:09:50 -03:00
waozi bebdbbbd38 reduce apk mess 2026-06-18 11:56:47 -03:00
waozi f5e643b096 fix gituhb action 2026-06-18 11:45:56 -03:00
waozi 513c2822ae Build release artifacts without Nix 2026-06-18 11:04:08 -03:00
waozi 7170bdef0b Run CI tests without Nix 2026-06-18 02:33:08 -03:00
waozi 75e01ce333 split up workflows 2026-06-18 01:59:50 -03:00
waozi 92dc51e7a8 improve github action 2026-06-18 01:54:01 -03:00
waozi a8c3ec5166 improve github actino 2026-06-18 01:44:45 -03:00
waozi bd42b9f151 fix audio linux 2026-06-18 01:30:30 -03:00
waozi 22e7a9eafc multi platform build on gh 2026-06-18 01:18:48 -03:00
waozi 4b90c5a079 refactor practices 2026-06-18 01:11:15 -03:00
waozi 9f08f2ad4b cleanup and refactor 2026-06-17 23:12:37 -03:00
waozi e9e2862b13 fix improt web 2026-06-17 19:32:00 -03:00
waozi d50369a777 update version 2026-06-17 18:50:36 -03:00
waozi 896b122c9f improve and fix improt 2026-06-17 18:50:24 -03:00
waozi 5feb0c44fe fix issues with runtime assets 2026-06-17 16:43:48 -03:00
waozi 95b6553a6f fix no of assets 2026-06-17 16:33:01 -03:00
waozi c4d2a92448 bug fixes 2026-06-17 16:30:25 -03:00
waozi 61bd0a9ea4 fix appimage 2026-06-17 15:36:27 -03:00
waozi 89de246311 fix merge import 2026-06-17 13:47:05 -03:00
waozi c169a4c6ad fix orientation change 2026-06-17 13:37:38 -03:00
waozi 861ca9ad2e bug fixes 2026-06-17 13:21:00 -03:00
waozi cda90a0617 improve weelky view and dropdowns 2026-06-17 11:46:23 -03:00
waozi 9d49f9ce57 fix improt issues and add packaging for appimages 2026-06-17 11:18:21 -03:00
waozi 30fc4584c3 fix font issues mobile 2026-06-17 09:43:41 -03:00
waozi cf593bf554 fix clipping 2026-06-17 09:04:07 -03:00
waozi c0f2939c9f bug fixes, otf chop for 8px 2026-06-17 01:19:52 -03:00
waozi ea800cd672 improve settings page 2026-06-16 23:10:41 -03:00
waozi 76ea43832c improve settings page 2026-06-16 23:04:59 -03:00
waozi c50d857cba refactor code base 2026-06-16 22:46:15 -03:00
waozi 09c87a8d9a better tracker managemnt and practice screenr 2026-06-16 22:27:04 -03:00
waozi ea8604392b refactor tracker and themes 2026-06-16 16:18:45 -03:00
waozi c02d6ae02a refactor to habits screen 2026-06-16 15:17:06 -03:00
waozi 12637cc7ef refactor 2026-06-16 11:01:22 -03:00
waozi f4c753b2f4 cleaner icon loading 2026-06-16 00:35:29 -03:00
waozi 9a231007f1 more cleanup 2026-06-14 14:46:27 -03:00
waozi 1ad4e8ee78 unify icon system 2026-06-14 14:35:54 -03:00
waozi ed1993bff8 simplify play butotn 2026-06-14 12:45:01 -03:00
waozi 7ff89fd78b cleanup and fixes 2026-06-14 11:40:56 -03:00
waozi 801f49d470 cleanup 2026-06-14 01:05:09 -03:00
waozi 7bf9c1859d cleanup theme usage 2026-06-14 00:49:25 -03:00
waozi 689d08eefa cleanup and add tests 2026-06-13 23:31:30 -03:00
waozi 60eb87f5f1 add changelog 2026-06-13 21:47:21 -03:00
waozi 784d14ac2e improve file browser 2026-06-13 21:43:41 -03:00
waozi 4db5c1dcf7 better data management 2026-06-13 21:11:44 -03:00
waozi 4eb7b5f19b merge with flint 2026-06-13 21:11:30 -03:00
waozi b07aeced88 add round label 2026-06-12 23:01:59 -03:00
waozi 8eb52b6515 Update Flint web dist packaging 2026-06-12 21:49:08 -03:00
waozi 1d219ca706 use latset flint 2026-06-12 11:33:50 -03:00
waozi 6f6b7a09e1 fix workflow 2026-06-12 10:34:36 -03:00
waozi c39d54b42a fix make 2026-06-12 10:25:56 -03:00
waozi 4a83138cb7 update version 2026-06-12 09:58:40 -03:00
waozi 0fbd274f4d cleanup 2026-06-12 09:56:44 -03:00
waozi 1f21d4d3af clean flint version 2026-06-12 00:42:22 -03:00
waozi d92c06a0b4 flint cli fully working 2026-06-12 00:11:22 -03:00
waozi e416d9419a use flint for cross building 2026-06-12 00:07:56 -03:00
waozi 5157746aca clean windows build 2026-06-11 23:45:54 -03:00
waozi 4993ad48e4 Embed runtime assets in desktop builds 2026-06-11 22:20:24 -03:00
waozi efd8de98cd upload all versions on itch 2026-06-11 16:48:08 -03:00
waozi a5729306ae update version 2026-06-11 13:06:54 -03:00
waozi d6373dab29 bug fixes and improve setting management 2026-06-11 13:03:51 -03:00
waozi 91a250a9be fix versioning 2026-06-10 08:41:39 -03:00
waozi 22d2b0916d fix history page 2026-06-10 08:38:18 -03:00
waozi 6a1d83f8f8 simplify scripts 2026-06-10 00:22:12 -03:00
waozi ced92152e1 bug fix 2026-06-10 00:18:25 -03:00
waozi 22c309e5e6 fix action 2026-06-09 23:57:51 -03:00
waozi b4922b5c35 Fix web file dialog guard 2026-06-09 23:51:25 -03:00
waozi e455f5c40c Fix font glyphs and web builds 2026-06-09 23:48:13 -03:00
waozi 7fbdfc5c49 add submodule 2026-06-09 23:33:40 -03:00
waozi d78af1d5b9 bug fixes and locale fixes 2026-06-09 23:30:10 -03:00
waozi 9d3844820f rm icons 2026-06-09 23:14:59 -03:00
waozi 1d01a8aa32 improve icon setup 2026-06-09 23:14:41 -03:00
waozi e5af624e3d import working on linux 2026-06-09 21:55:06 -03:00
waozi fe2f9209c6 wip file import 2026-06-09 21:41:29 -03:00
waozi 189227f3a1 update makefile 2026-06-09 13:36:16 -03:00
waozi 58c33a90d6 add new version 2026-06-09 13:05:43 -03:00
waozi 5a38c6953e fine grained sound, better language support 2026-06-09 11:13:11 -03:00
waozi fcd134a8e1 clean text 2026-06-09 00:13:33 -03:00
waozi 158c66d588 add font loading and asian languages 2026-06-08 23:18:52 -03:00
waozi 14d801fb11 Use Flint UI widgets directly 2026-06-08 15:21:13 -03:00
waozi 93941b5c6a Bump Flint for UI widgets 2026-06-08 15:20:42 -03:00
waozi 62641a2b41 Bump Flint for DPI cache 2026-06-08 15:09:21 -03:00
waozi ee94071509 Use Flint text layout directly 2026-06-08 15:05:08 -03:00
waozi 9770dd6b4c Bump Flint for text layout 2026-06-08 15:03:28 -03:00
waozi 8c82f35493 Move generic UI helpers into flint 2026-06-08 14:57:13 -03:00
waozi 71d0e24c39 Update flint theme catalog behavior 2026-06-08 14:21:58 -03:00
waozi 0ceebd055e Use flint catalog for theme previews 2026-06-08 14:20:36 -03:00
waozi 6555f85769 Register themes through flint catalog 2026-06-08 11:04:19 -03:00
waozi 6b40d00b5b Use vendored flint UI and themes 2026-06-08 10:54:50 -03:00
waozi 54cfd0e5e6 cleaner makefile 2026-06-08 00:40:01 -03:00
waozi 50674fefd6 improved settings page 2026-06-04 22:50:14 -03:00
waozi f6dbfc373a rm sync 2026-06-04 16:02:20 -03:00
waozi f5397afcd6 wip sync data 2026-06-03 00:17:29 -03:00
waozi 47ff302a0f fixes for web and version update 2026-06-01 17:00:10 -03:00
waozi dbe2e2fc6a add on screen keyboard 2026-06-01 16:33:26 -03:00
waozi ab662be647 improve edit filed 2026-06-01 12:42:01 -03:00
waozi 0341d983d1 improve tutorial, results saving and statistics 2026-06-01 12:29:36 -03:00
waozi b2a8b34df1 add multilingual 2026-05-31 06:08:23 -03:00
waozi 3b73ae0cb4 add progressive speed up for first round 2026-05-30 23:13:41 -03:00
waozi ddf4671297 fix for non android plat 2026-05-30 18:59:52 -03:00
waozi 83489725ed implement wakelock 2026-05-30 18:43:50 -03:00
waozi 7fb258f5d5 implement wakelock 2026-05-30 11:28:58 -03:00
waozi fff3469944 rm comments 2026-05-30 00:48:04 -03:00
waozi 731abd410b improve dpi settings 2026-05-30 00:28:07 -03:00
waozi 8fd4efb642 improve website 2026-05-30 00:19:07 -03:00
waozi adf8352e92 cleanup code and improve site 2026-05-29 23:57:23 -03:00
waozi 706a8a0797 clean up instructions 2026-05-29 20:04:38 -03:00
waozi d068a8b8e0 fi xscript 2026-05-29 15:07:05 -03:00
waozi 024b16e36b add copy assets script 2026-05-29 14:57:23 -03:00
waozi 16e4ec2711 fix padding 2026-05-29 14:53:29 -03:00
waozi 7ce19c045f massive layout improvements 2026-05-29 14:50:11 -03:00
waozi a2e5a594cd update cmake 2026-05-29 13:31:44 -03:00
waozi ec53dd02af implement text reflow 2026-05-29 13:29:54 -03:00
waozi 8d92924849 update workflow 2026-05-29 12:43:31 -03:00
waozi 407681fada rm unsigned apk 2026-05-29 12:05:40 -03:00
waozi 6a3d3f3559 fix gradle for github action 2026-05-29 11:38:47 -03:00
waozi ab59ab6b83 mistake in workflow 2026-05-29 11:34:46 -03:00
waozi 321afdd465 fix workflow 2026-05-29 11:33:31 -03:00
waozi c2f7d75258 update workflow 2026-05-29 11:31:34 -03:00
waozi eba69651a9 udptae version 2026-05-29 11:27:47 -03:00
waozi 8fe47c8a32 add image fallback 2026-05-29 11:19:29 -03:00
waozi 81032a9dcc bug fix 2026-05-29 09:20:11 -03:00
waozi 2be97ca801 release fix 2026-05-29 09:14:19 -03:00
waozi 324d18fdfb fix inset 2026-05-29 09:11:47 -03:00
waozi 6889777cff increase inset 2026-05-29 07:50:08 -03:00
waozi ea78b73c86 move scripts 2026-05-29 07:26:04 -03:00
waozi 1e5768f6b4 fix data issue 2026-05-29 07:23:00 -03:00
waozi 612f431376 bug fix 2026-05-28 23:58:22 -03:00
waozi f13a88b94e improve website 2026-05-28 18:48:19 -03:00
waozi e7d9843e94 add itch script 2026-05-28 18:14:25 -03:00
waozi ae438d7c14 rm dependency tracker 2026-05-28 16:31:51 -03:00
waozi 879f058d7a fix bug 2026-05-28 14:44:10 -03:00
waozi f208429e08 fix script 2026-05-28 14:38:41 -03:00
waozi 827780347b fastlane changelog 2026-05-28 14:37:35 -03:00
waozi 791ca2eba9 fix versioning 2026-05-28 14:35:31 -03:00
waozi 7d3d4d588b add descriptions 2026-05-28 12:37:07 -03:00
waozi eec36173c8 fix dropdown passthrough 2026-05-28 10:48:38 -03:00
waozi a21bc16bcd update version 2026-05-28 10:20:02 -03:00
waozi 79a9f92e35 make file sharing work 2026-05-28 10:19:50 -03:00
waozi fc77fa2aea implemnet clean zip export 2026-05-28 04:14:31 -03:00
waozi e21f49cf4d wip data management 2026-05-28 02:55:45 -03:00
waozi a9f2cbb464 refactor code 2026-05-28 02:34:07 -03:00
waozi a0b86526a2 add return button func on android 2026-05-28 01:12:11 -03:00
waozi d39f908ddb new test 2026-05-27 18:38:48 -03:00
waozi cb8cbf4ca7 improve build for fdroid 2026-05-27 18:23:09 -03:00
waozi 077e400e38 cleaner relesae 2026-05-27 15:41:55 -03:00
waozi 050eee00ae use correct tag 2026-05-27 15:33:30 -03:00
waozi 212160a48a auto tag 2026-05-27 15:29:11 -03:00
waozi 96b479b99f bug fix 2026-05-27 15:18:55 -03:00
waozi 19570e4b1c enable signing 2026-05-27 15:14:02 -03:00
waozi fc8c583eee add fastlane metadata 2026-05-27 15:04:40 -03:00
waozi 2612192889 prepare for f-droid 2026-05-27 14:24:11 -03:00
waozi ce26a3d2a3 finish migration 2026-05-27 14:17:17 -03:00
waozi b8b1bc9989 bug fixes 2026-05-27 14:01:19 -03:00
waozi 16a5a33091 bug fixes 2026-05-27 13:51:21 -03:00
waozi dac27ce0d8 track drodi stuff correctyl 2026-05-27 13:49:12 -03:00
waozi 44e70de7d1 add waozi icons 2026-05-27 13:12:46 -03:00
waozi 7c3318ff72 add flake 2026-05-27 13:03:39 -03:00
waozi 170ecc851a add cherry theme andbug fixes 2026-05-27 11:45:27 -03:00
waozi c0a9484d7e implement theming 2026-05-27 00:48:45 -03:00
waozi 310a822ea5 add version upgrade script 2026-05-26 16:15:15 -03:00
waozi f3a437a165 update version 2026-05-26 10:52:06 -03:00
waozi f2dbd32df4 bug fixes 2026-05-26 10:45:01 -03:00
waozi 66cb62b4d3 improve scaling 2026-05-26 10:18:06 -03:00
waozi e9c1945511 add sounds 2026-05-25 21:52:20 -03:00
waozi dd7d05fa28 fix androdi scaling 2026-05-25 20:24:16 -03:00
waozi ace95aa97c improve mobile view 2026-05-25 14:24:07 -03:00
waozi b2cca9395c finish inbe basic 2026-05-25 12:44:40 -03:00
waozi 548217c10d cascading windows 2026-05-24 20:57:08 -03:00
waozi d674586fe9 fix web shell 2026-05-24 20:27:27 -03:00
waozi 7f48edf8f6 improve android inbe 2026-05-24 16:08:10 -03:00
waozi 18bff54ec5 cleanup 2026-05-23 23:58:31 -03:00
waozi 764a652e1c unify flake 2026-05-23 23:41:11 -03:00
waozi d41a12503e add lotus 2026-05-23 23:18:56 -03:00
waozi 8f728d97bb wip lotus 2026-05-23 18:39:06 -03:00
waozi e43973882e cross compile to windows 2026-05-23 13:19:31 -03:00
waozi 1e8976c0d4 reorg 2026-05-23 10:10:56 -03:00
waozi 90adc96782 clean and replace with ray 2026-05-23 09:34:33 -03:00
waozi 4f1950c488 testray 2026-05-23 08:42:59 -03:00
waozi bc27c72034 simplify linux version 2026-05-23 00:35:12 -03:00
waozi 3f7054fe40 improve icons 2026-05-22 22:32:32 -03:00
waozi 48a3a78049 clean bulid and native linux 2026-05-22 22:09:12 -03:00
waozi b9ee0287f5 add banner image for inbe 2026-05-22 10:40:47 -03:00
waozi dec0a05dd0 complete basic inner breeze breathing cycle 2026-05-22 09:40:52 -03:00
waozi 6ad78bd288 drawing primitives, buttons 2026-05-21 23:36:02 -03:00
waozi bb40a2822d use liblotus 2026-05-21 22:33:06 -03:00
waozi f189300079 stared liblotus 2026-05-21 22:01:57 -03:00
waozi 77f880f3ed simple android fb manipulation 2026-05-21 16:47:37 -03:00
waozi 163bbeaa8c add results to wasm4 inbe 2026-05-21 14:25:06 -03:00
waozi 54a6016976 cleanup 2026-05-21 10:14:45 -03:00
waozi 11add452e2 bug fixes 2026-05-21 02:58:48 -03:00
waozi aaf7019067 add subdomains 2026-05-21 02:46:23 -03:00
waozi 2829f237a1 rename and refactor 2026-05-21 02:35:11 -03:00
348 changed files with 25745 additions and 15950 deletions

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
build-essential
ca-certificates
curl
libcurl4-openssl-dev
libdrm-dev
libdrm2
libegl1-mesa-dev
libegl1
libgbm-dev
libgbm1
libgles2-mesa-dev
libgl1
libgl1-mesa-dri
libglvnd0
libx11-6
libx11-dev
libxext6
libsdl2-2.0-0
libsdl2-dev
patchelf
pkg-config
zip
+2
View File
@@ -0,0 +1,2 @@
build-essential
zlib1g-dev
+3
View File
@@ -0,0 +1,3 @@
build-essential
zlib1g-dev
zip
+5
View File
@@ -0,0 +1,5 @@
build-essential
gcc-mingw-w64-i686-win32
gcc-mingw-w64-x86-64-win32
zlib1g-dev
zip
-106
View File
@@ -1,106 +0,0 @@
name: Android Build
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
permissions:
contents: write
jobs:
release:
name: Build Release APK
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Grant execute permission for gradlew
run: chmod +x droid/gradlew
- name: Create keystore directory
run: mkdir -p ~/.android
- name: Decode Keystore
env:
KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }}
run: |
echo "$KEYSTORE_BASE64" | base64 -d > ~/.android/inbe-release.keystore
echo "Keystore decoded successfully"
- name: Copy Assets to Android Project
run: ./scripts/copy-android-assets.sh
- name: Run Tests
run: make test
- name: Build Release APK
working-directory: ./droid
env:
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
run: |
./gradlew assembleRelease \
-Pkeystore.password="$KEYSTORE_PASSWORD" \
-Pkeystore.path="/home/runner/.android/inbe-release.keystore" \
--stacktrace
- name: Rename APK
run: |
VERSION=$(grep "versionName" droid/app/build.gradle | awk '{print $2}' | tr -d '"')
find droid/app/build/outputs/apk/release -name "*-universal-release.apk" -exec cp {} inbe-$VERSION.apk \; 2>/dev/null || true
- name: Upload APK to Artifacts
uses: actions/upload-artifact@v4
with:
name: release-apk
path: inbe-*.apk
if-no-files-found: warn
- name: Create and Push Tag (if new version)
id: tag_version
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
run: |
VERSION=$(grep "versionName" droid/app/build.gradle | awk '{print $2}' | tr -d '"')
TAG="v$VERSION"
if git rev-parse "$TAG" >/dev/null 2>&1; then
echo "Tag $TAG exists, skipping"
echo "tag_pushed=false" >> $GITHUB_OUTPUT
else
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git tag -a "$TAG" -m "Release $VERSION"
git push origin "$TAG"
echo "tag_pushed=true" >> $GITHUB_OUTPUT
echo "tag_name=$TAG" >> $GITHUB_OUTPUT
fi
- name: Create GitHub Release
if: steps.tag_version.outputs.tag_pushed == 'true'
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.tag_version.outputs.tag_name }}
files: inbe-*.apk
generate_release_notes: true
draft: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+104
View File
@@ -0,0 +1,104 @@
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test
runs-on: ubuntu-latest
env:
APT_CACHE_DIR: /tmp/apt-cache
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Cache Test apt packages
uses: actions/cache@v4
with:
path: ${{ env.APT_CACHE_DIR }}
key: test-apt-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.github/apt/test-packages.txt') }}
restore-keys: |
test-apt-${{ runner.os }}-${{ runner.arch }}-
- name: Install Test Dependencies
run: |
set -euo pipefail
mapfile -t packages < .github/apt/test-packages.txt
mkdir -p "$APT_CACHE_DIR/partial"
sudo apt-get update
sudo apt-get \
-o Dir::Cache::archives="$APT_CACHE_DIR" \
install -y "${packages[@]}"
sudo chown -R "$USER:$USER" "$APT_CACHE_DIR"
- name: Run Tests
run: make test
build-chrome-extension:
name: Build Chrome Extension
runs-on: ubuntu-latest
needs: test
env:
APT_CACHE_DIR: /tmp/apt-cache
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Cache Web apt packages
uses: actions/cache@v4
with:
path: ${{ env.APT_CACHE_DIR }}
key: web-apt-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.github/apt/web-packages.txt') }}
restore-keys: |
web-apt-${{ runner.os }}-${{ runner.arch }}-
- name: Install Web Dependencies
run: |
set -euo pipefail
mapfile -t packages < .github/apt/web-packages.txt
mkdir -p "$APT_CACHE_DIR/partial"
sudo apt-get update
sudo apt-get \
-o Dir::Cache::archives="$APT_CACHE_DIR" \
install -y "${packages[@]}"
sudo chown -R "$USER:$USER" "$APT_CACHE_DIR"
- name: Set up Emscripten
run: |
set -euo pipefail
git clone --depth 1 https://github.com/emscripten-core/emsdk.git "$HOME/emsdk"
"$HOME/emsdk/emsdk" install latest
"$HOME/emsdk/emsdk" activate latest
echo "EMSDK=$HOME/emsdk" >> "$GITHUB_ENV"
echo "EM_CONFIG=$HOME/emsdk/.emscripten" >> "$GITHUB_ENV"
echo "$HOME/emsdk" >> "$GITHUB_PATH"
echo "$HOME/emsdk/upstream/emscripten" >> "$GITHUB_PATH"
- name: Build Chrome Extension ZIP
run: |
set -euo pipefail
make package-unpackaged-assets
make chrome-web-store
test -f build/dist/inbe-chrome-web-store.zip
+456
View File
@@ -0,0 +1,456 @@
name: Release
on:
push:
branches:
- master
workflow_dispatch:
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test
runs-on: ubuntu-latest
env:
APT_CACHE_DIR: /tmp/apt-cache
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Cache Test apt packages
uses: actions/cache@v4
with:
path: ${{ env.APT_CACHE_DIR }}
key: test-apt-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.github/apt/test-packages.txt') }}
restore-keys: |
test-apt-${{ runner.os }}-${{ runner.arch }}-
- name: Install Test Dependencies
run: |
set -euo pipefail
mapfile -t packages < .github/apt/test-packages.txt
mkdir -p "$APT_CACHE_DIR/partial"
sudo apt-get update
sudo apt-get \
-o Dir::Cache::archives="$APT_CACHE_DIR" \
install -y "${packages[@]}"
sudo chown -R "$USER:$USER" "$APT_CACHE_DIR"
- name: Run Tests
run: make test
build-web:
name: Build Web
runs-on: ubuntu-latest
needs: test
env:
APT_CACHE_DIR: /tmp/apt-cache
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Cache Web apt packages
uses: actions/cache@v4
with:
path: ${{ env.APT_CACHE_DIR }}
key: web-apt-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.github/apt/web-packages.txt') }}
restore-keys: |
web-apt-${{ runner.os }}-${{ runner.arch }}-
- name: Install Web Dependencies
run: |
set -euo pipefail
mapfile -t packages < .github/apt/web-packages.txt
mkdir -p "$APT_CACHE_DIR/partial"
sudo apt-get update
sudo apt-get \
-o Dir::Cache::archives="$APT_CACHE_DIR" \
install -y "${packages[@]}"
sudo chown -R "$USER:$USER" "$APT_CACHE_DIR"
- name: Set up Emscripten
run: |
set -euo pipefail
git clone --depth 1 https://github.com/emscripten-core/emsdk.git "$HOME/emsdk"
"$HOME/emsdk/emsdk" install latest
"$HOME/emsdk/emsdk" activate latest
echo "EMSDK=$HOME/emsdk" >> "$GITHUB_ENV"
echo "EM_CONFIG=$HOME/emsdk/.emscripten" >> "$GITHUB_ENV"
echo "$HOME/emsdk" >> "$GITHUB_PATH"
echo "$HOME/emsdk/upstream/emscripten" >> "$GITHUB_PATH"
- name: Build Web ZIP
run: |
set -euo pipefail
make package-unpackaged-assets
make web
mkdir -p build/release/web
cp build/dist/inbe-web.zip build/release/web/
- name: Upload Web Artifact
uses: actions/upload-artifact@v4
with:
name: release-web
path: build/release/web/*
if-no-files-found: error
build-chrome-extension:
name: Build Chrome Extension
runs-on: ubuntu-latest
needs: test
env:
APT_CACHE_DIR: /tmp/apt-cache
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Cache Web apt packages
uses: actions/cache@v4
with:
path: ${{ env.APT_CACHE_DIR }}
key: web-apt-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.github/apt/web-packages.txt') }}
restore-keys: |
web-apt-${{ runner.os }}-${{ runner.arch }}-
- name: Install Web Dependencies
run: |
set -euo pipefail
mapfile -t packages < .github/apt/web-packages.txt
mkdir -p "$APT_CACHE_DIR/partial"
sudo apt-get update
sudo apt-get \
-o Dir::Cache::archives="$APT_CACHE_DIR" \
install -y "${packages[@]}"
sudo chown -R "$USER:$USER" "$APT_CACHE_DIR"
- name: Set up Emscripten
run: |
set -euo pipefail
git clone --depth 1 https://github.com/emscripten-core/emsdk.git "$HOME/emsdk"
"$HOME/emsdk/emsdk" install latest
"$HOME/emsdk/emsdk" activate latest
echo "EMSDK=$HOME/emsdk" >> "$GITHUB_ENV"
echo "EM_CONFIG=$HOME/emsdk/.emscripten" >> "$GITHUB_ENV"
echo "$HOME/emsdk" >> "$GITHUB_PATH"
echo "$HOME/emsdk/upstream/emscripten" >> "$GITHUB_PATH"
- name: Build Chrome Extension ZIP
run: |
set -euo pipefail
make package-unpackaged-assets
make chrome-web-store
mkdir -p build/release/chrome-web-store
cp build/dist/inbe-chrome-web-store.zip build/release/chrome-web-store/
- name: Upload Chrome Extension Artifact
uses: actions/upload-artifact@v4
with:
name: release-chrome-web-store
path: build/release/chrome-web-store/*
if-no-files-found: error
build-linux:
name: Build Linux
runs-on: ubuntu-latest
needs: test
env:
APT_CACHE_DIR: /tmp/apt-cache
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Cache Linux apt packages
uses: actions/cache@v4
with:
path: ${{ env.APT_CACHE_DIR }}
key: linux-apt-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.github/apt/linux-packages.txt') }}
restore-keys: |
linux-apt-${{ runner.os }}-${{ runner.arch }}-
- name: Install Linux Dependencies
run: |
set -euo pipefail
mapfile -t packages < .github/apt/linux-packages.txt
mkdir -p "$APT_CACHE_DIR/partial"
sudo apt-get update
sudo apt-get \
-o Dir::Cache::archives="$APT_CACHE_DIR" \
install -y "${packages[@]}"
sudo chown -R "$USER:$USER" "$APT_CACHE_DIR"
- name: Install AppImage Tools
run: |
set -euo pipefail
mkdir -p "$HOME/.local/bin"
curl -L -o "$HOME/.local/bin/linuxdeploy" \
https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
curl -L -o "$HOME/.local/bin/linuxdeploy-plugin-appimage" \
https://github.com/linuxdeploy/linuxdeploy-plugin-appimage/releases/download/1-alpha-20250213-1/linuxdeploy-plugin-appimage-x86_64.AppImage
curl -L -o "$HOME/.local/bin/appimagetool" \
https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
chmod +x "$HOME/.local/bin/linuxdeploy" "$HOME/.local/bin/linuxdeploy-plugin-appimage" "$HOME/.local/bin/appimagetool"
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
- name: Build Linux AppImage
env:
APPIMAGE_EXTRACT_AND_RUN: "1"
RAY_RAYLIB_CONFIG: -DSUPPORT_SCREEN_CAPTURE=0 -DSUPPORT_COMPRESSION_API=0 -DSUPPORT_AUTOMATION_EVENTS=0 -DSUPPORT_CLIPBOARD_IMAGE=0 -DSUPPORT_FILEFORMAT_BMP=0 -DSUPPORT_FILEFORMAT_GIF=0 -DSUPPORT_FILEFORMAT_QOI=0 -DSUPPORT_FILEFORMAT_DDS=0 -DSUPPORT_FILEFORMAT_TTF=0
run: |
set -euo pipefail
RAY_SDL_INCLUDE_DIR="$(pkg-config --variable=includedir sdl2 | sed 's,/SDL2$,,')"
RAY_CFLAGS="$(pkg-config --cflags sdl2 libdrm gbm egl glesv2)"
RAY_LDLIBS="$(pkg-config --libs sdl2 libdrm gbm egl glesv2)"
RAY_SDL_LDLIBS="$(pkg-config --libs sdl2)"
export RAY_SDL_INCLUDE_DIR RAY_CFLAGS RAY_LDLIBS RAY_SDL_LDLIBS
make appimage
mkdir -p build/release/linux
find build/dist/linux -maxdepth 1 -type f -name '*.AppImage' -exec cp {} build/release/linux/ \;
test -n "$(find build/release/linux -type f -print -quit)"
- name: Upload Linux Artifact
uses: actions/upload-artifact@v4
with:
name: release-linux
path: build/release/linux/*
if-no-files-found: error
build-windows:
name: Build Windows
runs-on: ubuntu-latest
needs: test
env:
APT_CACHE_DIR: /tmp/apt-cache
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Cache Windows apt packages
uses: actions/cache@v4
with:
path: ${{ env.APT_CACHE_DIR }}
key: windows-apt-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.github/apt/windows-packages.txt') }}
restore-keys: |
windows-apt-${{ runner.os }}-${{ runner.arch }}-
- name: Cache Windows vendor builds
uses: actions/cache@v4
with:
path: |
vendor-builds/windows
vendor-builds/sqlite
key: windows-vendor-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile', 'vendor/raylib/src/**', 'vendor/curl/**', 'vendor/sqlite/**') }}
restore-keys: |
windows-vendor-${{ runner.os }}-${{ runner.arch }}-
- name: Install Windows Dependencies
run: |
set -euo pipefail
mapfile -t packages < .github/apt/windows-packages.txt
mkdir -p "$APT_CACHE_DIR/partial"
sudo apt-get update
sudo apt-get \
-o Dir::Cache::archives="$APT_CACHE_DIR" \
install -y "${packages[@]}"
sudo chown -R "$USER:$USER" "$APT_CACHE_DIR"
if [ -x /usr/bin/x86_64-w64-mingw32-gcc-win32 ]; then
sudo update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-win32
fi
if [ -x /usr/bin/i686-w64-mingw32-gcc-win32 ]; then
sudo update-alternatives --set i686-w64-mingw32-gcc /usr/bin/i686-w64-mingw32-gcc-win32
fi
- name: Build Windows ZIP
run: |
set -euo pipefail
make windows
mkdir -p build/release/windows
find build/dist/windows -maxdepth 1 -type f -name '*.zip' -exec cp {} build/release/windows/ \;
test -n "$(find build/release/windows -type f -print -quit)"
- name: Upload Windows Artifact
uses: actions/upload-artifact@v4
with:
name: release-windows
path: build/release/windows/*
if-no-files-found: error
build-android:
name: Build Android
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Cache Android SDK packages
uses: actions/cache@v4
with:
path: |
${{ env.ANDROID_HOME }}/platforms/android-35
${{ env.ANDROID_HOME }}/build-tools/34.0.0
${{ env.ANDROID_HOME }}/ndk/25.1.8937393
${{ env.ANDROID_HOME }}/ndk/28.2.13676358
${{ env.ANDROID_HOME }}/cmake/3.22.1
key: android-sdk-${{ runner.os }}-${{ runner.arch }}-api35-bt34-ndk25-ndk28-cmake322
restore-keys: |
android-sdk-${{ runner.os }}-${{ runner.arch }}-
- name: Cache Android native build
uses: actions/cache@v4
with:
path: |
droid/app/.cxx
droid/app/build/intermediates/cxx
key: android-native-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('droid/app/src/main/cpp/CMakeLists.txt', 'droid/app/build.gradle', 'src/**/*.c', 'src/**/*.h', 'flint/src/**/*.c', 'flint/include/**/*.h', 'vendor/raylib/src/**') }}
restore-keys: |
android-native-${{ runner.os }}-${{ runner.arch }}-
- name: Install Android SDK Components
run: |
set -euo pipefail
SDKMANAGER="$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager"
yes | "$SDKMANAGER" --licenses >/dev/null || true
"$SDKMANAGER" "platforms;android-35" "build-tools;34.0.0" "ndk;25.1.8937393" "cmake;3.22.1"
- name: Prepare Android signing key
env:
KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }}
run: |
set -euo pipefail
mkdir -p ~/.android
echo "$KEYSTORE_BASE64" | base64 -d > ~/.android/inbe-release.keystore
- name: Copy Android Assets
run: ./scripts/copy-android-assets.sh
- name: Build Android APK
env:
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
run: |
set -euo pipefail
chmod +x droid/gradlew
./droid/gradlew -p droid assembleRelease \
-Pkeystore.path="$HOME/.android/inbe-release.keystore" \
-Pkeystore.alias="$KEY_ALIAS" \
-Pkeystore.password="$KEYSTORE_PASSWORD" \
--stacktrace
make android-copy-release-apks
- name: Collect Android Release Files
run: |
set -euo pipefail
mkdir -p build/release/android
VERSION=$(sed -n 's/^#define INBE_VERSION_STRING "\([^"]*\)".*/\1/p' src/core/version.h)
if [ -z "$VERSION" ]; then
echo "Could not read INBE_VERSION_STRING"
exit 1
fi
cp "build/android/inbe-$VERSION.apk" build/release/android/
- name: Upload Android Artifacts
uses: actions/upload-artifact@v4
with:
name: release-android
path: build/release/android/*
if-no-files-found: error
release:
name: Release
runs-on: ubuntu-latest
needs:
- build-web
- build-chrome-extension
- build-linux
- build-windows
- build-android
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download Release Artifacts
uses: actions/download-artifact@v4
with:
pattern: release-*
path: build/release
merge-multiple: true
- name: Verify Release Artifacts
run: |
set -euo pipefail
test -n "$(find build/release -type f -print -quit)"
- name: Create and Push Tag If Version Is New
id: tag_version
run: |
set -euo pipefail
VERSION=$(sed -n 's/^#define INBE_VERSION_STRING "\([^"]*\)".*/\1/p' src/core/version.h)
if [ -z "$VERSION" ]; then
echo "Could not read INBE_VERSION_STRING"
exit 1
fi
TAG="v$VERSION"
if git rev-parse "$TAG" >/dev/null 2>&1; then
echo "Tag $TAG exists, skipping release"
echo "tag_pushed=false" >> "$GITHUB_OUTPUT"
else
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git tag -a "$TAG" -m "Release $VERSION"
git push origin "$TAG"
echo "tag_pushed=true" >> "$GITHUB_OUTPUT"
echo "tag_name=$TAG" >> "$GITHUB_OUTPUT"
fi
- name: Create GitHub Release
if: steps.tag_version.outputs.tag_pushed == 'true'
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.tag_version.outputs.tag_name }}
files: build/release/*
generate_release_notes: true
draft: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+4
View File
@@ -10,14 +10,18 @@
.codex/
.agents/
.cache/
.ccache
*.wasm
build/
tmp/
vendor-builds/
node_modules
*.nix-defexpr
*.npm
*.nix-profile
.claude.json
.bash_history
.env
*.exe
+9
View File
@@ -10,3 +10,12 @@
[submodule "vendor/sqlite"]
path = vendor/sqlite
url = https://github.com/sqlite/sqlite
[submodule "vendor/liboqs"]
path = vendor/liboqs
url = https://github.com/open-quantum-safe/liboqs.git
[submodule "vendor/curl"]
path = vendor/curl
url = https://github.com/curl/curl.git
[submodule "vendor/flint"]
path = vendor/flint
url = [email protected]:waozixyz/flint.git
+117
View File
@@ -1,8 +1,125 @@
# Changelog
## [1.5.2] - 2026-06-23
### Changed
- let you disable screen transitions
- added theme modal
## [1.5.1] - 2026-06-22
### Fixed
- icon scaling
- fix inset bug
### Added
- toggle background music
## [1.5.0] - 2026-06-22
### Changed
- New logo
- improve tabbar ui
### Fixed
- sync issues
## [1.4.11] - 2026-06-21
### Added
- tab bar mode for habits and exercises
### Changed
- fix ut click file
## [1.4.10] - 2026-06-21
### Added
- Added guide to habits page
### Changed
- fix orientation issues
## [1.4.9] - 2026-06-21
### Fixed
- Fix Practice startup, manual navigation, configuration scrolling, and sync backfill issues.
- Add skip feature to on screen guide
## [1.4.8] - 2026-06-21
### Changed
- Fixed start screen
- Fixed schema on first sync
## [1.4.7] - 2026-06-21
### Changed
- Rework Practice into Manual, start, and configuration tabs with a new localized first-run guide.
- Simplify Meditation's manual to one page and make bottom navigation more compact.
## [1.4.6] - 2026-06-20
### Changed
- Move habit weekly, monthly, statistics, and edit views into icon tabs under the habit selector.
- Improve Flint form, modal, tab, and scrollbar widgets for measured layouts and cleaner scrolling.
### Fixed
- Prevent habit info modal text from overlapping the OK button.
## [1.4.5] - 2026-06-20
### Changed
- Fix spacing issues and translations
## [1.4.4] - 2026-06-20
### Added
- Add Russian localization.
- Add a habit stats view with streak, recent activity, weekday, and linked-practice diagrams.
- Add optional in-session volume controls, hidden by default.
- Add Mint and Cobalt themes.
### Changed
- Use one canonical pixel font atlas with Flint-managed DPI scaling and cleaner title sizing.
- Simplify habit counting so multiple counts are opt-in and independent of linked practices.
- Improve habit weekly/calendar spacing, mobile calendar touch feedback, and theme picker ordering.
- Reorganize repeated screen UI into reusable Flint helpers.
### Fixed
- Build the Ubuntu Touch Click package with the OpenStore package id
- Refactor code base
- Sync habit multiple-count settings correctly across clients and preserve queued local habit edits.
- Preserve linked session day behavior while hiding redundant count badges.
## [1.4.3] - 2026-06-20
### Fixed
- Refresh expired native sync auth tokens before sending queued changes.
- Require first-time meditation users to continue through the tutorial before starting.
## [1.4.2] - 2026-06-20
### Fixed
- Improve sync auth, websocket reconnects, and queued habit/session updates.
- Reduce SQLite-related UI flicker and speed up bulk import sync queueing.
- Fixed dropdown menus so temporary option lists cannot crash theme/device selection.
- Fixed Linux test and release builds to link against the vendored curl library path.
## [1.4.1] - 2026-06-19
### Changed
- Improve account management
## [1.4.0] - 2026-06-19
### Added
- optional sync client, offline account creation
- simplify tutorial
## [1.3.6] - 2026-06-18
### Fixed
- Fixed Tickmate `.db` imports so zero-based months map correctly and long habit histories load without dropping later dates.
## [1.3.5] - 2026-06-18
### Fixed
- Improved Android data import for `.db` backups, weekly habit rows, and import conflict handling.
## [1.3.4] - 2026-06-18
### Changed
- Reorganized WHM and Meditation into practice-owned modules for cleaner code boundaries.
- Split the meditation manual into an image intro page and a shorter music/gong setup page.
- Expanded release automation to build Web, Linux AppImage, Windows, APK, and AAB artifacts after tests pass.
## [1.3.3] - 2026-06-17
### Fixed
- Import now restores habits, habit sync settings, and optionally app settings from Inbe SQLite exports.
## [1.3.2] - 2026-06-17
### Fixed
- Unified scroll containers so content stays out of scrollbar tracks and scroll positions clamp cleanly at the bottom.
- Android meditation audio downloads now show a localized network-permission/connectivity modal when the host cannot be resolved.
- Windows builds now support runtime meditation audio downloads.
## [1.3.1] - 2026-06-17
### Fixed
+576 -86
View File
@@ -6,7 +6,9 @@ ANDROID_APP_ID := xyz.waozi.inbe
ANDROID_ACTIVITY := xyz.waozi.inbe.MainActivity
CC ?= gcc
CMAKE ?= $(shell if [ -x /usr/bin/cmake ]; then echo /usr/bin/cmake; else command -v cmake; fi)
GRADLE ?= gradle
ADB ?= adb
ARCH := $(shell uname -m)
ANDROID_KEYSTORE ?= $(HOME)/.android/flint-release.keystore
ANDROID_KEY_ALIAS ?= inbe-key
@@ -15,6 +17,7 @@ BUILD_DIR := build
BUILD_OBJ_DIR := $(BUILD_DIR)/obj
BUILD_BIN_DIR := $(BUILD_DIR)/bin
BUILD_DIST_DIR := $(BUILD_DIR)/dist
VENDOR_BUILD_DIR := vendor-builds
LINUX_OBJ_DIR := $(BUILD_OBJ_DIR)/linux
LINUX_BIN_DIR := $(BUILD_BIN_DIR)/linux
LINUX_DIST_DIR := $(BUILD_DIST_DIR)/linux
@@ -24,80 +27,161 @@ LINUX_APPIMAGE_DIR := packaging/linux/appimage
LINUX_APPIMAGE_APPRUN := $(LINUX_APPIMAGE_DIR)/AppRun
LINUX_APPIMAGE_DESKTOP := $(LINUX_APPIMAGE_DIR)/$(APP_NAME).desktop
LINUX_APPIMAGE_ICON := $(LINUX_APPIMAGE_DIR)/$(APP_NAME).png
LINUX_APPIMAGE_APPDATA := $(LINUX_APPIMAGE_DIR)/$(APP_NAME).appdata.xml
CLICK_PACKAGE ?= inbe
CLICK_TITLE ?= $(APP_TITLE)
CLICK_MAINTAINER ?= Waozi Project <[email protected]>
CLICK_ARCH ?= arm64
CLICK_FRAMEWORK ?= ubuntu-sdk-20.04
CLICK_POLICY_VERSION ?= 20.04
CLICK_INCLUDE_METAINFO ?= 0
CLICK_DIR := packaging/click
CLICK_RUNNER := $(CLICK_DIR)/run-inbe.sh
CLICK_BUILD_DIR := $(BUILD_OBJ_DIR)/click/$(CLICK_ARCH)
CLICK_ROOT := $(CLICK_BUILD_DIR)/$(CLICK_PACKAGE)
CLICK_CONTROL_DIR := $(CLICK_BUILD_DIR)/control
CLICK_BIN_DIR := $(BUILD_BIN_DIR)/click/$(CLICK_ARCH)
CLICK_DIST_DIR := $(BUILD_DIST_DIR)/click
CLICK_TARGET = $(CLICK_DIST_DIR)/$(CLICK_PACKAGE)_$(APP_VERSION)_$(CLICK_ARCH).click
CLICK_BIN := $(CLICK_BIN_DIR)/$(APP_NAME)
CLICK_BIN_INPUT := $(if $(strip $(CLICK_BIN_SOURCE)),$(CLICK_BIN_SOURCE),$(CLICK_BIN))
CLICK_RAYLIB_BUILD_DIR := $(VENDOR_BUILD_DIR)/click/$(CLICK_ARCH)/raylib
CLICK_RAYLIB_A := $(CLICK_RAYLIB_BUILD_DIR)/libraylib.a
CLICK_PATCHELF_INTERPRETER ?= /lib/ld-linux-aarch64.so.1
CLICK_RUNTIME_LIBS ?= $(AARCH64_CLICK_RUNTIME_LIBS)
WINDOWS_OBJ_DIR := $(BUILD_OBJ_DIR)/windows
WINDOWS_BIN_DIR := $(BUILD_BIN_DIR)/windows
WINDOWS_DIST_DIR := $(BUILD_DIST_DIR)/windows
ANDROID_BUILD_DIR := $(BUILD_DIR)/android
ANDROID_FAST_ABI ?= $(shell $(ADB) shell getprop ro.product.cpu.abi 2>/dev/null | tr -d '\r' | head -n 1)
ANDROID_DEBUG_ABIS ?= $(if $(strip $(ANDROID_FAST_ABI)),$(ANDROID_FAST_ABI),arm64-v8a)
WEB_OBJ_DIR := $(BUILD_OBJ_DIR)/web
WEB_DIST_DIR := $(BUILD_DIST_DIR)/web
CHROME_WEB_STORE_DIR := $(BUILD_DIST_DIR)/chrome-web-store
VERSION_FILE := src/core/version.h
APP_VERSION := $(shell sed -n 's/^#define INBE_VERSION_STRING "\([^"]*\)".*/\1/p' $(VERSION_FILE) 2>/dev/null)
RAYLIB_DIR := vendor/raylib/src
RAYLIB_BUILD_DIR := $(LINUX_OBJ_DIR)/$(ARCH)/native/raylib
RAYLIB_BUILD_DIR := $(VENDOR_BUILD_DIR)/linux/$(ARCH)/raylib
RAYLIB_A := $(RAYLIB_BUILD_DIR)/libraylib.a
WIN64_ARCH := x86_64
WIN64_CC ?= $(or $(WIN_CC),x86_64-w64-mingw32-gcc)
WIN64_AR ?= $(or $(WIN_AR),x86_64-w64-mingw32-ar)
WIN64_RANLIB ?= $(or $(WIN_RANLIB),x86_64-w64-mingw32-ranlib)
WIN64_STRIP ?= $(or $(WIN_STRIP),x86_64-w64-mingw32-strip)
WIN64_CC_PATH := $(shell command -v $(WIN64_CC) 2>/dev/null || printf '%s' $(WIN64_CC))
WIN64_AR_PATH := $(shell command -v $(WIN64_AR) 2>/dev/null || printf '%s' $(WIN64_AR))
WIN64_RANLIB_PATH := $(shell command -v $(WIN64_RANLIB) 2>/dev/null || printf '%s' $(WIN64_RANLIB))
WIN32_ARCH := i686
WIN32_CC ?= i686-w64-mingw32-gcc
WIN32_AR ?= i686-w64-mingw32-ar
WIN32_RANLIB ?= i686-w64-mingw32-ranlib
WIN32_STRIP ?= i686-w64-mingw32-strip
WIN64_RAYLIB_BUILD_DIR := $(WINDOWS_OBJ_DIR)/$(WIN64_ARCH)/raylib
WIN32_CC_PATH := $(shell command -v $(WIN32_CC) 2>/dev/null || printf '%s' $(WIN32_CC))
WIN32_AR_PATH := $(shell command -v $(WIN32_AR) 2>/dev/null || printf '%s' $(WIN32_AR))
WIN32_RANLIB_PATH := $(shell command -v $(WIN32_RANLIB) 2>/dev/null || printf '%s' $(WIN32_RANLIB))
WIN64_RAYLIB_BUILD_DIR := $(VENDOR_BUILD_DIR)/windows/$(WIN64_ARCH)/raylib
WIN64_RAYLIB_A := $(WIN64_RAYLIB_BUILD_DIR)/libraylib.a
WIN32_RAYLIB_BUILD_DIR := $(WINDOWS_OBJ_DIR)/$(WIN32_ARCH)/raylib
WIN32_RAYLIB_BUILD_DIR := $(VENDOR_BUILD_DIR)/windows/$(WIN32_ARCH)/raylib
WIN32_RAYLIB_A := $(WIN32_RAYLIB_BUILD_DIR)/libraylib.a
WEB_RAYLIB_BUILD_DIR := $(WEB_OBJ_DIR)/raylib
WIN64_CURL_BUILD_DIR := $(VENDOR_BUILD_DIR)/windows/$(WIN64_ARCH)/curl
WIN64_CURL_INCLUDE_DIR := $(WIN64_CURL_BUILD_DIR)/include
WIN64_CURL_A := $(WIN64_CURL_BUILD_DIR)/lib/libcurl.a
WIN32_CURL_BUILD_DIR := $(VENDOR_BUILD_DIR)/windows/$(WIN32_ARCH)/curl
WIN32_CURL_INCLUDE_DIR := $(WIN32_CURL_BUILD_DIR)/include
WIN32_CURL_A := $(WIN32_CURL_BUILD_DIR)/lib/libcurl.a
WEB_RAYLIB_BUILD_DIR := $(VENDOR_BUILD_DIR)/web/raylib
WEB_RAYLIB_A := $(WEB_RAYLIB_BUILD_DIR)/libraylib.web.a
RAYLIB_SOURCES := $(wildcard $(RAYLIB_DIR)/*.c) $(wildcard $(RAYLIB_DIR)/*.h)
RAYLIB_SOURCES := $(shell find $(RAYLIB_DIR) -type f \( -name '*.c' -o -name '*.h' \))
FLINT_DIR := flint
FLINT_DIR := vendor/flint
FLINT_ICON_FILES := $(wildcard $(FLINT_DIR)/icons/*.png)
FLINT_ICON_ASSETS_C := $(FLINT_DIR)/src/flint_icon_assets.c
FLINT_SRCS := $(filter-out $(FLINT_ICON_ASSETS_C),$(wildcard $(FLINT_DIR)/src/*.c)) $(FLINT_ICON_ASSETS_C)
FLINT_ICON_STAMP := $(BUILD_OBJ_DIR)/flint-icons.sha256
FLINT_SRCS := $(filter-out $(FLINT_ICON_ASSETS_C),$(wildcard $(FLINT_DIR)/src/*.c) $(wildcard $(FLINT_DIR)/src/ui/*.c)) $(FLINT_ICON_ASSETS_C)
FLINT_WEB_SRCS := $(filter-out $(FLINT_DIR)/src/flint_file_dialog.c,$(FLINT_SRCS))
FLINT_WINDOWS_SRCS := $(filter-out $(FLINT_DIR)/src/flint_file_dialog.c,$(FLINT_SRCS))
FLINT_INCLUDE := -I$(FLINT_DIR)/include
FLINT_CURL_CFLAGS ?= $(shell pkg-config --cflags libcurl 2>/dev/null || curl-config --cflags 2>/dev/null)
FLINT_CURL_LDLIBS ?= $(shell pkg-config --libs libcurl 2>/dev/null || curl-config --libs 2>/dev/null)
CURL_DIR := vendor/curl
CURL_BUILD_DIR := $(VENDOR_BUILD_DIR)/linux/$(ARCH)/curl
CURL_INCLUDE_DIR := $(CURL_BUILD_DIR)/include
CURL_LIB_DIR := $(CURL_BUILD_DIR)/lib64
CURL_SO := $(CURL_LIB_DIR)/libcurl.so
CURL_PROTOCOL_CHECK := $(CURL_BUILD_DIR)/.protocols-ok
OPENSSL_ROOT_DIR ?= $(shell pkg-config --variable=prefix openssl 2>/dev/null)
OPENSSL_CMAKE_OPT := $(if $(strip $(OPENSSL_ROOT_DIR)),-DOPENSSL_ROOT_DIR=$(OPENSSL_ROOT_DIR),)
OPENSSL_INCLUDE_CMAKE_OPT := $(if $(strip $(OPENSSL_INCLUDE_DIR)),-DOPENSSL_INCLUDE_DIR=$(OPENSSL_INCLUDE_DIR),)
OPENSSL_SSL_CMAKE_OPT := $(if $(strip $(OPENSSL_SSL_LIBRARY)),-DOPENSSL_SSL_LIBRARY=$(OPENSSL_SSL_LIBRARY),)
OPENSSL_CRYPTO_CMAKE_OPT := $(if $(strip $(OPENSSL_CRYPTO_LIBRARY)),-DOPENSSL_CRYPTO_LIBRARY=$(OPENSSL_CRYPTO_LIBRARY),)
OPENSSL_LIB_DIR := $(patsubst %/,%,$(dir $(OPENSSL_SSL_LIBRARY)))
OPENSSL_LDLIBS := $(if $(strip $(OPENSSL_SSL_LIBRARY) $(OPENSSL_CRYPTO_LIBRARY)),-Xlinker -rpath -Xlinker $(OPENSSL_LIB_DIR) $(OPENSSL_SSL_LIBRARY) $(OPENSSL_CRYPTO_LIBRARY),$(or $(shell pkg-config --libs openssl 2>/dev/null),-lssl -lcrypto))
FLINT_CURL_CFLAGS := -I$(CURL_INCLUDE_DIR)
FLINT_CURL_LDLIBS := -L$(CURL_LIB_DIR) -Wl,-rpath,$(abspath $(CURL_LIB_DIR)) -lcurl $(OPENSSL_LDLIBS)
FLINT_CURL_VERSION_NUM ?= $(shell printf '%s\n' '#include <curl/curlver.h>' 'LIBCURL_VERSION_NUM' | $(CC) -I$(CURL_DIR)/include -E -P - 2>/dev/null | tail -n 1)
FLINT_CURL_VERSION_HEX := $(patsubst 0x%,%,$(FLINT_CURL_VERSION_NUM))
SQLITE_DIR := vendor/sqlite
SQLITE_BUILD_DIR := $(BUILD_OBJ_DIR)/sqlite
SQLITE_BUILD_DIR := $(VENDOR_BUILD_DIR)/sqlite
SQLITE_AMALGAMATION_C := $(SQLITE_BUILD_DIR)/sqlite3.c
SQLITE_AMALGAMATION_H := $(SQLITE_BUILD_DIR)/sqlite3.h
SQLITE_SRC := $(SQLITE_AMALGAMATION_C)
SQLITE_INCLUDE := -I$(SQLITE_BUILD_DIR)
LIBOQS_DIR := vendor/liboqs
LIBOQS_BUILD_DIR := $(VENDOR_BUILD_DIR)/linux/$(ARCH)/liboqs
LIBOQS_A := $(LIBOQS_BUILD_DIR)/lib/liboqs.a
LIBOQS_INCLUDE := -I$(LIBOQS_BUILD_DIR)/include
WEB_LIBOQS_BUILD_DIR := $(VENDOR_BUILD_DIR)/web/liboqs
WEB_LIBOQS_A := $(WEB_LIBOQS_BUILD_DIR)/lib/liboqs.a
WEB_LIBOQS_INCLUDE := -I$(WEB_LIBOQS_BUILD_DIR)/include
TEST_BIN_DIR := $(BUILD_BIN_DIR)/tests
STORAGE_IMPORT_TEST := $(TEST_BIN_DIR)/storage_import_test
FLINT_TEXT_SCALING_TEST := $(TEST_BIN_DIR)/flint_text_scaling_test
FLINT_RUNTIME_ASSET_CFLAGS := -DFLINT_HAS_LIBCURL=1 $(FLINT_CURL_CFLAGS)
LOCALE_KEYS_TEST := $(TEST_BIN_DIR)/locale_keys_test
SYNC_URL_TEST := $(TEST_BIN_DIR)/sync_url_test
SYNC_ACCOUNT_TEST := $(TEST_BIN_DIR)/sync_account_test
GUIDE_OVERLAY_TEST := $(TEST_BIN_DIR)/guide_overlay_test
FLINT_RUNTIME_ASSET_CFLAGS := $(FLINT_CURL_CFLAGS)
FLINT_RUNTIME_ASSET_LDLIBS := $(FLINT_CURL_LDLIBS)
APP_SRCS := \
src/main.c \
src/core/breath_engine.c \
src/app/app.c \
src/app/app_settings.c \
src/app/device_preferences.c \
src/session/session.c \
src/practices/practice_registry.c \
src/practices/whm/whm_practice.c \
src/practices/whm/whm_session.c \
src/practices/whm/whm_manual.c \
src/practices/whm/whm_config.c \
src/practices/meditation/meditation_practice.c \
src/practices/meditation/meditation_session.c \
src/practices/meditation/meditation_manual.c \
src/practices/meditation/meditation_config.c \
src/screens/habits_screen.c \
src/session/meditation_music.c \
src/core/locale.c \
src/core/theme.c \
src/screens/statistics_screen.c \
src/screens/habits/edit.c \
src/screens/habits/session.c \
src/practices/meditation/meditation_music.c \
src/storage/data.c \
src/storage/db.c \
src/storage/import.c \
src/storage/storage.c \
src/storage/sync_account.c \
src/storage/sync_client.c \
src/third_party/miniz.c \
src/platform/android/android_device.c \
src/screens/practice_screen.c \
src/screens/language_screen.c \
src/screens/manual_screen.c \
src/screens/settings/settings_screen.c
src/screens/settings/settings_screen.c \
src/screens/settings/settings_device.c \
src/screens/settings/settings_theme.c \
src/screens/settings/settings_data.c \
src/screens/settings/settings_sync_account.c
LOCALE_FILES := $(wildcard locales/*.txt)
IMAGE_FILES := assets/whm/1.jpg assets/whm/2.jpg
IMAGE_FILES := assets/practices/whm/1.jpg assets/practices/whm/2.jpg assets/practices/meditation/1.jpg
SOUND_FILES := $(wildcard assets/sounds/*.ogg)
FONT_OUTPUTS := assets/fonts/locales.png assets/fonts/locales.dat assets/fonts/locales-8.png assets/fonts/locales-8.dat
FONT_OUTPUTS := assets/fonts/locales.png assets/fonts/locales.dat
OTFCHOP_DIR ?= vendor/otfchop
FONT_TOOL := $(OTFCHOP_DIR)/otfchop
FONT_SOURCE := $(OTFCHOP_DIR)/unifont-17.0.04.otf
@@ -105,14 +189,15 @@ EMBEDDED_ASSETS_C := $(BUILD_OBJ_DIR)/$(APP_NAME)_embedded_assets.c
EMBEDDED_ASSET_FILES := $(LOCALE_FILES) $(IMAGE_FILES) $(SOUND_FILES) $(FONT_OUTPUTS)
SRC := $(APP_SRCS) $(EMBEDDED_ASSETS_C)
APP_INCLUDE := -Isrc -Isrc/app -Isrc/core -Isrc/screens -Isrc/screens/settings -Isrc/session -Isrc/storage -Isrc/platform/android -Isrc/third_party
APP_RAYLIB_CONFIG := $(filter-out -DSUPPORT_MODULE_RAUDIO=0 -DSUPPORT_FILEFORMAT_PNG=0 -DSUPPORT_FILEFORMAT_JPG=0 -DSUPPORT_FILEFORMAT_OGG=0 -DSUPPORT_FILEFORMAT_MP3=0,$(RAY_RAYLIB_CONFIG)) -DSUPPORT_MODULE_RAUDIO=1 -DSUPPORT_FILEFORMAT_JPG=1 -DSUPPORT_FILEFORMAT_OGG=1 -DSUPPORT_FILEFORMAT_MP3=1
APP_INCLUDE := -Isrc -Isrc/app -Isrc/core -Isrc/screens -Isrc/screens/settings -Isrc/practices -Isrc/practices/whm -Isrc/practices/meditation -Isrc/storage -Isrc/platform/android -Isrc/third_party
APP_RAYLIB_CONFIG := $(filter-out -DSUPPORT_MODULE_RAUDIO=0 -DSUPPORT_FILEFORMAT_PNG=0 -DSUPPORT_FILEFORMAT_JPG=0 -DSUPPORT_FILEFORMAT_OGG=0 -DSUPPORT_FILEFORMAT_MP3=%,$(RAY_RAYLIB_CONFIG)) -DSUPPORT_MODULE_RAUDIO=1 -DSUPPORT_FILEFORMAT_JPG=1 -DSUPPORT_FILEFORMAT_OGG=1 -DSUPPORT_FILEFORMAT_MP3=0
CFLAGS := -Wall -Wextra -std=c99 -Os -D_DEFAULT_SOURCE -D_GNU_SOURCE -ffunction-sections -fdata-sections -DSUPPORT_FILEFORMAT_JPG=1 -DMINIZ_NO_ZLIB_COMPATIBLE_NAMES -DFLINT_EMBEDDED_ONLY=1 $(FLINT_RUNTIME_ASSET_CFLAGS)
WINDOWS_CFLAGS := -Wall -Wextra -std=c99 -Os -D_DEFAULT_SOURCE -D_GNU_SOURCE -ffunction-sections -fdata-sections -DSUPPORT_FILEFORMAT_JPG=1 -DMINIZ_NO_ZLIB_COMPATIBLE_NAMES -DFLINT_EMBEDDED_ONLY=1
WEB_CFLAGS := $(filter-out -std=c99,$(CFLAGS)) -std=gnu99
CLICK_CFLAGS := -Wall -Wextra -std=c99 -Os -D_DEFAULT_SOURCE -D_GNU_SOURCE -ffunction-sections -fdata-sections -DSUPPORT_FILEFORMAT_JPG=1 -DMINIZ_NO_ZLIB_COMPATIBLE_NAMES -DFLINT_EMBEDDED_ONLY=1 $(AARCH64_FLINT_CURL_CFLAGS)
LDFLAGS := -Wl,--gc-sections -s
WINDOWS_LDFLAGS := -Wl,--gc-sections -static -static-libgcc -mwindows
WINDOWS_LDLIBS := -lgdi32 -lwinmm -lopengl32 -luser32 -lshell32 -lole32 -lcomdlg32 -lcomctl32 -luuid -lm
WINDOWS_LDLIBS := -lgdi32 -lwinmm -lopengl32 -luser32 -lshell32 -lole32 -lcomdlg32 -lcomctl32 -luuid -lwininet -lws2_32 -liphlpapi -lcrypt32 -lsecur32 -lbcrypt -ladvapi32 -lm
ifneq ($(strip $(MCFGTHREADS)),)
WIN64_THREAD_LDFLAGS := -L$(MCFGTHREADS)/lib
else
@@ -136,14 +221,27 @@ APPIMAGE_TARGET := $(LINUX_DIST_DIR)/$(APPIMAGE_NAME)
LINUXDEPLOY ?= linuxdeploy
WEB_CC ?= emcc
WEB_AR ?= emar
WEB_CACHE_BUSTER ?= $(shell git rev-parse --short HEAD 2>/dev/null || date +%s)
WEB_CACHE_BUSTER ?= $(shell if git diff --quiet --ignore-submodules HEAD -- 2>/dev/null; then git rev-parse --short HEAD 2>/dev/null; else date +%s; fi)
WEB_TARGET := $(WEB_DIST_DIR)/index.html
WEB_ASSET_FILES := $(shell find web-assets -type f 2>/dev/null)
WEB_BOOT_JS := src/web_boot.js
WEB_DIST_ZIP := $(BUILD_DIST_DIR)/$(APP_NAME)-web.zip
WEB_APP_URL ?= https://inbe.waozi.xyz/
CHROME_WEB_STORE_ZIP := $(BUILD_DIST_DIR)/$(APP_NAME)-chrome-web-store.zip
CHROME_WEB_STORE_MANIFEST := packaging/chrome-web-store/manifest.json
CHROME_WEB_STORE_WORKER := packaging/chrome-web-store/service_worker.js
CHROME_WEB_STORE_ICON_DIR := packaging/chrome-web-store/icons
CHROME_WEB_STORE_ICONS := \
$(CHROME_WEB_STORE_ICON_DIR)/icon-16.png \
$(CHROME_WEB_STORE_ICON_DIR)/icon-32.png \
$(CHROME_WEB_STORE_ICON_DIR)/icon-48.png \
$(CHROME_WEB_STORE_ICON_DIR)/icon-128.png
WEB_ASSET_FILES := $(shell find web-assets site-icons -type f 2>/dev/null)
UNPACKAGED_AUDIO_DIR := unpackaged_assets/audio
UNPACKAGED_AUDIO_FILES := $(shell find $(UNPACKAGED_AUDIO_DIR) -type f 2>/dev/null)
MEDITATION_AUDIO_ZIP := web-assets/dl/inbe-meditation-audio-v1.zip
.PHONY: all native run test dist appimage clean clean-linux clean-raylib android-check-keystore android-copy-assets android-debug android-release android-bundle android-install android-install-release android-clean package-unpackaged-assets windows-runtime-assets-check windows windows64 windows32 web
.NOTPARALLEL: dist windows windows64 windows32 android-release android-bundle
.PHONY: all native run run-fresh screenshot test dist appimage click click-verify vendor-prebuilds vendor-prebuilds-native vendor-prebuilds-web vendor-prebuilds-windows clean clean-linux clean-vendor-builds android-avd android-check-keystore android-copy-assets android-local-properties android-debug android-debug-fast android-release android-bundle android-install android-install-fast android-install-release android-clean package-unpackaged-assets windows-runtime-assets-check windows windows64 windows32 web chrome-web-store
.NOTPARALLEL: dist windows windows64 windows32 android-release android-bundle click
all: native
@@ -165,6 +263,8 @@ dist:
$(MAKE) android-check-keystore PASSWORD="$$password" && \
$(MAKE) package-unpackaged-assets && \
$(MAKE) web && \
$(MAKE) chrome-web-store && \
$(MAKE) click && \
$(MAKE) appimage && \
$(MAKE) windows && \
$(MAKE) android-release PASSWORD="$$password" && \
@@ -172,28 +272,74 @@ dist:
appimage: $(APPIMAGE_TARGET)
click: $(CLICK_TARGET)
click-verify: $(CLICK_TARGET)
@command -v clickable >/dev/null || { \
echo "clickable is missing. Re-enter the flake shell with: nix develop"; \
exit 1; \
}
clickable review $(CLICK_TARGET)
vendor-prebuilds: vendor-prebuilds-native vendor-prebuilds-web vendor-prebuilds-windows
vendor-prebuilds-native: $(RAYLIB_A) $(SQLITE_AMALGAMATION_C) $(SQLITE_AMALGAMATION_H) $(LIBOQS_A) $(CURL_PROTOCOL_CHECK)
vendor-prebuilds-web: $(WEB_RAYLIB_A) $(SQLITE_AMALGAMATION_C) $(SQLITE_AMALGAMATION_H) $(WEB_LIBOQS_A)
vendor-prebuilds-windows: $(WIN64_RAYLIB_A) $(WIN32_RAYLIB_A) $(WIN64_CURL_A) $(WIN32_CURL_A) $(SQLITE_AMALGAMATION_C) $(SQLITE_AMALGAMATION_H)
run: $(TARGET)
./$(TARGET)
test: $(STORAGE_IMPORT_TEST) $(FLINT_TEXT_SCALING_TEST)
$(STORAGE_IMPORT_TEST)
$(FLINT_TEXT_SCALING_TEST)
run-fresh: $(TARGET)
@root=$$(mktemp -d /tmp/inbe-fresh.XXXXXX); \
echo "INBE_DATA_ROOT=$$root"; \
INBE_FORCE_DARK_MODE=1 INBE_DATA_ROOT="$$root" ./$(TARGET)
$(STORAGE_IMPORT_TEST): tests/storage_import_test.c src/storage/storage.c src/storage/storage.h src/screens/habits_screen.c src/screens/habits_screen.h src/third_party/miniz.c src/third_party/miniz.h $(SQLITE_SRC) $(SQLITE_AMALGAMATION_H) | $(TEST_BIN_DIR)
screenshot: $(TARGET)
./scripts/generate-screenshots.sh "$(TARGET)"
test: $(STORAGE_IMPORT_TEST) $(LOCALE_KEYS_TEST) $(SYNC_URL_TEST) $(SYNC_ACCOUNT_TEST) $(GUIDE_OVERLAY_TEST)
$(STORAGE_IMPORT_TEST)
$(LOCALE_KEYS_TEST)
$(SYNC_URL_TEST)
$(SYNC_ACCOUNT_TEST)
$(GUIDE_OVERLAY_TEST)
$(STORAGE_IMPORT_TEST): tests/storage_import_test.c src/storage/storage.c src/storage/db.c src/storage/import.c src/storage/storage.h src/storage/db.h src/storage/import.h src/screens/habits_screen.c src/screens/habits/edit.c src/screens/habits/session.c src/screens/habits_screen.h src/screens/habits/habits.h src/third_party/miniz.c src/third_party/miniz.h $(SQLITE_SRC) $(SQLITE_AMALGAMATION_H) | $(TEST_BIN_DIR)
$(CC) -Wall -Wextra -std=c99 -D_DEFAULT_SOURCE -D_GNU_SOURCE -DMINIZ_NO_ZLIB_COMPATIBLE_NAMES -ffunction-sections -fdata-sections \
-Isrc -Isrc/app -Isrc/core -Isrc/screens -Isrc/screens/settings -Isrc/session -Isrc/storage -Isrc/platform/android -Isrc/third_party -Ivendor/raylib/src $(FLINT_INCLUDE) $(SQLITE_INCLUDE) \
-Isrc -Isrc/app -Isrc/core -Isrc/screens -Isrc/screens/settings -Isrc/practices -Isrc/practices/whm -Isrc/practices/meditation -Isrc/storage -Isrc/platform/android -Isrc/third_party -Ivendor/raylib/src $(FLINT_INCLUDE) $(SQLITE_INCLUDE) \
-o $@ \
tests/storage_import_test.c src/storage/storage.c src/screens/habits_screen.c src/third_party/miniz.c $(SQLITE_SRC) \
tests/storage_import_test.c src/storage/storage.c src/storage/db.c src/storage/import.c src/screens/habits_screen.c src/screens/habits/edit.c src/screens/habits/session.c src/third_party/miniz.c $(SQLITE_SRC) \
-Wl,--gc-sections -lm -lpthread -ldl
$(FLINT_TEXT_SCALING_TEST): tests/flint_text_scaling_test.c flint/src/flint_text.c flint/src/flint_clip.c flint/src/flint_scaling.c flint/include/flint_text.h flint/include/flint_clip.h flint/include/flint_scaling.h | $(TEST_BIN_DIR)
$(CC) -Wall -Wextra -std=c99 -ffunction-sections -fdata-sections \
-Iflint/include -Ivendor/raylib/src \
$(LOCALE_KEYS_TEST): tests/locale_keys_test.c $(LOCALE_FILES) | $(TEST_BIN_DIR)
$(CC) -Wall -Wextra -std=c99 -D_DEFAULT_SOURCE \
-o $@ \
tests/flint_text_scaling_test.c flint/src/flint_text.c flint/src/flint_clip.c flint/src/flint_scaling.c \
-Wl,--gc-sections -lm
tests/locale_keys_test.c
$(BUILD_OBJ_DIR) $(LINUX_BIN_DIR) $(LINUX_DIST_DIR) $(LINUX_APPIMAGE_BUILD_DIR) $(WINDOWS_DIST_DIR) $(ANDROID_BUILD_DIR) $(TEST_BIN_DIR) $(WEB_OBJ_DIR) $(WEB_DIST_DIR):
$(SYNC_URL_TEST): tests/sync_url_test.c src/storage/sync_client.c src/storage/sync_client.h $(CURL_PROTOCOL_CHECK) | $(TEST_BIN_DIR)
$(CC) -Wall -Wextra -Wno-unused-function -std=c99 -D_DEFAULT_SOURCE -DINBE_SYNC_CLIENT_TESTS -ffunction-sections -fdata-sections \
-Isrc/storage -Isrc -Isrc/core -Ivendor/flint/include -Ivendor/raylib/src $(FLINT_CURL_CFLAGS) -o $@ \
tests/sync_url_test.c src/storage/sync_client.c \
-Wl,--gc-sections $(FLINT_CURL_LDLIBS)
$(SYNC_ACCOUNT_TEST): tests/sync_account_test.c src/storage/sync_account.c src/storage/sync_account.h src/storage/storage.c src/storage/db.c src/storage/import.c src/storage/storage.h src/storage/db.h src/storage/import.h src/third_party/miniz.c src/third_party/miniz.h $(SQLITE_SRC) $(SQLITE_AMALGAMATION_H) | $(TEST_BIN_DIR)
$(CC) -Wall -Wextra -std=c99 -D_DEFAULT_SOURCE -D_GNU_SOURCE -DMINIZ_NO_ZLIB_COMPATIBLE_NAMES -ffunction-sections -fdata-sections \
-Isrc -Isrc/app -Isrc/core -Isrc/screens -Isrc/screens/settings -Isrc/practices -Isrc/practices/whm -Isrc/practices/meditation -Isrc/storage -Isrc/platform/android -Isrc/third_party -Ivendor/flint/include -Ivendor/raylib/src $(SQLITE_INCLUDE) \
-o $@ \
tests/sync_account_test.c src/storage/sync_account.c src/storage/storage.c src/storage/db.c src/storage/import.c src/third_party/miniz.c $(SQLITE_SRC) \
-Wl,--gc-sections -lm -lpthread -ldl
$(GUIDE_OVERLAY_TEST): tests/guide_overlay_test.c vendor/flint/src/ui/guide.c vendor/flint/include/flint_ui.h | $(TEST_BIN_DIR)
$(CC) -Wall -Wextra -std=c99 -D_DEFAULT_SOURCE \
-Ivendor/flint/include -Ivendor/raylib/src \
-o $@ \
tests/guide_overlay_test.c
$(BUILD_OBJ_DIR) $(LINUX_BIN_DIR) $(LINUX_DIST_DIR) $(LINUX_APPIMAGE_BUILD_DIR) $(CLICK_BIN_DIR) $(CLICK_BUILD_DIR) $(CLICK_DIST_DIR) $(WINDOWS_DIST_DIR) $(ANDROID_BUILD_DIR) $(TEST_BIN_DIR) $(WEB_OBJ_DIR) $(WEB_DIST_DIR) $(CHROME_WEB_STORE_DIR):
mkdir -p $@
$(WINDOWS_BIN_DIR)/$(WIN64_ARCH) $(WINDOWS_BIN_DIR)/$(WIN32_ARCH):
@@ -202,26 +348,30 @@ $(WINDOWS_BIN_DIR)/$(WIN64_ARCH) $(WINDOWS_BIN_DIR)/$(WIN32_ARCH):
assets/fonts:
mkdir -p $@
FORCE:
$(FONT_TOOL): vendor/otfchop/otfchop.c vendor/otfchop/stb_truetype.h vendor/otfchop/stb_image_write.h
$(MAKE) -C vendor/otfchop otfchop
assets/fonts/locales.png assets/fonts/locales.dat: $(LOCALE_FILES) $(FONT_TOOL) | assets/fonts
$(FONT_TOOL) --size 16 $(FONT_SOURCE) $(LOCALE_FILES) assets/fonts/locales
assets/fonts/locales-8.png assets/fonts/locales-8.dat: $(LOCALE_FILES) $(FONT_TOOL) | assets/fonts
$(FONT_TOOL) --size 8 $(FONT_SOURCE) $(LOCALE_FILES) assets/fonts/locales-8
$(FONT_TOOL) $(FONT_SOURCE) $(LOCALE_FILES) assets/fonts/locales
$(EMBEDDED_ASSETS_C): $(EMBEDDED_ASSET_FILES) $(FLINT_DIR)/scripts/embed-assets.sh | $(BUILD_OBJ_DIR)
sh $(FLINT_DIR)/scripts/embed-assets.sh $@ $(EMBEDDED_ASSET_FILES)
$(FLINT_ICON_ASSETS_C): $(FLINT_ICON_FILES) $(FLINT_DIR)/scripts/embed-icons.sh
sh $(FLINT_DIR)/scripts/embed-icons.sh $(FLINT_DIR)/icons $@
$(FLINT_ICON_STAMP): FORCE $(FLINT_ICON_FILES) | $(BUILD_OBJ_DIR)
@tmp="$@.tmp"; \
find $(FLINT_DIR)/icons -maxdepth 1 -type f -name '*.png' | LC_ALL=C sort | while IFS= read -r file; do sha256sum "$$file"; done > "$$tmp"; \
if ! cmp -s "$$tmp" "$@"; then mv "$$tmp" "$@"; else rm "$$tmp"; fi
$(FLINT_ICON_ASSETS_C): $(FLINT_ICON_STAMP) $(FLINT_DIR)/scripts/embed-icons.sh
cd $(FLINT_DIR) && sh scripts/embed-icons.sh icons src/flint_icon_assets.c
$(RAYLIB_A): $(RAYLIB_SOURCES)
rm -rf $(LINUX_OBJ_DIR)/$(ARCH)/native/raylib-src
mkdir -p $(LINUX_OBJ_DIR)/$(ARCH)/native/raylib-src $(RAYLIB_BUILD_DIR)
cp -R $(RAYLIB_DIR)/. $(LINUX_OBJ_DIR)/$(ARCH)/native/raylib-src/
$(MAKE) -j1 -C $(LINUX_OBJ_DIR)/$(ARCH)/native/raylib-src \
rm -rf $(VENDOR_BUILD_DIR)/linux/$(ARCH)/raylib-src
mkdir -p $(VENDOR_BUILD_DIR)/linux/$(ARCH)/raylib-src $(RAYLIB_BUILD_DIR)
cp -R $(RAYLIB_DIR)/. $(VENDOR_BUILD_DIR)/linux/$(ARCH)/raylib-src/
$(MAKE) -j1 -C $(VENDOR_BUILD_DIR)/linux/$(ARCH)/raylib-src \
PLATFORM=PLATFORM_DESKTOP_SDL \
GRAPHICS=GRAPHICS_API_OPENGL_ES2 \
RAYLIB_LIBTYPE=STATIC \
@@ -233,10 +383,10 @@ $(RAYLIB_A): $(RAYLIB_SOURCES)
CUSTOM_CFLAGS="-DUSING_SDL2_PROJECT $(RAY_CFLAGS) $(APP_RAYLIB_CONFIG) -Os -ffunction-sections -fdata-sections"
$(WEB_RAYLIB_A): $(RAYLIB_SOURCES) | $(WEB_OBJ_DIR)
rm -rf $(WEB_OBJ_DIR)/raylib-src
mkdir -p $(WEB_OBJ_DIR)/raylib-src $(WEB_RAYLIB_BUILD_DIR)
cp -R $(RAYLIB_DIR)/. $(WEB_OBJ_DIR)/raylib-src/
$(MAKE) -j1 -C $(WEB_OBJ_DIR)/raylib-src \
rm -rf $(VENDOR_BUILD_DIR)/web/raylib-src
mkdir -p $(VENDOR_BUILD_DIR)/web/raylib-src $(WEB_RAYLIB_BUILD_DIR)
cp -R $(RAYLIB_DIR)/. $(VENDOR_BUILD_DIR)/web/raylib-src/
$(MAKE) -j1 -C $(VENDOR_BUILD_DIR)/web/raylib-src \
PLATFORM=PLATFORM_WEB \
RAYLIB_LIBTYPE=STATIC \
RAYLIB_RELEASE_PATH=../raylib \
@@ -246,11 +396,29 @@ $(WEB_RAYLIB_A): $(RAYLIB_SOURCES) | $(WEB_OBJ_DIR)
AR="$(WEB_AR)" \
CUSTOM_CFLAGS="$(APP_RAYLIB_CONFIG) -Os -ffunction-sections -fdata-sections"
$(CLICK_RAYLIB_A): $(RAYLIB_SOURCES)
rm -rf $(VENDOR_BUILD_DIR)/click/$(CLICK_ARCH)/raylib-src
mkdir -p $(VENDOR_BUILD_DIR)/click/$(CLICK_ARCH)/raylib-src $(CLICK_RAYLIB_BUILD_DIR)
cp -R $(RAYLIB_DIR)/. $(VENDOR_BUILD_DIR)/click/$(CLICK_ARCH)/raylib-src/
$(MAKE) -j1 -C $(VENDOR_BUILD_DIR)/click/$(CLICK_ARCH)/raylib-src \
PLATFORM=PLATFORM_DESKTOP_SDL \
GRAPHICS=GRAPHICS_API_OPENGL_ES2 \
RAYLIB_LIBTYPE=STATIC \
RAYLIB_RELEASE_PATH=../raylib \
RAYLIB_MODULE_AUDIO=TRUE \
RAYLIB_MODULE_MODELS=FALSE \
CC="$(AARCH64_CC)" \
AR="$(AARCH64_AR)" \
RANLIB="$(AARCH64_RANLIB)" \
SDL_INCLUDE_PATH="$(AARCH64_RAY_SDL_INCLUDE_DIR)" \
SDL_LIBRARIES="$(AARCH64_RAY_SDL_LDLIBS)" \
CUSTOM_CFLAGS="-DUSING_SDL2_PROJECT $(AARCH64_RAY_CFLAGS) $(APP_RAYLIB_CONFIG) -Os -ffunction-sections -fdata-sections"
$(WIN64_RAYLIB_A): $(RAYLIB_SOURCES)
rm -rf $(WINDOWS_OBJ_DIR)/$(WIN64_ARCH)/raylib-src
mkdir -p $(WINDOWS_OBJ_DIR)/$(WIN64_ARCH)/raylib-src $(WIN64_RAYLIB_BUILD_DIR)
cp -R $(RAYLIB_DIR)/. $(WINDOWS_OBJ_DIR)/$(WIN64_ARCH)/raylib-src/
$(MAKE) -j1 -C $(WINDOWS_OBJ_DIR)/$(WIN64_ARCH)/raylib-src \
rm -rf $(VENDOR_BUILD_DIR)/windows/$(WIN64_ARCH)/raylib-src
mkdir -p $(VENDOR_BUILD_DIR)/windows/$(WIN64_ARCH)/raylib-src $(WIN64_RAYLIB_BUILD_DIR)
cp -R $(RAYLIB_DIR)/. $(VENDOR_BUILD_DIR)/windows/$(WIN64_ARCH)/raylib-src/
$(MAKE) -j1 -C $(VENDOR_BUILD_DIR)/windows/$(WIN64_ARCH)/raylib-src \
OS=Windows_NT \
PLATFORM=PLATFORM_DESKTOP_RGFW \
GRAPHICS=GRAPHICS_API_OPENGL_11 \
@@ -264,10 +432,10 @@ $(WIN64_RAYLIB_A): $(RAYLIB_SOURCES)
CUSTOM_CFLAGS="$(APP_RAYLIB_CONFIG) -Os -ffunction-sections -fdata-sections"
$(WIN32_RAYLIB_A): $(RAYLIB_SOURCES)
rm -rf $(WINDOWS_OBJ_DIR)/$(WIN32_ARCH)/raylib-src
mkdir -p $(WINDOWS_OBJ_DIR)/$(WIN32_ARCH)/raylib-src $(WIN32_RAYLIB_BUILD_DIR)
cp -R $(RAYLIB_DIR)/. $(WINDOWS_OBJ_DIR)/$(WIN32_ARCH)/raylib-src/
$(MAKE) -j1 -C $(WINDOWS_OBJ_DIR)/$(WIN32_ARCH)/raylib-src \
rm -rf $(VENDOR_BUILD_DIR)/windows/$(WIN32_ARCH)/raylib-src
mkdir -p $(VENDOR_BUILD_DIR)/windows/$(WIN32_ARCH)/raylib-src $(WIN32_RAYLIB_BUILD_DIR)
cp -R $(RAYLIB_DIR)/. $(VENDOR_BUILD_DIR)/windows/$(WIN32_ARCH)/raylib-src/
$(MAKE) -j1 -C $(VENDOR_BUILD_DIR)/windows/$(WIN32_ARCH)/raylib-src \
OS=Windows_NT \
PLATFORM=PLATFORM_DESKTOP_RGFW \
GRAPHICS=GRAPHICS_API_OPENGL_11 \
@@ -282,64 +450,261 @@ $(WIN32_RAYLIB_A): $(RAYLIB_SOURCES)
$(SQLITE_AMALGAMATION_C) $(SQLITE_AMALGAMATION_H): $(SQLITE_DIR)/configure $(SQLITE_DIR)/manifest | $(BUILD_OBJ_DIR)
mkdir -p $(SQLITE_BUILD_DIR)
cd $(SQLITE_BUILD_DIR) && ../../../$(SQLITE_DIR)/configure
cd $(SQLITE_BUILD_DIR) && $(abspath $(SQLITE_DIR))/configure
$(MAKE) -C $(SQLITE_BUILD_DIR) sqlite3.c sqlite3.h
$(TARGET): Makefile $(SRC) $(FLINT_SRCS) $(SQLITE_SRC) $(SQLITE_AMALGAMATION_H) $(FONT_OUTPUTS) $(EMBEDDED_ASSETS_C) $(RAYLIB_A) | $(LINUX_BIN_DIR)
$(LIBOQS_A): $(LIBOQS_DIR)/CMakeLists.txt | $(BUILD_OBJ_DIR)
$(CMAKE) -S $(LIBOQS_DIR) -B $(LIBOQS_BUILD_DIR) \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DBUILD_SHARED_LIBS=OFF \
-DOQS_BUILD_ONLY_LIB=ON \
-DOQS_USE_OPENSSL=OFF \
-DOQS_MINIMAL_BUILD=SIG_ml_dsa_44
$(CMAKE) --build $(LIBOQS_BUILD_DIR) --target oqs
$(WEB_LIBOQS_A): $(LIBOQS_DIR)/CMakeLists.txt | $(BUILD_OBJ_DIR)
emcmake $(CMAKE) -S $(LIBOQS_DIR) -B $(WEB_LIBOQS_BUILD_DIR) \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DBUILD_SHARED_LIBS=OFF \
-DOQS_BUILD_ONLY_LIB=ON \
-DOQS_USE_OPENSSL=OFF \
-DOQS_DIST_BUILD=OFF \
-DOQS_OPT_TARGET=generic \
-DOQS_MINIMAL_BUILD=SIG_ml_dsa_44
$(CMAKE) --build $(WEB_LIBOQS_BUILD_DIR) --target oqs
$(CURL_SO): $(CURL_DIR)/CMakeLists.txt
$(CMAKE) -S $(CURL_DIR) -B $(CURL_BUILD_DIR) \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_INSTALL_PREFIX=$(abspath $(CURL_BUILD_DIR)) \
-DCMAKE_INSTALL_LIBDIR=lib64 \
-DBUILD_CURL_EXE=OFF \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_STATIC_LIBS=OFF \
-DCURL_USE_OPENSSL=ON \
$(OPENSSL_CMAKE_OPT) \
$(OPENSSL_INCLUDE_CMAKE_OPT) \
$(OPENSSL_SSL_CMAKE_OPT) \
$(OPENSSL_CRYPTO_CMAKE_OPT) \
-DCURL_DISABLE_WEBSOCKETS=OFF \
-DCURL_DISABLE_INSTALL=OFF \
-DCURL_DISABLE_LDAP=ON \
-DCURL_DISABLE_LDAPS=ON \
-DCURL_DISABLE_DICT=ON \
-DCURL_DISABLE_FILE=ON \
-DCURL_DISABLE_FTP=ON \
-DCURL_DISABLE_GOPHER=ON \
-DCURL_DISABLE_IMAP=ON \
-DCURL_DISABLE_MQTT=ON \
-DCURL_DISABLE_POP3=ON \
-DCURL_DISABLE_RTSP=ON \
-DCURL_DISABLE_SMB=ON \
-DCURL_DISABLE_SMTP=ON \
-DCURL_DISABLE_TELNET=ON \
-DCURL_DISABLE_TFTP=ON \
-DCURL_DISABLE_LIBCURL_OPTION=ON \
-DCURL_ZLIB=OFF \
-DCURL_BROTLI=OFF \
-DCURL_ZSTD=OFF \
-DCURL_USE_LIBPSL=OFF \
-DCURL_USE_LIBSSH2=OFF \
-DCURL_USE_GSSAPI=OFF \
-DUSE_NGHTTP2=OFF \
-DUSE_LIBIDN2=OFF \
-DENABLE_CURL_MANUAL=OFF \
-DBUILD_EXAMPLES=OFF \
-DBUILD_LIBCURL_DOCS=OFF \
-DBUILD_MISC_DOCS=OFF \
-DBUILD_TESTING=OFF
$(CMAKE) --build $(CURL_BUILD_DIR) --target install
$(CURL_PROTOCOL_CHECK): $(CURL_SO)
@$(CURL_BUILD_DIR)/bin/curl-config --protocols | grep -Eq '(^|[[:space:]])WS([[:space:]]|$$)' || { echo "vendored libcurl was built without WS protocol support"; exit 1; }
@$(CURL_BUILD_DIR)/bin/curl-config --protocols | grep -Eq '(^|[[:space:]])WSS([[:space:]]|$$)' || { echo "vendored libcurl was built without WSS protocol support"; exit 1; }
@touch $@
$(WIN64_CURL_A): $(CURL_DIR)/CMakeLists.txt
rm -rf $(WIN64_CURL_BUILD_DIR)
$(CMAKE) -S $(CURL_DIR) -B $(WIN64_CURL_BUILD_DIR) \
-DCMAKE_SYSTEM_NAME=Windows \
-DCMAKE_C_COMPILER=$(WIN64_CC_PATH) \
-DCMAKE_AR=$(WIN64_AR_PATH) \
-DCMAKE_RANLIB=$(WIN64_RANLIB_PATH) \
-DCMAKE_EXE_LINKER_FLAGS="$(WIN64_THREAD_LDFLAGS)" \
-DCMAKE_INSTALL_PREFIX=$(abspath $(WIN64_CURL_BUILD_DIR)) \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_STATIC_LIBS=ON \
-DBUILD_CURL_EXE=OFF \
-DCURL_STATICLIB=ON \
-DCURL_USE_SCHANNEL=ON \
-DCURL_USE_OPENSSL=OFF \
-DCURL_USE_LIBPSL=OFF \
-DCURL_USE_LIBSSH2=OFF \
-DCURL_USE_GSSAPI=OFF \
-DUSE_NGHTTP2=OFF \
-DUSE_LIBIDN2=OFF \
-DCURL_DISABLE_LDAP=ON \
-DCURL_DISABLE_LDAPS=ON \
-DCURL_DISABLE_SMB=ON \
-DENABLE_CURL_MANUAL=OFF \
-DBUILD_EXAMPLES=OFF \
-DBUILD_LIBCURL_DOCS=OFF \
-DBUILD_MISC_DOCS=OFF \
-DBUILD_TESTING=OFF
$(CMAKE) --build $(WIN64_CURL_BUILD_DIR) --target install
$(WIN32_CURL_A): $(CURL_DIR)/CMakeLists.txt
rm -rf $(WIN32_CURL_BUILD_DIR)
$(CMAKE) -S $(CURL_DIR) -B $(WIN32_CURL_BUILD_DIR) \
-DCMAKE_SYSTEM_NAME=Windows \
-DCMAKE_C_COMPILER=$(WIN32_CC_PATH) \
-DCMAKE_AR=$(WIN32_AR_PATH) \
-DCMAKE_RANLIB=$(WIN32_RANLIB_PATH) \
-DCMAKE_EXE_LINKER_FLAGS="$(WIN32_THREAD_LDFLAGS)" \
-DCMAKE_INSTALL_PREFIX=$(abspath $(WIN32_CURL_BUILD_DIR)) \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_STATIC_LIBS=ON \
-DBUILD_CURL_EXE=OFF \
-DCURL_STATICLIB=ON \
-DCURL_USE_SCHANNEL=ON \
-DCURL_USE_OPENSSL=OFF \
-DCURL_USE_LIBPSL=OFF \
-DCURL_USE_LIBSSH2=OFF \
-DCURL_USE_GSSAPI=OFF \
-DUSE_NGHTTP2=OFF \
-DUSE_LIBIDN2=OFF \
-DCURL_DISABLE_LDAP=ON \
-DCURL_DISABLE_LDAPS=ON \
-DCURL_DISABLE_SMB=ON \
-DENABLE_CURL_MANUAL=OFF \
-DBUILD_EXAMPLES=OFF \
-DBUILD_LIBCURL_DOCS=OFF \
-DBUILD_MISC_DOCS=OFF \
-DBUILD_TESTING=OFF
$(CMAKE) --build $(WIN32_CURL_BUILD_DIR) --target install
$(TARGET): Makefile $(SRC) $(FLINT_SRCS) $(FLINT_ICON_STAMP) $(SQLITE_SRC) $(SQLITE_AMALGAMATION_H) $(FONT_OUTPUTS) $(EMBEDDED_ASSETS_C) $(RAYLIB_A) $(LIBOQS_A) $(CURL_PROTOCOL_CHECK) | $(LINUX_BIN_DIR)
$(CC) $(CFLAGS) \
$(APP_INCLUDE) \
$(FLINT_INCLUDE) \
$(SQLITE_INCLUDE) \
$(LIBOQS_INCLUDE) \
-I$(RAYLIB_DIR) \
$(RAY_CFLAGS) \
-DINBE_HAS_LIBOQS=1 \
-DSUPPORT_MODULE_RAUDIO=1 \
-DSUPPORT_FILEFORMAT_OGG=1 \
-DSUPPORT_FILEFORMAT_MP3=1 \
-DSUPPORT_FILEFORMAT_MP3=0 \
-o $@ \
$(SRC) \
$(FLINT_SRCS) \
$(SQLITE_SRC) \
$(RAYLIB_A) \
$(LIBOQS_A) \
$(RAY_LDLIBS) \
$(FLINT_RUNTIME_ASSET_LDLIBS) \
-lm -lpthread -ldl -lrt \
$(LDFLAGS)
$(WIN64_TARGET): Makefile $(SRC) $(FLINT_WINDOWS_SRCS) $(SQLITE_SRC) $(SQLITE_AMALGAMATION_H) $(FONT_OUTPUTS) $(EMBEDDED_ASSETS_C) $(WIN64_RAYLIB_A) | $(WINDOWS_BIN_DIR)/$(WIN64_ARCH)
$(WIN64_CC) $(WINDOWS_CFLAGS) \
$(CLICK_BIN): Makefile $(SRC) $(FLINT_SRCS) $(FLINT_ICON_STAMP) $(SQLITE_SRC) $(SQLITE_AMALGAMATION_H) $(FONT_OUTPUTS) $(EMBEDDED_ASSETS_C) $(CLICK_RAYLIB_A) | $(CLICK_BIN_DIR)
$(AARCH64_CC) $(CLICK_CFLAGS) \
$(APP_INCLUDE) \
$(FLINT_INCLUDE) \
$(SQLITE_INCLUDE) \
-I$(RAYLIB_DIR) \
$(AARCH64_RAY_CFLAGS) \
-DPLATFORM_DESKTOP \
-DSUPPORT_MODULE_RAUDIO=1 \
-DSUPPORT_FILEFORMAT_OGG=1 \
-DSUPPORT_FILEFORMAT_MP3=0 \
-o $@ \
$(SRC) \
$(FLINT_SRCS) \
$(SQLITE_SRC) \
$(CLICK_RAYLIB_A) \
$(AARCH64_RAY_LDLIBS) \
$(AARCH64_FLINT_CURL_LDLIBS) \
-lm -lpthread -ldl -lrt \
$(LDFLAGS)
@if command -v patchelf >/dev/null; then \
patchelf --set-interpreter "$(CLICK_PATCHELF_INTERPRETER)" --set-rpath '$$ORIGIN/../lib' $@; \
fi
$(CLICK_TARGET): $(CLICK_BIN_INPUT) $(CLICK_MANIFEST_TEMPLATE) $(CLICK_CONTROL_TEMPLATE) $(CLICK_APPARMOR_TEMPLATE) $(CLICK_DESKTOP_TEMPLATE) $(CLICK_METAINFO_TEMPLATE) $(CLICK_RUNNER) $(LINUX_APPIMAGE_ICON) | $(CLICK_BUILD_DIR) $(CLICK_DIST_DIR)
@command -v zip >/dev/null || { \
echo "zip is missing. Re-enter the flake shell with: nix develop"; \
exit 1; \
}
rm -rf $(CLICK_ROOT)
rm -f $(CLICK_DIST_DIR)/$(CLICK_PACKAGE)_*_$(CLICK_ARCH).click
mkdir -p $(CLICK_ROOT)/usr/bin $(CLICK_ROOT)/usr/lib $(CLICK_ROOT)/usr/share/applications $(CLICK_ROOT)/usr/share/icons/hicolor/512x512/apps $(CLICK_ROOT)/usr/share/metainfo
cp $(CLICK_BIN_INPUT) $(CLICK_ROOT)/usr/bin/$(APP_NAME)
cp $(CLICK_RUNNER) $(CLICK_ROOT)/run-inbe.sh
chmod +x $(CLICK_ROOT)/run-inbe.sh $(CLICK_ROOT)/usr/bin/$(APP_NAME)
@for lib in $(CLICK_RUNTIME_LIBS); do \
if [ -f "$$lib" ]; then \
cp -L "$$lib" $(CLICK_ROOT)/usr/lib/; \
fi; \
done
@if command -v patchelf >/dev/null; then \
for elf in $(CLICK_ROOT)/usr/lib/*.so*; do \
if [ -f "$$elf" ]; then patchelf --set-rpath '$$ORIGIN' "$$elf" >/dev/null 2>&1 || true; fi; \
done; \
fi
cp $(CLICK_DIR)/manifest.json $(CLICK_ROOT)/manifest.json
cp $(CLICK_DIR)/inbe.apparmor $(CLICK_ROOT)/inbe.apparmor
cp $(CLICK_DIR)/inbe.desktop $(CLICK_ROOT)/inbe.desktop
@if [ "$(CLICK_INCLUDE_METAINFO)" = "1" ]; then \
mkdir -p $(CLICK_ROOT)/usr/share/metainfo; \
cp $(CLICK_DIR)/inbe.metainfo.xml $(CLICK_ROOT)/usr/share/metainfo/$(CLICK_PACKAGE).metainfo.xml; \
fi
cp $(LINUX_APPIMAGE_ICON) $(CLICK_ROOT)/inbe.png
cp $(LINUX_APPIMAGE_ICON) $(CLICK_ROOT)/usr/share/icons/hicolor/512x512/apps/inbe.png
cd $(CLICK_ROOT) && zip -qr $(abspath $@) .
$(WIN64_TARGET): Makefile $(SRC) $(FLINT_WINDOWS_SRCS) $(FLINT_ICON_STAMP) $(SQLITE_SRC) $(SQLITE_AMALGAMATION_H) $(FONT_OUTPUTS) $(EMBEDDED_ASSETS_C) $(WIN64_RAYLIB_A) $(WIN64_CURL_A) | $(WINDOWS_BIN_DIR)/$(WIN64_ARCH)
$(WIN64_CC) $(WINDOWS_CFLAGS) \
$(APP_INCLUDE) \
$(FLINT_INCLUDE) \
$(SQLITE_INCLUDE) \
-I$(WIN64_CURL_INCLUDE_DIR) \
-I$(RAYLIB_DIR) \
-DPLATFORM_DESKTOP \
-DCURL_STATICLIB \
-o $@ \
$(SRC) \
$(FLINT_WINDOWS_SRCS) \
$(SQLITE_SRC) \
$(WIN64_RAYLIB_A) \
$(WIN64_CURL_A) \
$(WINDOWS_LDLIBS) \
$(WIN64_THREAD_LDFLAGS) \
$(WINDOWS_LDFLAGS)
$(WIN64_STRIP) $@
$(WIN32_TARGET): Makefile $(SRC) $(FLINT_WINDOWS_SRCS) $(SQLITE_SRC) $(SQLITE_AMALGAMATION_H) $(FONT_OUTPUTS) $(EMBEDDED_ASSETS_C) $(WIN32_RAYLIB_A) | $(WINDOWS_BIN_DIR)/$(WIN32_ARCH)
$(WIN32_TARGET): Makefile $(SRC) $(FLINT_WINDOWS_SRCS) $(FLINT_ICON_STAMP) $(SQLITE_SRC) $(SQLITE_AMALGAMATION_H) $(FONT_OUTPUTS) $(EMBEDDED_ASSETS_C) $(WIN32_RAYLIB_A) $(WIN32_CURL_A) | $(WINDOWS_BIN_DIR)/$(WIN32_ARCH)
$(WIN32_CC) $(WINDOWS_CFLAGS) \
$(APP_INCLUDE) \
$(FLINT_INCLUDE) \
$(SQLITE_INCLUDE) \
-I$(WIN32_CURL_INCLUDE_DIR) \
-I$(RAYLIB_DIR) \
-DPLATFORM_DESKTOP \
-DCURL_STATICLIB \
-o $@ \
$(SRC) \
$(FLINT_WINDOWS_SRCS) \
$(SQLITE_SRC) \
$(WIN32_RAYLIB_A) \
$(WIN32_CURL_A) \
$(WINDOWS_LDLIBS) \
$(WIN32_THREAD_LDFLAGS) \
$(WINDOWS_LDFLAGS)
$(WIN32_STRIP) $@
$(APPIMAGE_TARGET): $(TARGET) $(LINUX_APPIMAGE_APPRUN) $(LINUX_APPIMAGE_DESKTOP) $(LINUX_APPIMAGE_ICON) | $(LINUX_DIST_DIR) $(LINUX_APPIMAGE_BUILD_DIR)
$(APPIMAGE_TARGET): $(TARGET) $(LINUX_APPIMAGE_APPRUN) $(LINUX_APPIMAGE_DESKTOP) $(LINUX_APPIMAGE_ICON) $(LINUX_APPIMAGE_APPDATA) | $(LINUX_DIST_DIR) $(LINUX_APPIMAGE_BUILD_DIR)
@command -v linuxdeploy-plugin-appimage >/dev/null || { \
echo "linuxdeploy-plugin-appimage is missing. Re-enter the flake shell with: nix develop"; \
exit 1; \
@@ -355,49 +720,93 @@ $(APPIMAGE_TARGET): $(TARGET) $(LINUX_APPIMAGE_APPRUN) $(LINUX_APPIMAGE_DESKTOP)
rm -rf $(LINUX_APPDIR)
rm -rf $(LINUX_DIST_DIR)/*.AppDir
rm -f $(LINUX_DIST_DIR)/*.AppImage
mkdir -p $(LINUX_APPDIR)/usr/bin $(LINUX_APPDIR)/usr/share/applications $(LINUX_APPDIR)/usr/share/icons/hicolor/512x512/apps
mkdir -p $(LINUX_APPDIR)/usr/bin $(LINUX_APPDIR)/usr/lib $(LINUX_APPDIR)/usr/share/applications $(LINUX_APPDIR)/usr/share/icons/hicolor/512x512/apps $(LINUX_APPDIR)/usr/share/metainfo
cp $(TARGET) $(LINUX_APPDIR)/usr/bin/$(APP_NAME)
patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 $(LINUX_APPDIR)/usr/bin/$(APP_NAME)
cp $(LINUX_APPIMAGE_APPRUN) $(LINUX_APPDIR)/AppRun
chmod +x $(LINUX_APPDIR)/AppRun
@loader=$$(LC_ALL=C readelf -l $(TARGET) | sed -n 's#.*Requesting program interpreter: \(.*\)]#\1#p'); \
if printf '%s\n' "$$loader" | grep -q '^/nix/store/.*glibc.*/'; then \
glibc_lib_dir=$$(dirname "$$loader"); \
echo "Bundling glibc loader: $$loader"; \
cp "$$loader" $(LINUX_APPDIR)/usr/lib/; \
for lib in libc.so.6 libm.so.6 libpthread.so.0 libdl.so.2 librt.so.1 libresolv.so.2 libnss_files.so.2; do \
if [ -f "$$glibc_lib_dir/$$lib" ]; then \
cp "$$glibc_lib_dir/$$lib" $(LINUX_APPDIR)/usr/lib/; \
chmod u+w $(LINUX_APPDIR)/usr/lib/$$lib; \
fi; \
done; \
chmod u+w $(LINUX_APPDIR)/usr/lib/$$(basename "$$loader"); \
else \
echo "Not bundling glibc; build interpreter is $$loader"; \
fi
cp $(LINUX_APPIMAGE_DESKTOP) $(LINUX_APPDIR)/$(APP_NAME).desktop
cp $(LINUX_APPIMAGE_DESKTOP) $(LINUX_APPDIR)/usr/share/applications/$(APP_NAME).desktop
cp $(LINUX_APPIMAGE_APPDATA) $(LINUX_APPDIR)/usr/share/metainfo/$(ANDROID_APP_ID).metainfo.xml
cp $(LINUX_APPIMAGE_ICON) $(LINUX_APPDIR)/$(APP_NAME).png
cp $(LINUX_APPIMAGE_ICON) $(LINUX_APPDIR)/usr/share/icons/hicolor/512x512/apps/$(APP_NAME).png
@# Manually copy critical X11/OpenGL libraries that linuxdeploy might miss
@for lib in libX11.so.6 libXext.so.6 libdrm.so.2 libgbm.so.1 libEGL.so.1 libGLESv2.so.2 libGLdispatch.so.0 libglapi.so.0; do \
found=$$(find /usr/lib /lib -name "$$lib" 2>/dev/null | head -n 1); \
if [ -n "$$found" ]; then \
echo "Copying $$lib from $$found"; \
cp "$$found" $(LINUX_APPDIR)/usr/lib/ 2>/dev/null || true; \
fi; \
done
@# Detect if running on NixOS (by checking if loader is in /nix/store)
@loader=$$(LC_ALL=C readelf -l $(TARGET) | sed -n 's#.*Requesting program interpreter: \(.*\)]#\1#p'); \
if printf '%s\n' "$$loader" | grep -q '^/nix/store/.*glibc.*/'; then \
LIBRARY_FLAGS=""; \
echo "Building on NixOS - linuxdeploy will auto-detect libraries from /nix/store"; \
else \
LIBRARY_FLAGS=""; \
echo "Building on FHS system - linuxdeploy will auto-detect libraries"; \
fi; \
cd $(LINUX_APPIMAGE_BUILD_DIR) && env -u SOURCE_DATE_EPOCH ARCH=$(ARCH) LDAI_OUTPUT=$(abspath $(APPIMAGE_TARGET)) $(LINUXDEPLOY) \
--appdir $(APP_NAME).AppDir \
--executable $(abspath $(LINUX_APPDIR)/usr/bin/$(APP_NAME)) \
--desktop-file $(abspath $(LINUX_APPIMAGE_DESKTOP)) \
--icon-file $(abspath $(LINUX_APPDIR)/usr/share/icons/hicolor/512x512/apps/$(APP_NAME).png) \
$$LIBRARY_FLAGS \
--output appimage
test -f $@
$(WEB_TARGET): Makefile $(SRC) $(FLINT_WEB_SRCS) $(SQLITE_SRC) $(SQLITE_AMALGAMATION_H) $(FONT_OUTPUTS) $(EMBEDDED_ASSETS_C) $(WEB_RAYLIB_A) src/web_shell.html manifest.json $(WEB_ASSET_FILES) | $(WEB_DIST_DIR)
$(WEB_TARGET): Makefile $(SRC) $(FLINT_WEB_SRCS) $(FLINT_ICON_STAMP) $(SQLITE_SRC) $(SQLITE_AMALGAMATION_H) $(FONT_OUTPUTS) $(EMBEDDED_ASSETS_C) $(WEB_RAYLIB_A) $(WEB_LIBOQS_A) src/web_shell.html $(WEB_BOOT_JS) manifest.json $(WEB_ASSET_FILES) $(MEDITATION_AUDIO_ZIP) | $(WEB_DIST_DIR)
rm -f $(WEB_DIST_DIR)/index.data
$(WEB_CC) $(WEB_CFLAGS) \
$(APP_INCLUDE) \
$(FLINT_INCLUDE) \
$(SQLITE_INCLUDE) \
$(WEB_LIBOQS_INCLUDE) \
-I$(RAYLIB_DIR) \
-DINBE_HAS_LIBOQS=1 \
-DPLATFORM_WEB \
-DSUPPORT_MODULE_RAUDIO=1 \
-DSUPPORT_FILEFORMAT_OGG=1 \
-DSUPPORT_FILEFORMAT_MP3=1 \
-DSUPPORT_FILEFORMAT_MP3=0 \
-o $@ \
$(SRC) \
$(FLINT_WEB_SRCS) \
$(SQLITE_SRC) \
$(WEB_RAYLIB_A) \
$(WEB_LIBOQS_A) \
-sUSE_GLFW=3 \
-sASYNCIFY \
-sFORCE_FILESYSTEM=1 \
-sFETCH=1 \
-sALLOW_MEMORY_GROWTH=1 \
-sSTACK_SIZE=8388608 \
-sEXPORTED_FUNCTIONS=_main,_malloc,_free,_app_web_get_play_in_background,_app_web_set_backgrounded,_app_web_background_tick \
--shell-file src/web_shell.html \
-lidbfs.js \
-lm
perl -0pi -e 's/WEB_CACHE_BUSTER/$(WEB_CACHE_BUSTER)/g' $(WEB_DIST_DIR)/index.html
cp $(WEB_BOOT_JS) $(WEB_DIST_DIR)/index_boot.js
perl -0pi -e 's/WEB_CACHE_BUSTER/$(WEB_CACHE_BUSTER)/g' $(WEB_DIST_DIR)/index_boot.js
rm -rf $(WEB_DIST_DIR)/web-assets $(WEB_DIST_DIR)/site-icons
cp -R web-assets $(WEB_DIST_DIR)/
cp manifest.json $(WEB_DIST_DIR)/
cp -R site-icons $(WEB_DIST_DIR)/
cp manifest.json $(WEB_DIST_DIR)/webmanifest.json
android-copy-assets:
$(MAKE) $(FONT_OUTPUTS)
@@ -425,13 +834,29 @@ android-check-keystore:
exit 1; \
fi
android-debug: android-copy-assets
android-local-properties:
@if [ -f droid/local.properties ]; then sed -i '/^ndk\.dir=/d' droid/local.properties; fi
@if [ -d /mnt/storage/Android/Sdk/ndk/28.2.13676358 ]; then \
if [ -f droid/local.properties ]; then \
sed -i 's#^sdk\.dir=.*#sdk.dir=/mnt/storage/Android/Sdk#' droid/local.properties; \
sed -i 's#^cmake\.dir=.*#cmake.dir=/mnt/storage/Android/Sdk/cmake/3.22.1#' droid/local.properties; \
else \
printf 'sdk.dir=/mnt/storage/Android/Sdk\ncmake.dir=/mnt/storage/Android/Sdk/cmake/3.22.1\n' > droid/local.properties; \
fi; \
fi
android-debug: android-copy-assets android-local-properties
unset ANDROID_HOME; $(GRADLE) -p droid assembleDebug
$(MAKE) android-copy-debug-apks
android-debug-fast: android-copy-assets android-local-properties
unset ANDROID_HOME; $(GRADLE) -p droid assembleDebug -Pinbe.abis="$(ANDROID_DEBUG_ABIS)"
$(MAKE) android-copy-debug-apks
android-release:
$(MAKE) android-check-keystore PASSWORD="$(PASSWORD)"
$(MAKE) android-copy-assets
$(MAKE) android-local-properties
@if [ -n "$(PASSWORD)" ]; then \
unset ANDROID_HOME; $(GRADLE) -p droid assembleRelease -Pkeystore.path="$(ANDROID_KEYSTORE)" -Pkeystore.alias="$(ANDROID_KEY_ALIAS)" -Pkeystore.password="$(PASSWORD)" || exit $$?; \
else \
@@ -443,6 +868,7 @@ android-release:
android-bundle:
$(MAKE) android-check-keystore PASSWORD="$(PASSWORD)"
$(MAKE) android-copy-assets
$(MAKE) android-local-properties
@if [ -n "$(PASSWORD)" ]; then \
unset ANDROID_HOME; $(GRADLE) -p droid bundleRelease -Pkeystore.path="$(ANDROID_KEYSTORE)" -Pkeystore.alias="$(ANDROID_KEY_ALIAS)" -Pkeystore.password="$(PASSWORD)" || exit $$?; \
else \
@@ -503,32 +929,51 @@ android-copy-bundle: | $(ANDROID_BUILD_DIR)
fi
android-install: android-debug
@ABI=$$(adb shell getprop ro.product.cpu.abi | tr -d '\r'); \
@ABI=$$($(ADB) shell getprop ro.product.cpu.abi | tr -d '\r'); \
APK=droid/app/build/outputs/apk/debug/app-$${ABI}-debug.apk; \
if [ ! -f "$$APK" ]; then APK=droid/app/build/outputs/apk/debug/app-debug.apk; fi; \
adb install -r "$$APK"; \
adb shell am start -n $(ANDROID_APP_ID)/$(ANDROID_ACTIVITY)
$(ADB) install -r "$$APK"; \
$(ADB) shell am start -n $(ANDROID_APP_ID)/$(ANDROID_ACTIVITY)
android-install-fast: android-debug-fast
@ABI=$$($(ADB) shell getprop ro.product.cpu.abi | tr -d '\r'); \
APK=droid/app/build/outputs/apk/debug/app-$${ABI}-debug.apk; \
if [ ! -f "$$APK" ]; then APK=droid/app/build/outputs/apk/debug/app-debug.apk; fi; \
$(ADB) install -r "$$APK"; \
$(ADB) shell am start -n $(ANDROID_APP_ID)/$(ANDROID_ACTIVITY)
android-install-release: android-release
@ABI=$$(adb shell getprop ro.product.cpu.abi | tr -d '\r'); \
@ABI=$$($(ADB) shell getprop ro.product.cpu.abi | tr -d '\r'); \
APK=droid/app/build/outputs/apk/release/app-$${ABI}-release.apk; \
if [ ! -f "$$APK" ]; then APK=droid/app/build/outputs/apk/release/app-release.apk; fi; \
adb install -r "$$APK"; \
adb shell am start -n $(ANDROID_APP_ID)/$(ANDROID_ACTIVITY)
$(ADB) install -r "$$APK"; \
$(ADB) shell am start -n $(ANDROID_APP_ID)/$(ANDROID_ACTIVITY)
android-avd:
bash scripts/emulator.sh
@adb_cmd="$$HOME/.android-sdk-writable/platform-tools/adb"; \
if [ ! -x "$$adb_cmd" ]; then adb_cmd="$${ANDROID_SDK_ROOT:-$${ANDROID_HOME}}/platform-tools/adb"; fi; \
if [ ! -x "$$adb_cmd" ]; then adb_cmd=adb; fi; \
abi=$$("$$adb_cmd" -e shell getprop ro.product.cpu.abi | tr -d '\r'); \
if [ -z "$$abi" ]; then \
echo "No emulator ABI detected. Is the AVD running?"; \
exit 1; \
fi; \
$(MAKE) android-install-fast ADB="$$adb_cmd -e" ANDROID_DEBUG_ABIS="$$abi"
android-clean:
$(GRADLE) -p droid clean
rm -rf $(ANDROID_BUILD_DIR)
package-unpackaged-assets:
$(MEDITATION_AUDIO_ZIP): $(UNPACKAGED_AUDIO_FILES)
mkdir -p $(dir $(MEDITATION_AUDIO_ZIP))
rm -f $(MEDITATION_AUDIO_ZIP)
cd $(UNPACKAGED_AUDIO_DIR) && find . -mindepth 2 -type f -name '*.ogg' -exec zip -9 -r $(abspath $(MEDITATION_AUDIO_ZIP)) {} + && zip -9 -r $(abspath $(MEDITATION_AUDIO_ZIP)) LICENSE.md MANIFEST.txt
package-unpackaged-assets: $(MEDITATION_AUDIO_ZIP)
windows-runtime-assets-check:
@echo "Windows runtime asset downloads are not wired into this build yet"; \
echo "Refusing to build Windows binaries that cannot download meditation audio."; \
exit 1
@:
windows64: windows-runtime-assets-check $(WIN64_TARGET)
@@ -546,6 +991,21 @@ windows:
web:
$(MAKE) $(WEB_TARGET)
rm -f $(WEB_DIST_ZIP)
cd $(WEB_DIST_DIR) && zip -9 -r $(abspath $(WEB_DIST_ZIP)) .
chrome-web-store: $(CHROME_WEB_STORE_ZIP)
$(CHROME_WEB_STORE_ZIP): $(WEB_TARGET) $(CHROME_WEB_STORE_MANIFEST) $(CHROME_WEB_STORE_WORKER) $(CHROME_WEB_STORE_ICONS) | $(CHROME_WEB_STORE_DIR)
rm -rf $(CHROME_WEB_STORE_DIR)
mkdir -p $(CHROME_WEB_STORE_DIR)/icons
cp -R $(WEB_DIST_DIR)/. $(CHROME_WEB_STORE_DIR)/
sed -e 's#__APP_VERSION__#$(APP_VERSION)#g' \
$(CHROME_WEB_STORE_MANIFEST) > $(CHROME_WEB_STORE_DIR)/manifest.json
cp $(CHROME_WEB_STORE_WORKER) $(CHROME_WEB_STORE_DIR)/service_worker.js
cp $(CHROME_WEB_STORE_ICONS) $(CHROME_WEB_STORE_DIR)/icons/
rm -f $(CHROME_WEB_STORE_ZIP)
cd $(CHROME_WEB_STORE_DIR) && zip -9 -r $(abspath $(CHROME_WEB_STORE_ZIP)) .
clean:
rm -rf build
@@ -553,10 +1013,10 @@ clean:
clean-linux:
rm -rf $(LINUX_OBJ_DIR) $(LINUX_BIN_DIR) $(LINUX_DIST_DIR)
clean-raylib:
rm -rf $(RAYLIB_BUILD_DIR) $(LINUX_OBJ_DIR)/*/native/raylib-src vendor/raylib/build
clean-vendor-builds:
rm -rf $(VENDOR_BUILD_DIR)
NEEDS_NATIVE_ENV := $(if $(MAKECMDGOALS),$(filter all native run dist appimage,$(MAKECMDGOALS)),native)
NEEDS_NATIVE_ENV := $(if $(MAKECMDGOALS),$(filter all native run run-fresh dist appimage vendor-prebuilds vendor-prebuilds-native,$(MAKECMDGOALS)),native)
ifneq ($(strip $(NEEDS_NATIVE_ENV)),)
ifeq ($(strip $(RAY_CFLAGS)),)
$(error RAY_CFLAGS is not set. Enter the ray flake shell with 'nix develop')
@@ -574,6 +1034,36 @@ ifeq ($(strip $(RAY_RAYLIB_CONFIG)),)
$(error RAY_RAYLIB_CONFIG is not set. Enter the ray flake shell with 'nix develop')
endif
ifeq ($(strip $(FLINT_CURL_LDLIBS)),)
$(error libcurl pkg-config metadata is missing. Runtime asset downloads are required; enter the flake shell with 'nix develop' or set FLINT_CURL_CFLAGS/FLINT_CURL_LDLIBS explicitly)
$(error libcurl metadata is missing. Sync is required; enter the flake shell with 'nix develop' or set FLINT_CURL_CFLAGS/FLINT_CURL_LDLIBS explicitly)
endif
ifneq ($(shell v='$(FLINT_CURL_VERSION_HEX)'; if [ "$$v" = 075600 ] || [ "$$v" \> 075600 ]; then echo yes; fi),yes)
$(error libcurl >= 7.86.0 is required for websocket sync; found LIBCURL_VERSION_NUM=$(FLINT_CURL_VERSION_NUM))
endif
endif
NEEDS_CLICK_ENV := $(filter click click-verify,$(MAKECMDGOALS))
ifneq ($(strip $(NEEDS_CLICK_ENV)),)
ifeq ($(strip $(CLICK_BIN_SOURCE)),)
ifeq ($(strip $(AARCH64_CC)),)
$(error AARCH64_CC is not set. Enter the ray flake shell with 'nix develop' or pass CLICK_BIN_SOURCE=/path/to/inbe)
endif
ifeq ($(strip $(AARCH64_AR)),)
$(error AARCH64_AR is not set. Enter the ray flake shell with 'nix develop' or pass CLICK_BIN_SOURCE=/path/to/inbe)
endif
ifeq ($(strip $(AARCH64_RANLIB)),)
$(error AARCH64_RANLIB is not set. Enter the ray flake shell with 'nix develop' or pass CLICK_BIN_SOURCE=/path/to/inbe)
endif
ifeq ($(strip $(AARCH64_RAY_CFLAGS)),)
$(error AARCH64_RAY_CFLAGS is not set. Enter the ray flake shell with 'nix develop' or pass CLICK_BIN_SOURCE=/path/to/inbe)
endif
ifeq ($(strip $(AARCH64_RAY_LDLIBS)),)
$(error AARCH64_RAY_LDLIBS is not set. Enter the ray flake shell with 'nix develop' or pass CLICK_BIN_SOURCE=/path/to/inbe)
endif
ifeq ($(strip $(AARCH64_RAY_SDL_INCLUDE_DIR)),)
$(error AARCH64_RAY_SDL_INCLUDE_DIR is not set. Enter the ray flake shell with 'nix develop' or pass CLICK_BIN_SOURCE=/path/to/inbe)
endif
ifeq ($(strip $(AARCH64_FLINT_CURL_LDLIBS)),)
$(error AARCH64_FLINT_CURL_LDLIBS is not set. Enter the ray flake shell with 'nix develop' or pass CLICK_BIN_SOURCE=/path/to/inbe)
endif
endif
endif
+1 -1
View File
@@ -77,8 +77,8 @@ The AVD is configured with:
## Project Structure
- `src/` - Inbe application code
- `flint/` - first-party UI/runtime support code used directly by Inbe
- `vendor/` - external third-party dependencies
- `vendor/flint/` - first-party UI/runtime support code used directly by Inbe
- `wasm4/` - Standalone WASM-4 version
- `assets/` - Images and sounds
- `droid/` - Android build configuration
Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 75 KiB

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 235 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 323 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 265 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 305 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 328 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

+16 -6
View File
@@ -5,7 +5,7 @@ plugins {
android {
namespace 'xyz.waozi.inbe'
compileSdk 35
ndkVersion "25.1.8937393"
ndkVersion "28.2.13676358"
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
@@ -33,10 +33,10 @@ android {
}
defaultConfig {
minSdk 19
minSdk 21
targetSdk 35
versionCode 30
versionName "1.3.2"
versionCode 48
versionName "1.5.2"
}
@@ -61,14 +61,24 @@ android {
abi {
enable true
reset()
include 'arm64-v8a', 'armeabi-v7a', 'x86', 'x86_64'
universalApk true
def selectedAbis = (project.findProperty('inbe.abis') ?: 'arm64-v8a,armeabi-v7a,x86,x86_64')
.split(',')
.collect { it.trim() }
.findAll { it.length() > 0 }
include(*selectedAbis)
universalApk !project.hasProperty('inbe.abis')
}
}
dependenciesInfo {
includeInApk = false
}
packaging {
jniLibs {
useLegacyPackaging = false
}
}
}
gradle.taskGraph.whenReady { taskGraph ->
+1 -1
View File
@@ -10,7 +10,7 @@
android:roundIcon="@mipmap/ic_launcher_round">
<activity
android:name="xyz.waozi.inbe.MainActivity"
android:configChanges="orientation|keyboardHidden|screenSize|uiMode"
android:configChanges="keyboardHidden|uiMode"
android:exported="true"
android:theme="@android:style/Theme.DeviceDefault.NoActionBar"
android:windowLayoutInDisplayCutoutMode="never">
+42 -11
View File
@@ -1,27 +1,35 @@
cmake_minimum_required(VERSION 3.22)
project(Inbe C)
find_program(CCACHE_PROGRAM ccache)
if(CCACHE_PROGRAM)
set(CMAKE_C_COMPILER_LAUNCHER "${CCACHE_PROGRAM}")
endif()
set(REPO_ROOT "${CMAKE_CURRENT_LIST_DIR}/../../../../..")
set(SRC_DIR "${REPO_ROOT}/src")
set(RAYLIB_DIR "${REPO_ROOT}/vendor/raylib/src")
set(FLINT_DIR "${REPO_ROOT}/flint")
set(FLINT_DIR "${REPO_ROOT}/vendor/flint")
set(SQLITE_DIR "${REPO_ROOT}/vendor/sqlite")
set(SQLITE_BUILD_DIR "${CMAKE_BINARY_DIR}/sqlite")
set(SQLITE_AMALGAMATION_C "${SQLITE_BUILD_DIR}/sqlite3.c")
set(SQLITE_AMALGAMATION_H "${SQLITE_BUILD_DIR}/sqlite3.h")
set(NATIVE_APP_GLUE_DIR "${ANDROID_NDK}/sources/android/native_app_glue")
file(GLOB FLINT_SOURCES CONFIGURE_DEPENDS "${FLINT_DIR}/src/*.c")
set(OQS_BUILD_ONLY_LIB ON CACHE BOOL "" FORCE)
set(OQS_USE_OPENSSL OFF CACHE BOOL "" FORCE)
set(OQS_MINIMAL_BUILD "SIG_ml_dsa_44" CACHE STRING "" FORCE)
add_subdirectory("${REPO_ROOT}/vendor/liboqs" "${CMAKE_BINARY_DIR}/liboqs")
file(GLOB FLINT_SOURCES CONFIGURE_DEPENDS "${FLINT_DIR}/src/*.c" "${FLINT_DIR}/src/ui/*.c")
list(REMOVE_ITEM FLINT_SOURCES "${FLINT_DIR}/src/flint_file_dialog.c")
file(GLOB INBE_LOCALE_ASSETS RELATIVE "${REPO_ROOT}" CONFIGURE_DEPENDS "${REPO_ROOT}/locales/*.txt")
file(GLOB INBE_SOUND_ASSETS RELATIVE "${REPO_ROOT}" CONFIGURE_DEPENDS "${REPO_ROOT}/assets/sounds/*.ogg")
set(INBE_EMBEDDED_INPUTS
${INBE_LOCALE_ASSETS}
assets/whm/1.jpg
assets/whm/2.jpg
assets/practices/whm/1.jpg
assets/practices/whm/2.jpg
assets/practices/meditation/1.jpg
assets/fonts/locales.png
assets/fonts/locales.dat
assets/fonts/locales-8.png
assets/fonts/locales-8.dat
${INBE_SOUND_ASSETS}
)
set(INBE_EMBEDDED_DEPS)
@@ -88,14 +96,28 @@ add_library(main SHARED
"${SRC_DIR}/main.c"
"${SRC_DIR}/core/breath_engine.c"
"${SRC_DIR}/app/app.c"
"${SRC_DIR}/app/app_settings.c"
"${SRC_DIR}/app/device_preferences.c"
"${SRC_DIR}/session/session.c"
"${SRC_DIR}/practices/practice_registry.c"
"${SRC_DIR}/practices/whm/whm_practice.c"
"${SRC_DIR}/practices/whm/whm_session.c"
"${SRC_DIR}/practices/whm/whm_manual.c"
"${SRC_DIR}/practices/whm/whm_config.c"
"${SRC_DIR}/practices/meditation/meditation_practice.c"
"${SRC_DIR}/practices/meditation/meditation_session.c"
"${SRC_DIR}/practices/meditation/meditation_manual.c"
"${SRC_DIR}/practices/meditation/meditation_config.c"
"${SRC_DIR}/screens/habits_screen.c"
"${SRC_DIR}/session/meditation_music.c"
"${SRC_DIR}/core/locale.c"
"${SRC_DIR}/core/theme.c"
"${SRC_DIR}/screens/statistics_screen.c"
"${SRC_DIR}/screens/habits/edit.c"
"${SRC_DIR}/screens/habits/session.c"
"${SRC_DIR}/practices/meditation/meditation_music.c"
"${SRC_DIR}/storage/data.c"
"${SRC_DIR}/storage/db.c"
"${SRC_DIR}/storage/import.c"
"${SRC_DIR}/storage/storage.c"
"${SRC_DIR}/storage/sync_account.c"
"${SRC_DIR}/storage/sync_client.c"
"${SRC_DIR}/third_party/miniz.c"
"${SQLITE_AMALGAMATION_C}"
"${SRC_DIR}/platform/android/android_device.c"
@@ -106,6 +128,10 @@ add_library(main SHARED
"${SRC_DIR}/screens/language_screen.c"
"${SRC_DIR}/screens/manual_screen.c"
"${SRC_DIR}/screens/settings/settings_screen.c"
"${SRC_DIR}/screens/settings/settings_device.c"
"${SRC_DIR}/screens/settings/settings_theme.c"
"${SRC_DIR}/screens/settings/settings_data.c"
"${SRC_DIR}/screens/settings/settings_sync_account.c"
"${INBE_EMBEDDED_ASSETS_C}"
${FLINT_SOURCES}
"${SRC_DIR}/platform/android/android_insets.c"
@@ -120,7 +146,9 @@ target_include_directories(main PRIVATE
"${SRC_DIR}/core"
"${SRC_DIR}/screens"
"${SRC_DIR}/screens/settings"
"${SRC_DIR}/session"
"${SRC_DIR}/practices"
"${SRC_DIR}/practices/whm"
"${SRC_DIR}/practices/meditation"
"${SRC_DIR}/storage"
"${SRC_DIR}/platform/android"
"${SRC_DIR}/third_party"
@@ -141,6 +169,7 @@ target_compile_definitions(main PRIVATE
SUPPORT_MODULE_RAUDIO=1
SUPPORT_FILEFORMAT_OGG=1
FLINT_EMBEDDED_ONLY=1
INBE_HAS_LIBOQS=1
)
target_compile_options(main PRIVATE
@@ -153,11 +182,13 @@ target_compile_options(main PRIVATE
target_link_options(main PRIVATE
-Wl,--gc-sections
-Wl,--strip-all
-Wl,-z,max-page-size=16384
-Wl,--wrap=fopen
)
target_link_libraries(main
raylib
oqs
android
log
OpenSLES
@@ -15,6 +15,7 @@ import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.PowerManager;
import android.util.Base64;
import android.util.Log;
import android.view.DisplayCutout;
import android.view.KeyEvent;
@@ -26,11 +27,17 @@ import android.view.inputmethod.InputMethodManager;
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.Socket;
import java.net.SocketException;
import java.net.SocketTimeoutException;
import java.net.URI;
import java.net.UnknownHostException;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.security.SecureRandom;
import javax.net.ssl.SSLSocketFactory;
public class MainActivity extends NativeActivity {
private static final String TAG = "InbeMainActivity";
@@ -51,6 +58,7 @@ public class MainActivity extends NativeActivity {
private boolean windowFocused = true;
private boolean backgroundExecutionActive = false;
private boolean autoPausedForLifecycle = false;
private int lastDeleteRepeatCount = -1;
private native void nativeSetInsets(int status, int nav,
int cutoutLeft, int cutoutTop, int cutoutRight, int cutoutBottom);
@@ -69,6 +77,7 @@ public class MainActivity extends NativeActivity {
private native void nativeTextInputCommit(int codepoint);
private native void nativeTextInputBackspace();
private native void nativeTextInputEnter();
private native void nativeInvalidateGraphicsResources();
private void requestDownloadNotificationPermissionIfNeeded() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU &&
@@ -149,18 +158,32 @@ public class MainActivity extends NativeActivity {
if (event != null && event.getAction() == KeyEvent.ACTION_DOWN) {
int keyCode = event.getKeyCode();
if (keyCode == KeyEvent.KEYCODE_DEL) {
nativeTextInputBackspace();
int repeatCount = event.getRepeatCount();
int deleteCount = lastDeleteRepeatCount < 0
? 1
: Math.max(1, repeatCount - lastDeleteRepeatCount);
lastDeleteRepeatCount = repeatCount;
for (int i = 0; i < deleteCount; i++) {
nativeTextInputBackspace();
}
} else if (keyCode == KeyEvent.KEYCODE_ENTER ||
keyCode == KeyEvent.KEYCODE_NUMPAD_ENTER) {
lastDeleteRepeatCount = -1;
nativeTextInputEnter();
} else {
lastDeleteRepeatCount = -1;
int unicode = event.getUnicodeChar();
if (unicode >= 32) {
nativeTextInputCommit(unicode);
}
}
} else if (event != null && event.getAction() == KeyEvent.ACTION_UP) {
if (event.getKeyCode() == KeyEvent.KEYCODE_DEL) {
lastDeleteRepeatCount = -1;
}
} else if (event != null && event.getAction() == KeyEvent.ACTION_MULTIPLE &&
event.getCharacters() != null) {
lastDeleteRepeatCount = -1;
String chars = event.getCharacters();
for (int i = 0; i < chars.length();) {
int codepoint = chars.codePointAt(i);
@@ -268,7 +291,228 @@ public class MainActivity extends NativeActivity {
}, "inbe-runtime-asset-download").start();
}
public void openImportPicker() {
public String syncHttpRequest(String method, String urlText, String body, String[] headers) {
HttpURLConnection connection = null;
int status = 0;
try {
byte[] bodyBytes = body != null ? body.getBytes(StandardCharsets.UTF_8) : new byte[0];
connection = (HttpURLConnection)new URL(urlText).openConnection();
connection.setInstanceFollowRedirects(false);
connection.setConnectTimeout(15000);
connection.setReadTimeout(30000);
connection.setRequestMethod(method);
connection.setRequestProperty("User-Agent", "inbe-sync/1");
if (headers != null) {
for (String header : headers) {
if (header == null) continue;
int colon = header.indexOf(':');
if (colon <= 0) continue;
String key = header.substring(0, colon).trim();
String value = header.substring(colon + 1).trim();
if (!key.isEmpty()) {
connection.setRequestProperty(key, value);
}
}
}
if ("POST".equals(method) || "DELETE".equals(method)) {
connection.setDoOutput(true);
connection.setFixedLengthStreamingMode(bodyBytes.length);
try (OutputStream output = connection.getOutputStream()) {
output.write(bodyBytes);
}
}
status = connection.getResponseCode();
InputStream stream = status >= 400 ? connection.getErrorStream() : connection.getInputStream();
String response = "";
if (stream != null) {
try (InputStream input = stream) {
byte[] bytes = readAllBytesCompat(input);
response = new String(bytes, StandardCharsets.UTF_8);
}
}
return status + "\n" + response;
} catch (Exception e) {
Log.e(TAG, "Sync HTTP request failed", e);
return status + "\n" + (e.getMessage() != null ? e.getMessage() : "request failed");
} finally {
if (connection != null) {
connection.disconnect();
}
}
}
public String syncWebSocketWait(String urlText, String[] headers) {
Socket socket = null;
try {
URI url = new URI(urlText);
String protocol = url.getScheme();
boolean secure = "wss".equals(protocol);
int port = url.getPort();
String path = url.getRawPath();
if (path == null || path.isEmpty()) path = "/";
if (url.getRawQuery() != null && !url.getRawQuery().isEmpty()) {
path += "?" + url.getRawQuery();
}
if (port <= 0) port = secure ? 443 : 80;
if (!secure && !"ws".equals(protocol)) {
return "0\ninvalid websocket url";
}
socket = secure
? SSLSocketFactory.getDefault().createSocket(url.getHost(), port)
: new Socket(url.getHost(), port);
socket.setTcpNoDelay(true);
byte[] keyBytes = new byte[16];
new SecureRandom().nextBytes(keyBytes);
String key = Base64.encodeToString(keyBytes, Base64.NO_WRAP);
StringBuilder request = new StringBuilder();
request.append("GET ").append(path).append(" HTTP/1.1\r\n");
request.append("Host: ").append(url.getHost());
if ((secure && port != 443) || (!secure && port != 80)) {
request.append(":").append(port);
}
request.append("\r\n");
request.append("Upgrade: websocket\r\n");
request.append("Connection: Upgrade\r\n");
request.append("Sec-WebSocket-Version: 13\r\n");
request.append("Sec-WebSocket-Key: ").append(key).append("\r\n");
request.append("User-Agent: inbe-sync/1\r\n");
if (headers != null) {
for (String header : headers) {
if (header != null && !header.isEmpty()) {
request.append(header).append("\r\n");
}
}
}
request.append("\r\n");
socket.getOutputStream().write(request.toString().getBytes(StandardCharsets.US_ASCII));
socket.getOutputStream().flush();
String statusLine = readAsciiLine(socket);
int status = parseHttpStatus(statusLine);
while (true) {
String line = readAsciiLine(socket);
if (line == null || line.isEmpty()) break;
}
if (status != 101) {
return status + "\nwebsocket upgrade failed";
}
Log.i(TAG, "Sync WebSocket connected");
while (true) {
String message = readWebSocketText(socket);
if (message == null) {
return "0\nwebsocket closed";
}
if (message.contains("\"type\":\"sync_changed\"")) {
return "101\n" + message;
}
}
} catch (Exception e) {
Log.w(TAG, "WebSocket wait failed", e);
return "0\n" + (e.getMessage() != null ? e.getMessage() : "websocket failed");
} finally {
if (socket != null) {
try {
socket.close();
} catch (Exception ignored) {
}
}
}
}
private static int parseHttpStatus(String statusLine) {
if (statusLine == null) return 0;
String[] parts = statusLine.split(" ", 3);
if (parts.length < 2) return 0;
try {
return Integer.parseInt(parts[1]);
} catch (NumberFormatException e) {
return 0;
}
}
private static String readAsciiLine(Socket socket) throws java.io.IOException {
StringBuilder line = new StringBuilder();
while (true) {
int b = socket.getInputStream().read();
if (b < 0) {
return line.length() > 0 ? line.toString() : null;
}
if (b == '\n') break;
if (b != '\r') line.append((char)b);
}
return line.toString();
}
private static String readWebSocketText(Socket socket) throws java.io.IOException {
int b0 = socket.getInputStream().read();
int b1 = socket.getInputStream().read();
if (b0 < 0 || b1 < 0) return null;
int opcode = b0 & 0x0f;
boolean masked = (b1 & 0x80) != 0;
long length = b1 & 0x7f;
if (length == 126) {
length = ((long)readByte(socket) << 8) | readByte(socket);
} else if (length == 127) {
length = 0;
for (int i = 0; i < 8; i++) {
length = (length << 8) | readByte(socket);
}
}
if (length < 0 || length > 1024 * 1024) {
throw new java.io.IOException("websocket frame too large");
}
byte[] mask = null;
if (masked) {
mask = readExact(socket, 4);
}
byte[] payload = readExact(socket, (int)length);
if (masked) {
for (int i = 0; i < payload.length; i++) {
payload[i] = (byte)(payload[i] ^ mask[i % 4]);
}
}
if (opcode == 8) return null;
if (opcode != 1) return "";
return new String(payload, StandardCharsets.UTF_8);
}
private static int readByte(Socket socket) throws java.io.IOException {
int b = socket.getInputStream().read();
if (b < 0) throw new java.io.IOException("unexpected eof");
return b;
}
private static byte[] readExact(Socket socket, int count) throws java.io.IOException {
byte[] data = new byte[count];
int offset = 0;
while (offset < count) {
int read = socket.getInputStream().read(data, offset, count - offset);
if (read < 0) throw new java.io.IOException("unexpected eof");
offset += read;
}
return data;
}
private static byte[] readAllBytesCompat(InputStream input) throws java.io.IOException {
byte[] buffer = new byte[8192];
int read;
java.io.ByteArrayOutputStream output = new java.io.ByteArrayOutputStream();
while ((read = input.read(buffer)) != -1) {
output.write(buffer, 0, read);
}
return output.toByteArray();
}
public void openImportPicker(final String mimeTypesCsv) {
runOnUiThread(new Runnable() {
@Override
public void run() {
@@ -276,13 +520,10 @@ public class MainActivity extends NativeActivity {
Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);
intent.addCategory(Intent.CATEGORY_OPENABLE);
intent.setType("*/*");
intent.putExtra(Intent.EXTRA_MIME_TYPES, new String[] {
"application/zip",
"application/x-zip-compressed",
"application/vnd.sqlite3",
"application/x-sqlite",
"application/x-sqlite3"
});
String[] mimeTypes = parseMimeTypes(mimeTypesCsv);
if (mimeTypes.length > 0) {
intent.putExtra(Intent.EXTRA_MIME_TYPES, mimeTypes);
}
startActivityForResult(intent, REQUEST_IMPORT_ZIP);
} catch (Exception e) {
Log.e(TAG, "Failed to open import picker", e);
@@ -292,6 +533,22 @@ public class MainActivity extends NativeActivity {
});
}
private static String[] parseMimeTypes(String mimeTypesCsv) {
if (mimeTypesCsv == null || mimeTypesCsv.trim().isEmpty()) {
return new String[0];
}
String[] raw = mimeTypesCsv.split(",");
java.util.ArrayList<String> result = new java.util.ArrayList<>();
for (String mimeType : raw) {
String trimmed = mimeType.trim();
if (!trimmed.isEmpty()) {
result.add(trimmed);
}
}
return result.toArray(new String[0]);
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
@@ -402,6 +659,7 @@ public class MainActivity extends NativeActivity {
@Override
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
nativeInvalidateGraphicsResources();
pushDeviceConfiguration();
requestInsetRefresh();
}
@@ -600,6 +858,8 @@ public class MainActivity extends NativeActivity {
protected void onResume() {
super.onResume();
activityPaused = false;
nativeInvalidateGraphicsResources();
requestInsetRefresh();
syncLifecycleState("onResume");
}
@@ -11,6 +11,40 @@ import java.io.FileOutputStream;
public class ShareHelper {
private static final String TAG = "InbeShare";
public static void shareFile(Activity activity, byte[] data, String filename, String mimeType, String chooserTitle) {
if (activity == null || data == null) return;
activity.runOnUiThread(new Runnable() {
@Override
public void run() {
try {
File cacheFile = new File(activity.getCacheDir(), filename);
FileOutputStream fos = new FileOutputStream(cacheFile);
fos.write(data);
fos.close();
Uri contentUri = FileProvider.getUriForFile(
activity,
"xyz.waozi.inbe.fileprovider",
cacheFile
);
Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.setType(mimeType != null ? mimeType : "application/octet-stream");
sendIntent.putExtra(Intent.EXTRA_STREAM, contentUri);
sendIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
Intent shareIntent = Intent.createChooser(sendIntent, chooserTitle);
activity.startActivity(shareIntent);
Log.i(TAG, "Share sheet shown");
} catch (Exception e) {
Log.e(TAG, "Share failed", e);
}
}
});
}
public static void shareZipFile(Activity activity, byte[] zipData, String filename, String chooserTitle) {
if (activity == null || zipData == null) return;
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#E2EEFC" />
<solid android:color="#87CEEB" />
</shape>
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 638 B

After

Width:  |  Height:  |  Size: 515 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 638 B

After

Width:  |  Height:  |  Size: 515 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 554 B

After

Width:  |  Height:  |  Size: 383 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 554 B

After

Width:  |  Height:  |  Size: 383 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 670 B

After

Width:  |  Height:  |  Size: 577 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 670 B

After

Width:  |  Height:  |  Size: 577 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 766 B

After

Width:  |  Height:  |  Size: 652 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 766 B

After

Width:  |  Height:  |  Size: 652 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 670 B

After

Width:  |  Height:  |  Size: 720 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 670 B

After

Width:  |  Height:  |  Size: 720 B

@@ -1,7 +0,0 @@
Initial release
• Breathing exercise tutorial with 5 steps
• Configurable settings: speed, rounds, breaths, pause duration
• Session history tracking and statistics
• Support for Linux, Windows, Android, and WebAssembly
• Dark theme with customizable colors
+3
View File
@@ -1,2 +1,5 @@
android.useAndroidX=true
android.suppressUnsupportedCompileSdk=35
org.gradle.caching=true
org.gradle.parallel=true
android.nativeBuildCache.enabled=true
@@ -2,11 +2,9 @@ Eine freie, quelloffene App für Atmung, Meditation und Gewohnheiten.
Funktionen:
- Geführte Übungen mit visuellen und akustischen Hinweisen
- Mind, Yoga und Fitness für Gewohnheiten und Übungen
- Anpassbare Atemsitzungen und Meditationstimer
- Gewohnheitstracking mit Sitzungsverlauf
- Mind, Yoga und Fitness für verschiedene Übungsroutinen
- Anpassbare Atemsitzungen, Meditationstimer und Zähler
- Gewohnheitstracking mit Verlauf und verknüpften Übungszahlen
- Optionale Synchronisierung von Gewohnheiten, Sitzungen und Fortschritt
- Lokale Speicherung mit Import und Export
- Anpassbare Designs mit hellen und dunklen Varianten
- Touch-optimierte Oberfläche für Mobilgeräte
Verfügbare Plattformen: Linux, Windows, Android, WebAssembly.
@@ -1 +1 @@
Eine freie App für Atmung, Meditation und Gewohnheiten.
Atmung, Meditation und Gewohnheiten mit Synchronisierung.
@@ -0,0 +1,3 @@
Fixed
---
- Import now restores habits, habit sync settings, and optionally app settings from Inbe SQLite exports.
@@ -0,0 +1,3 @@
### Changed
- Reorganized WHM and Meditation into practice-owned modules for cleaner code boundaries.
- Split the meditation manual into an image intro page and a shorter music/gong setup page.
@@ -0,0 +1,2 @@
### Fixed
- Improved Android data import for `.db` backups, weekly habit rows, and import conflict handling.
@@ -0,0 +1,2 @@
### Fixed
- Fixed Tickmate `.db` imports so zero-based months map correctly and long habit histories load without dropping later dates.
@@ -0,0 +1,2 @@
### Added
- optional sync client, offline account creation
@@ -0,0 +1,2 @@
### Changed
- Improve account management
@@ -0,0 +1,3 @@
### Fixed
- Improve sync auth, websocket reconnects, and queued habit/session updates.
- Reduce SQLite-related UI flicker and speed up bulk import sync queueing.
@@ -0,0 +1,3 @@
### Fixed
- Refresh expired native sync auth tokens before sending queued changes.
- Require first-time meditation users to continue through the tutorial before starting.
@@ -0,0 +1,3 @@
### Fixed
- Build the Ubuntu Touch Click package with the OpenStore package id and review-compatible control metadata.
- Omit Click AppStream metadata by default to avoid OpenStore revision import failures.
@@ -0,0 +1,2 @@
### Changed
- Fix spacing issues and translations
@@ -0,0 +1,4 @@
### Changed
- Add a responsive Flint sidebar, configurable bottom navigation, and independent Statistics screen.
### Fixed
- Preserve queued local habit counter settings when applying sync responses.
@@ -0,0 +1,3 @@
### Changed
- Rework Practice into Manual, start, and configuration tabs with a new localized first-run guide.
- Simplify Meditation's manual to one page and make bottom navigation more compact.
@@ -0,0 +1,2 @@
### Changed
- Fixed start screen
@@ -0,0 +1,2 @@
### Fixed
- Fix Practice startup, manual navigation, configuration scrolling, and sync backfill issues.
@@ -0,0 +1,4 @@
### Added
- Added guide to habits page
### Changed
- fix orientation issues
@@ -0,0 +1,4 @@
### Added
- tab bar mode for habits and exercises
### Changed
- fix ut click file
@@ -0,0 +1,3 @@
### Changed
- New logo
- improve tabbar ui
@@ -0,0 +1,3 @@
Fixed
---
- icon scaling
@@ -0,0 +1,4 @@
Changed
---
- let you disable screen transitions
- added theme modal
@@ -2,11 +2,9 @@ A free, open-source practice app for breathing, meditation, and habit tracking.
Features:
- Guided practice sessions with visual and audio cues
- Mind, Yoga, and Fitness organization for habits and practice views
- Configurable breathing sessions and meditation timers
- Habit tracking with session history
- Mind, Yoga, and Fitness organization for different practice routines
- Customizable breathing sessions, meditation timers, and habit counters
- Habit tracking with session history and linked practice counts
- Optional sync for habits, sessions, and practice progress
- Local storage with import/export support
- Theme customization with light and dark variants
- Touch-optimized UI for mobile devices
Available platforms: Linux, Windows, Android, WebAssembly.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 157 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 187 KiB

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 KiB

@@ -1 +1 @@
A free, open-source app for breathing, meditation, and habit tracking.
Syncable breathing, meditation, and habit practice app.
@@ -2,11 +2,9 @@ Una app libre y de código abierto para respiración, meditación y hábitos.
Funciones:
- Prácticas guiadas con señales visuales y de audio
- Organización Mind, Yoga y Fitness para hábitos y prácticas
- Sesiones de respiración y temporizadores de meditación configurables
- Seguimiento de hábitos con historial de sesiones
- Organización Mind, Yoga y Fitness para distintas rutinas de práctica
- Sesiones de respiración, temporizadores y contadores configurables
- Seguimiento de hábitos con historial y recuentos vinculados a prácticas
- Sincronización opcional de hábitos, sesiones y progreso
- Almacenamiento local con importación y exportación
- Temas personalizables con variantes claras y oscuras
- Interfaz optimizada para pantallas táctiles
Plataformas disponibles: Linux, Windows, Android, WebAssembly.
@@ -1 +1 @@
Una app libre para respiración, meditación y hábitos.
Respiración, meditación y hábitos con sincronización.
@@ -2,11 +2,9 @@ Une app libre et open source pour respiration, méditation et habitudes.
Fonctionnalités :
- Pratiques guidées avec repères visuels et audio
- Organisation Mind, Yoga et Fitness pour habitudes et pratiques
- Séances de respiration et minuteries de méditation configurables
- Suivi des habitudes avec historique des séances
- Organisation Mind, Yoga et Fitness pour différentes routines
- Séances de respiration, minuteries et compteurs personnalisables
- Suivi des habitudes avec historique et comptes liés aux pratiques
- Synchronisation optionnelle des habitudes, séances et progrès
- Stockage local avec import et export
- Thèmes personnalisables avec variantes claires et sombres
- Interface optimisée pour les écrans tactiles
Plateformes disponibles : Linux, Windows, Android, WebAssembly.
@@ -1 +1 @@
Une app libre pour respiration, méditation et habitudes.
Respiration, méditation et habitudes avec synchronisation.
@@ -2,11 +2,9 @@ Um app livre e de código aberto para respiração, meditação e hábitos.
Recursos:
- Práticas guiadas com sinais visuais e sonoros
- Organização Mind, Yoga e Fitness para hábitos e práticas
- Sessões de respiração e timers de meditação configuráveis
- Acompanhamento de hábitos com histórico de sessões
- Organização Mind, Yoga e Fitness para diferentes rotinas de prática
- Sessões de respiração, timers de meditação e contadores configuráveis
- Acompanhamento de hábitos com histórico e contagens ligadas às práticas
- Sincronização opcional de hábitos, sessões e progresso
- Armazenamento local com importação e exportação
- Temas personalizáveis com variantes claras e escuras
- Interface otimizada para toque em dispositivos móveis
Plataformas disponíveis: Linux, Windows, Android, WebAssembly.
@@ -1 +1 @@
Um app livre para respiração, meditação e hábitos.
Respiração, meditação e hábitos com sincronização.
+38 -4
View File
@@ -64,7 +64,7 @@
buildToolsVersions = [ "34.0.0" ];
platformVersions = [ "34" "35" ];
includeNDK = true;
ndkVersions = [ "25.1.8937393" ];
ndkVersions = [ "28.2.13676358" ];
cmakeVersions = [ "3.22.1" ];
includeEmulator = true;
includeSystemImages = true;
@@ -78,6 +78,7 @@
pkgConfigPath = pkgs.lib.makeSearchPath "lib/pkgconfig" [
sdl2Pkgs.SDL2.dev
pkgs.curl.dev
pkgs.openssl.dev
pkgs.libdrm.dev
pkgs.libgbm
pkgs.libglvnd.dev
@@ -85,9 +86,12 @@
aarch64PkgConfigPath = pkgs.lib.makeSearchPath "lib/pkgconfig" [
aarch64Pkgs.SDL2.dev
aarch64Pkgs.curl.dev
aarch64Pkgs.openssl.dev
aarch64Pkgs.libdrm.dev
aarch64Pkgs.libgbm
aarch64Pkgs.libglvnd.dev
aarch64Pkgs.zlib.dev
];
windowsTargetPkgs = pkgs.lib.optionals windowsCrossEnabled [
@@ -189,6 +193,9 @@ EOF
sdl2Pkgs.SDL2
sdl2Pkgs.SDL2.dev
butler
binutils
ubports-click
ccache
cmake
curl
curl.dev
@@ -199,38 +206,58 @@ EOF
gradle
imagemagick
jdk17
libxml2
libdrm
libdrm.dev
libgbm
libglvnd
libglvnd.dev
alsa-lib
appimagetool
libpulseaudio
linuxdeploy
linuxdeployPluginAppImage
mesa
ncurses
ninja
openssl
openssl.dev
patchelf
pkg-config
pipewire
rsync
xvfb-run
zlib
zip
aarch64Pkgs.stdenv.cc
aarch64Pkgs.SDL2
aarch64Pkgs.SDL2.dev
aarch64Pkgs.curl
aarch64Pkgs.curl.dev
aarch64Pkgs.openssl
aarch64Pkgs.openssl.dev
aarch64Pkgs.libdrm
aarch64Pkgs.libdrm.dev
aarch64Pkgs.libgbm
aarch64Pkgs.libglvnd
aarch64Pkgs.libglvnd.dev
aarch64Pkgs.zlib
aarch64Pkgs.zlib.dev
] ++ windowsTargetPkgs;
profile = ''
export JAVA_HOME="${pkgs.jdk17.home}"
export OPENSSL_INCLUDE_DIR="${pkgs.openssl.dev}/include"
export OPENSSL_SSL_LIBRARY="${pkgs.openssl.out}/lib/libssl.so"
export OPENSSL_CRYPTO_LIBRARY="${pkgs.openssl.out}/lib/libcrypto.so"
# Android SDK - override any system ANDROID_HOME
export ANDROID_HOME="${sdk}/libexec/android-sdk"
export ANDROID_SDK_ROOT="${sdk}/libexec/android-sdk"
export ANDROID_NDK_ROOT="${ndkPath}"
export CCACHE_DIR="$PWD/.ccache"
export CCACHE_BASEDIR="$PWD"
export CCACHE_COMPRESS=1
export PKG_CONFIG_PATH="/usr/lib64/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig:${pkgConfigPath}:$PKG_CONFIG_PATH"
@@ -255,6 +282,7 @@ EOF
export AARCH64_CC="${aarch64Pkgs.stdenv.cc}/bin/${aarch64Pkgs.stdenv.cc.targetPrefix}cc"
export AARCH64_AR="${aarch64Pkgs.stdenv.cc.bintools.bintools}/bin/${aarch64Pkgs.stdenv.cc.targetPrefix}ar"
export AARCH64_RANLIB="${aarch64Pkgs.stdenv.cc.bintools.bintools}/bin/${aarch64Pkgs.stdenv.cc.targetPrefix}ranlib"
export AARCH64_PKG_CONFIG_PATH="${aarch64PkgConfigPath}"
export AARCH64_RAY_SDL_CFLAGS="-D_GNU_SOURCE=1 -D_REENTRANT -I${aarch64Pkgs.SDL2.dev}/include -I${aarch64Pkgs.SDL2.dev}/include/SDL2"
export AARCH64_RAY_SDL_LDLIBS="-L${aarch64Pkgs.SDL2}/lib -lSDL2"
@@ -263,15 +291,21 @@ EOF
export AARCH64_RAY_CFLAGS="$AARCH64_RAY_SDL_CFLAGS $AARCH64_RAY_GL_CFLAGS"
export AARCH64_RAY_LDLIBS="$AARCH64_RAY_SDL_LDLIBS $AARCH64_RAY_GL_LDLIBS"
export AARCH64_RAY_SDL_INCLUDE_DIR="${aarch64Pkgs.SDL2.dev}/include"
export AARCH64_FLINT_CURL_CFLAGS="$(PKG_CONFIG_PATH="$AARCH64_PKG_CONFIG_PATH" pkg-config --cflags libcurl)"
export AARCH64_FLINT_CURL_LDLIBS="$(PKG_CONFIG_PATH="$AARCH64_PKG_CONFIG_PATH" pkg-config --libs libcurl)"
export AARCH64_CLICK_RUNTIME_LIBS="${aarch64Pkgs.SDL2}/lib/libSDL2-2.0.so.0 ${aarch64Pkgs.curl.out}/lib/libcurl.so.4 ${aarch64Pkgs.openssl.out}/lib/libssl.so.3 ${aarch64Pkgs.openssl.out}/lib/libcrypto.so.3 ${aarch64Pkgs.libdrm}/lib/libdrm.so.2 ${aarch64Pkgs.libgbm}/lib/libgbm.so.1 ${aarch64Pkgs.libglvnd}/lib/libEGL.so.1 ${aarch64Pkgs.libglvnd}/lib/libGLESv2.so.2 ${aarch64Pkgs.zlib}/lib/libz.so.1"
${windowsProfile}
for project in inbe; do
if [ -d "$project/droid" ]; then
android_local_sdk="$ANDROID_SDK_ROOT"
if [ -d /mnt/storage/Android/Sdk/ndk/28.2.13676358 ]; then
android_local_sdk="/mnt/storage/Android/Sdk"
fi
cat > "$project/droid/local.properties" <<EOF
sdk.dir=$ANDROID_SDK_ROOT
ndk.dir=$ANDROID_NDK_ROOT
cmake.dir=$ANDROID_SDK_ROOT/cmake/3.22.1
sdk.dir=$android_local_sdk
cmake.dir=$android_local_sdk/cmake/3.22.1
EOF
fi
done
-21
View File
@@ -1,21 +0,0 @@
MIT License
Copyright (c) 2026 Waozi
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.
-14
View File
@@ -1,14 +0,0 @@
# Inbe Flint UI
This directory is first-party Inbe UI/runtime support code. It was merged from
the old Flint project so Inbe can extend the UI system directly without a
vendored submodule, project manifest, CLI, or separate library target.
## Layout
- `include/` - public headers used by Inbe source files
- `src/` - C implementation files compiled directly into Inbe
- `icons/` - icon bitmaps embedded by the Flint icon asset source
- `scripts/` - small build helpers, currently asset embedding
The root `Makefile` and Android CMake project compile these files directly.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 169 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 155 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 246 B

Loaded 100 of 348 files, more files were not shown because too many files have changed in this diff. Show more