platform/core/base/bundle.git
7 weeks agoRelease version 0.17.1 63/317563/1 accepted/tizen_9.0_unified accepted/tizen_unified accepted/tizen_unified_dev accepted/tizen_unified_toolchain accepted/tizen_unified_x accepted/tizen_unified_x_asan tizen_9.0 accepted/tizen/9.0/unified/20241030.235458 accepted/tizen/unified/20240913.042631 accepted/tizen/unified/dev/20240919.040354 accepted/tizen/unified/toolchain/20241004.102223 accepted/tizen/unified/x/20240913.062833 accepted/tizen/unified/x/asan/20241014.000629 tizen_9.0_m2_release
Hwankyu Jhun [Wed, 11 Sep 2024 23:30:25 +0000 (08:30 +0900)]
Release version 0.17.1

Changes:
 - Create symbolic links for secure execution mode

Change-Id: Id89d62c174277d56bd8faecc7e057ee97a456e9d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 weeks agoCreate symbolic links for secure execution mode 17/317517/1
Hwankyu Jhun [Wed, 11 Sep 2024 07:05:46 +0000 (16:05 +0900)]
Create symbolic links for secure execution mode

This patch creates the symbolic links of rust libaries for secure execution.
If the executable file has capabilities, the program cannot use
LD_LIBRARY_PATH environment to fine shared libraries.

Change-Id: Iaf45f8ffdfaff489376d1cfaa7e3a9f4ab8babb7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 months agoRelease version 0.17.0 80/316780/1 accepted/tizen/unified/20240829.091434 accepted/tizen/unified/dev/20240901.214645 accepted/tizen/unified/x/20240829.105228
Hwankyu Jhun [Wed, 28 Aug 2024 04:47:18 +0000 (13:47 +0900)]
Release version 0.17.0

Changes:
 - Add parcel_read_ptr function
 - Add requires for rust bundle and rust parcel

Change-Id: I2c2a7fbd06c3d330fe8fcd4b31c33fe363240dbc
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 months agoMerge "Add parcel_read_ptr function" into tizen
Junghoon Park [Wed, 28 Aug 2024 04:43:41 +0000 (04:43 +0000)]
Merge "Add parcel_read_ptr function" into tizen

2 months agoAdd requires for rust bundle and rust parcel 75/316775/2
dongkwan [Wed, 28 Aug 2024 04:04:17 +0000 (13:04 +0900)]
Add requires for rust bundle and rust parcel

To make easier build environment for user who using api requires bundle.
 - add rust-libc and bundle require for rust-tizen-bundle.
 - add rust-libc and parcel require for rust-tizen-parcel.

Change-Id: I4a54f6a54a19f7c8987765398ce1fbfa09b0e030
Signed-off-by: dk3776.kim <dk3776.kim@samsung.com>
2 months agoAdd parcel_read_ptr function 57/316457/2
jh9216.park [Thu, 22 Aug 2024 00:30:57 +0000 (20:30 -0400)]
Add parcel_read_ptr function

Change-Id: I00edbce58d19c98854bc300d3ffa110a1c2835e5
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
2 months agoRelease version 0.16.2 16/316116/1 accepted/tizen/unified/20240814.180345 accepted/tizen/unified/dev/20240819.095551 accepted/tizen/unified/x/20240819.023454
Hwankyu Jhun [Tue, 13 Aug 2024 23:17:42 +0000 (08:17 +0900)]
Release version 0.16.2

Changes:
 - Refactor bundle: Decouple bundle_cpp from C API
 - Add tizen-base library for rust lang
 - Modify rust-tizen-base implementation
 - Fix wrong error handling in bundle add
 - Separate packages from rust-tizen-base
 - Fix build failure issue

Change-Id: I32b39fbd78c8a8adccf2c7f33a8d9b581b4f4e23
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 months agoFix build failure issue 13/316113/1
Hwankyu Jhun [Tue, 13 Aug 2024 22:39:49 +0000 (07:39 +0900)]
Fix build failure issue

The tizen_bundle_unittests is failed. Because, calling bundle_keyval_get_array_val()
returns wrong array element size. The type of the array_lement_size should be c_ulong.

Change-Id: Ie9d9bf1dd53832f1904b19ccf37427a9a6d6a9f8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 months agoRelease version 0.16.1 81/316081/1
jihoi kim [Tue, 13 Aug 2024 09:37:17 +0000 (18:37 +0900)]
Release version 0.16.1

Changes:
 - Modify rust-tizen-base implementation
 - Fix wrong error handling in bundle add
 - Separate packages from rust-tizen-base

Change-Id: I5e0640cbcbdf76be3515c27491c7029fd0cd371d
Signed-off-by: jihoi kim <jihoi.kim@samsung.com>
2 months agoSeparate packages from rust-tizen-base 79/316079/2
Hwankyu Jhun [Tue, 13 Aug 2024 09:28:05 +0000 (18:28 +0900)]
Separate packages from rust-tizen-base

The following packages are separated:
 - rust-tizen-bundle (crate: tizen_base)
 - rust-tizen-parcel (crate: tizen_parcel)

Change-Id: I7172142b2535e1be0730dfdd00a2f0ec7572e22a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 months agoFix wrong error handling in bundle add 99/315999/8
jihoi kim [Mon, 12 Aug 2024 09:11:21 +0000 (18:11 +0900)]
Fix wrong error handling in bundle add

- A val can be 0-length string in Bundle::Add(key, val)
- Bundle::GetStringArray can take empty string as key paramenter
- Fix unittest code: handling invalid key (empty, wrong type, not exist)

Change-Id: I7bb2dfd7b0a658ee9fd6f9d417e7386204ef9512
Signed-off-by: jihoi kim <jihoi.kim@samsung.com>
2 months agoModify rust-tizen-base implementation 20/316020/2
Hwankyu Jhun [Mon, 12 Aug 2024 12:13:20 +0000 (21:13 +0900)]
Modify rust-tizen-base implementation

- Strip so file before running install post section
- Remove cargo dependency
- Modify get_raw_handle() parameter

Change-Id: I1a504b602ba64a32e499c02b1a55c48d76d9d17f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 months agoRelease version 0.16.0 47/315947/1
Hwankyu Jhun [Mon, 12 Aug 2024 02:15:29 +0000 (11:15 +0900)]
Release version 0.16.0

Changes:
 - Refactor bundle: Decouple bundle_cpp from C API
 - Add tizen-base library for rust lang

Change-Id: I73633272f38bf85f3fec027361eda4cb92f4f4ef
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 months agoAdd tizen-base library for rust lang 14/312214/50
Hwankyu Jhun [Wed, 5 Jun 2024 06:28:13 +0000 (15:28 +0900)]
Add tizen-base library for rust lang

Adds:
 - parcel::Parcel
 - bundle::Bundle

Change-Id: Idfa4724960dd4b823cdaee20753929a04f1aad43
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 months agoRefactor bundle: Decouple bundle_cpp from C API 99/315399/8
jihoi kim [Wed, 31 Jul 2024 08:42:08 +0000 (17:42 +0900)]
Refactor bundle: Decouple bundle_cpp from C API

- Remove C API from CPP bundle implementation
- Preserve original logic, including error handling

Change-Id: Iaa161ab50d65ab60da3d7572f7347ba2070e23d1
Signed-off-by: jihoi kim <jihoi.kim@samsung.com>
3 months agoRelease version 0.15.0 89/315089/2 accepted/tizen/unified/20240727.112750 accepted/tizen/unified/dev/20240730.010457 accepted/tizen/unified/toolchain/20240812.133548 accepted/tizen/unified/x/20240729.014313 accepted/tizen/unified/x/asan/20240813.232039
jihoi kim [Thu, 25 Jul 2024 02:12:12 +0000 (11:12 +0900)]
Release version 0.15.0

Changes:
 - Add bundle equal comparision operator

Change-Id: Icb78e036a42278fe5c2f0906f2eefd0174b453a6
Signed-off-by: jihoi kim <jihoi.kim@samsung.com>
3 months agoAdd bundle equal comparision operator 63/314963/5
jihoi kim [Wed, 24 Jul 2024 01:35:04 +0000 (10:35 +0900)]
Add bundle equal comparision operator

- Create 'Bundle::operator ==' and 'Bundle::opeator !='
- Create TEST(Bundle, EqualOp) for unittest
- Remove unnecessary ternary operator
- Fix typo in 'bundle_internal.h'

Change-Id: Id00b08d91b4c3cf91f5d2abf0e2e596cbf6badd2
Signed-off-by: jihoi kim <jihoi.kim@samsung.com>
3 months agoRelease version 0.14.0 16/314016/1 accepted/tizen/unified/20240705.163255 accepted/tizen/unified/dev/20240708.053925 accepted/tizen/unified/x/20240708.014851
Hwankyu Jhun [Thu, 4 Jul 2024 04:36:49 +0000 (13:36 +0900)]
Release version 0.14.0

Changes:
 - Add a unit testcase
 - Add ExecAsync method in class Database

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Change-Id: Ib4ab1158902a785816b39b52319ea165ca5384b8

4 months agoAdd ExecAsync method in class Database 86/313786/1
jh9216.park [Tue, 2 Jul 2024 03:10:38 +0000 (23:10 -0400)]
Add ExecAsync method in class Database

Change-Id: I4a4bd8bf98608f894f07bd2c971377c283f2774b
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
4 months agoAdd a unit testcase 51/312751/2
Changgyu Choi [Fri, 14 Jun 2024 01:20:35 +0000 (10:20 +0900)]
Add a unit testcase

Adds:
 - Bundle::CopyAndExport

Change-Id: I7225b539fe9b9d67d4d0fd8e0b201f98eb761cd6
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
4 months agoRelease version 0.13.12 53/312753/1 accepted/tizen/unified/20240614.085200 accepted/tizen/unified/dev/20240620.005319 accepted/tizen/unified/toolchain/20240624.121741 accepted/tizen/unified/x/20240614.080611 accepted/tizen/unified/x/asan/20240625.093037
Hwankyu Jhun [Fri, 14 Jun 2024 01:24:52 +0000 (10:24 +0900)]
Release version 0.13.12

Changes:
 - Fix CmakeLists.txt of parcel

Change-Id: I9e614fff2405a24886b55b561f1c3881e5a6c82d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoFix CmakeLists.txt of parcel 52/312752/1
Hwankyu Jhun [Fri, 14 Jun 2024 01:23:43 +0000 (10:23 +0900)]
Fix CmakeLists.txt of parcel

The header files should be installed to include/parcel directory.

Change-Id: I8b4286a367436756ea14f548e107ed02de5449cd
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoRelease version 0.13.11 50/312750/1
Hwankyu Jhun [Fri, 14 Jun 2024 00:48:08 +0000 (09:48 +0900)]
Release version 0.13.11

Changes:
 - Modify directory hierarchy
 - Fix copy constructor

Change-Id: I546b4083df1df904ae77f2b19af3f7d8a2f91512
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoFix copy constructor 49/312749/1
Hwankyu Jhun [Fri, 14 Jun 2024 00:35:00 +0000 (09:35 +0900)]
Fix copy constructor

For the wrong code written in anticipation of the order of the bundle,
the elements are taken out of the list and the values are copied.
This patc is for backward compatibility.

Change-Id: I77eb340fcac5e0b4e7fbe8946cf4bdadfc44e576
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoModify directory hierarchy 97/312197/2
Hwankyu Jhun [Wed, 5 Jun 2024 04:47:11 +0000 (13:47 +0900)]
Modify directory hierarchy

Source directories are moved to src.

- src/bundle
- src/parcel
- src/tizen-database
- src/tizen-shared-queue

Change-Id: I3b0dd75dd1d18d5e6611d08e90754df3b393e9d5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoRelease version 0.13.10 32/312032/1 accepted/tizen/unified/20240604.015406 accepted/tizen/unified/x/20240605.012820
Hwankyu Jhun [Mon, 3 Jun 2024 04:25:59 +0000 (13:25 +0900)]
Release version 0.13.10

Changes:
 - Modify API description
 - Fix copy constructor for Bundle

Change-Id: Ieb86794f8ed71dddfd9f671780b5f118693010a1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 months agoFix copy constructor for Bundle 95/311695/5
jh9216.park [Fri, 24 May 2024 01:03:03 +0000 (21:03 -0400)]
Fix copy constructor for Bundle

- Copied bundle using bundle_dup() should not share data from origin
object

Change-Id: I71c0c69159a11195c79ff486627453d105851677
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
5 months agoModify API description 86/311186/3
Hwankyu Jhun [Thu, 16 May 2024 02:20:55 +0000 (11:20 +0900)]
Modify API description

This patch adds descriptions related to memory management.

Change-Id: Id283997d1dba1d7177ae6d7c23328b5c3f8c51e8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoRelease version 0.13.9 45/307645/1 accepted/tizen/unified/20240313.134152 accepted/tizen/unified/20240313.135358 accepted/tizen/unified/x/20240314.073456
Hwankyu Jhun [Tue, 12 Mar 2024 05:25:13 +0000 (14:25 +0900)]
Release version 0.13.9

Changes:
 - Fix lcov option

Change-Id: I46b4c9ec17227fc199e23b1f152bd27b56ce3748
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoFix lcov option 44/307644/1
Hwankyu Jhun [Tue, 12 Mar 2024 05:24:42 +0000 (14:24 +0900)]
Fix lcov option

"mismatch,graph,unused" options are added.

Change-Id: Ia9ce35ea5c966d65570e33c1b09deadd9f1de91e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoRelease version 0.13.8 45/307145/1 accepted/tizen/unified/20240306.094044 accepted/tizen/unified/toolchain/20240311.065307 accepted/tizen/unified/x/20240307.010903
Hwankyu Jhun [Tue, 5 Mar 2024 09:33:11 +0000 (18:33 +0900)]
Release version 0.13.8

Changes:
 - Increase data capacity of parcel

Change-Id: I4fca1962c37706110445fbbeea02d4ecaa993f68
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoIncrease data capacity of parcel 07/307107/3
Hwankyu Jhun [Tue, 5 Mar 2024 02:18:01 +0000 (11:18 +0900)]
Increase data capacity of parcel

The data capacity is changed to 1024 bytes.

Change-Id: I5561ef6af0da79bfbd8e972b1404069bfddc974e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoRelease version 0.13.7 98/306098/1 accepted/tizen/unified/20240305.053021 accepted/tizen/unified/x/20240305.021814
Changgyu Choi [Fri, 16 Feb 2024 05:50:57 +0000 (14:50 +0900)]
Release version 0.13.7

Changes:
 - Fix Exec function to determine the cause of failure
 - Remove conditional statements for Moible/Wearable profile

Change-Id: Ifff07ad222a7557a932fae293d69bba34be9b128
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
8 months agoRemove conditional statements for Moible/Wearable profile 77/306077/1
Changgyu Choi [Fri, 16 Feb 2024 04:53:37 +0000 (13:53 +0900)]
Remove conditional statements for Moible/Wearable profile

Change-Id: I1268cdfefa62532f8cc3e4a1d1fcf6b51305b2c1
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
10 months agoFix Exec function to determine the cause of failure 47/302947/2
Ilho Kim [Mon, 18 Dec 2023 03:36:57 +0000 (12:36 +0900)]
Fix Exec function to determine the cause of failure

If the sqlite3_prepare_v2 function fails when execute Exec function
the cause of failure can't get from the Result
Pass the db handle to the Result so that an error message can be
obtained from the db handle

Change-Id: I340e3ee2ccacc6194c33fc215d2e1d09d5163a15
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
12 months agoRelease version 0.13.6 19/300619/1 tizen_8.0 accepted/tizen/unified/20231031.163513
Changgyu Choi [Mon, 30 Oct 2023 04:29:13 +0000 (13:29 +0900)]
Release version 0.13.6

Changes:
 - [Database] Prevent invalid memory access

Change-Id: I145ec350e77da4cb1e7e94fc89326ae1f0f54c7f
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
12 months ago[Database] Prevent invalid memory access 08/300408/3
Changgyu Choi [Tue, 24 Oct 2023 05:58:48 +0000 (14:58 +0900)]
[Database] Prevent invalid memory access

If the TransactionGuard is destroy later than the Database,
there is a possibility of accessing the invalid pointer.

Change-Id: I6570e78b777da02672db2bf83e26dba2fb1af990
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
17 months agoRelease version 0.13.5 59/293559/1 accepted/tizen_8.0_unified accepted/tizen/8.0/unified/20231005.093146 accepted/tizen/unified/20230601.162947 accepted/tizen/unified/dev/20230726.115626 tizen_8.0_m2_release
Hwankyu Jhun [Wed, 31 May 2023 07:43:51 +0000 (07:43 +0000)]
Release version 0.13.5

Changes:
 - Refactor bundle implementation
 - Remove unnecessary linking library
 - Add missing exception handling

Change-Id: I4a23e17f91a439de97f5ce3c7c4710bfa02cd8a4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
17 months agoAdd missing exception handling 39/292939/1
Hwankyu Jhun [Wed, 17 May 2023 08:22:11 +0000 (08:22 +0000)]
Add missing exception handling

The bundle_dup() should not throw an exception. This patch adds
a missing exception handling.

Change-Id: I2131f7b29950805fa99de29c665f2adf7db9a73e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
17 months agoRemove unnecessary linking library 21/292421/1
Hwankyu Jhun [Mon, 8 May 2023 00:14:39 +0000 (00:14 +0000)]
Remove unnecessary linking library

The bundle is not needed for the parcel library.

Change-Id: If797c1e03df9c7503bd42c710dab47d081671a7a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
18 months agoRefactor bundle implementation 50/292150/6
Changgyu Choi [Fri, 28 Apr 2023 02:29:01 +0000 (11:29 +0900)]
Refactor bundle implementation

Change-Id: I2a5b3509df7f5769b4921d6e0253325a15d2d001
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
18 months agoRelease version 0.13.4 73/291773/1
Hwankyu Jhun [Fri, 21 Apr 2023 04:46:53 +0000 (04:46 +0000)]
Release version 0.13.4

Changes:
 - Include missing header for new tool chain
 - Fix build error for gcc 12.2.0

Change-Id: Icfe2a283db770de5f15bda26104788d327f72b95
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
18 months agoFix build error for gcc 12.2.0 50/291750/1
Hwankyu Jhun [Fri, 21 Apr 2023 00:57:15 +0000 (00:57 +0000)]
Fix build error for gcc 12.2.0

- Add missing header inclusions

Change-Id: I6f568b773be1d53845ce8e101e81d390a4af4468
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
18 months agoInclude missing header for new tool chain 41/291741/2
jh9216.park [Thu, 20 Apr 2023 23:42:35 +0000 (19:42 -0400)]
Include missing header for new tool chain

Change-Id: Id388cf3b8a92102750a35e9c99b9879ec4d6332d
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
20 months agoRelease version 0.13.3 46/288546/1 accepted/tizen_7.0_unified accepted/tizen/7.0/unified/20230221.135249 accepted/tizen/unified/20230221.085042
Hwankyu Jhun [Mon, 20 Feb 2023 00:31:22 +0000 (00:31 +0000)]
Release version 0.13.3

Changes:
 - Fix move constructor and move assignment for Database

Change-Id: I14a1150a3ccb79963494197af6f51d8d083f6442
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
20 months agoFix move constructor and move assignment for Database 89/288489/4
jh9216.park [Fri, 17 Feb 2023 06:35:47 +0000 (01:35 -0500)]
Fix move constructor and move assignment for Database

After moving the busy_handler_, the referenced instance casues the crash issue.

Change-Id: I023c55987551ed5f08935bf73ef18c8868dc3ef3
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
20 months agoRelease version 0.13.2 60/288160/1 accepted/tizen/7.0/unified/20230214.105908
jh9216.park [Mon, 13 Feb 2023 01:10:05 +0000 (20:10 -0500)]
Release version 0.13.2

Changes:
 - Fix static analysis issues
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
Change-Id: I7ef9f9d0b29813b7aa95f0e4f75932cfa1c9348a

20 months agoFix static analysis issues 58/288158/1
jh9216.park [Mon, 13 Feb 2023 01:02:17 +0000 (20:02 -0500)]
Fix static analysis issues

Change-Id: I7089cd8230bd1617476118744e9ca9449e5e7930
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
21 months agoRelease version 0.13.1 41/286941/1 accepted/tizen/unified/20230118.043051
Hwankyu Jhun [Tue, 17 Jan 2023 06:46:02 +0000 (06:46 +0000)]
Release version 0.13.1

Changes:
 - Modify data capacity of Parcel
 - Modify PushAndWaitAndPop test case

Change-Id: Ie43772a4da2468133336fb3cc512b1adc4fe6929
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
21 months agoModify PushAndWaitAndPop test case 40/286940/1
Hwankyu Jhun [Tue, 17 Jan 2023 06:41:41 +0000 (06:41 +0000)]
Modify PushAndWaitAndPop test case

The previous implementation has a timing issue. This patch is to fix the issue.
The main thread calls WaitAndPop() method and the thread calls Push() method.

Change-Id: Id4b19b6fee1c31f2ebd8bed16dbc782161c3c8e5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
21 months agoModify data capacity of Parcel 69/285569/3
Hwankyu Jhun [Thu, 15 Dec 2022 00:19:46 +0000 (00:19 +0000)]
Modify data capacity of Parcel

This patch reduces the data capacity of Parcel to 8 bytes.

Change-Id: I38d89d11445dc58c778aeca9bc72d77e796f44f1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
21 months agoRelease version 0.13.0 91/286691/1 accepted/tizen/7.0/unified/20230203.164128 accepted/tizen/unified/20230113.091209
Hwankyu Jhun [Wed, 11 Jan 2023 23:18:53 +0000 (23:18 +0000)]
Release version 0.13.0

Changes:
 - Add SharedQueue library for appfw modules
 - Fix a bug
 - Add new methods to tizen_base::SharedQueue

Change-Id: I91787fdff45b798ae6ab735298a73accedac9829
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
21 months agoAdd new methods to tizen_base::SharedQueue 69/286669/2
Hwankyu Jhun [Wed, 11 Jan 2023 11:21:41 +0000 (11:21 +0000)]
Add new methods to tizen_base::SharedQueue

Adds:
 - TryAndPop()
 - WaitAndPopFor()

Change-Id: I4bdbdcd146340708d9409ad381585e8ff43a0cd3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
21 months agoFix a bug 71/286671/1
jh9216.park [Wed, 11 Jan 2023 11:55:36 +0000 (06:55 -0500)]
Fix a bug

- The error message should be released by sqlite3_free()

Change-Id: Ieca9bfb71cb9c0693d3cb8436d8c1f4c5686c5fd
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
21 months agoAdd SharedQueue library for appfw modules 99/286599/6
Hwankyu Jhun [Tue, 10 Jan 2023 10:08:08 +0000 (10:08 +0000)]
Add SharedQueue library for appfw modules

This patch adds the SharedQueue class for applying active object pattern.

Change-Id: I4f05d0ebc13fa4750d3bc7d1a4bc6752ddbcaec9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
21 months agoRelease version 0.12.7 85/286585/1 accepted/tizen/unified/20230111.174553
Changgyu Choi [Tue, 10 Jan 2023 08:21:25 +0000 (17:21 +0900)]
Release version 0.12.7

Changes:
 - Fix build error issue

Change-Id: I10c674b8de41170a7f6ac59b279de3c426ee2ffe
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
21 months agoFix build error issue 83/286583/1
Changgyu Choi [Tue, 10 Jan 2023 07:48:56 +0000 (16:48 +0900)]
Fix build error issue

Adds explicit casting to bool when checking value of the Result.

Change-Id: I6f2428379989bb9669ec6519f84bdb4154ce2b7f
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
21 months agoRelease version 0.12.6 98/286498/1 accepted/tizen/unified/20230110.164124
jh9216.park [Mon, 9 Jan 2023 04:24:10 +0000 (23:24 -0500)]
Release version 0.12.6

Changes:
 - Add Prepare() method
 - Add some methods
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
Change-Id: I0ac4e1983131e944cfb238b14d355423216bd2d7

21 months agoAdd some methods 26/286426/1
jh9216.park [Fri, 6 Jan 2023 00:15:18 +0000 (19:15 -0500)]
Add some methods

- Result.GetColumnCount() added
- Record.GetString() added
- AutoDbType.GetType() added
- Enhance exception handling

Change-Id: If471d192e0ff286c7fd1e77f831206000c6dd733
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
21 months agoAdd Prepare() method 36/286336/1
jh9216.park [Wed, 4 Jan 2023 06:31:18 +0000 (01:31 -0500)]
Add Prepare() method

- To reuse prepared the statement, this method was added

Change-Id: If56f2d6f2dd8ccde929887f59cda9c5f296a3d0c
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
21 months agoRelease version 0.12.5 27/286327/1 accepted/tizen/unified/20230105.154710
jh9216.park [Wed, 4 Jan 2023 04:01:21 +0000 (23:01 -0500)]
Release version 0.12.5

Changes:
 - Add API to get the raw handle of DB
 - Add overloading Bind() methods
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
Change-Id: Ib999e83532de1dc1deb4c9519f9a8cb2d454b7d7

21 months agoAdd overloading Bind() methods 24/286324/1
jh9216.park [Wed, 4 Jan 2023 03:10:20 +0000 (22:10 -0500)]
Add overloading Bind() methods

- To support 'Bind(nullptr)' expression, some overloaded methods are
added

Change-Id: I24b278390a13120e0b4f73dee285710aa2d79373
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
22 months agoAdd API to get the raw handle of DB 45/286145/2
jh9216.park [Thu, 29 Dec 2022 05:42:42 +0000 (00:42 -0500)]
Add API to get the raw handle of DB

- Because tizen-database does not support full set of sqlite3 API,
this method may be needed
- Make a method as 'const'

Change-Id: I1b8c3d05b298cf943b2fde07510a8cdbc70e9e03
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
22 months agoRelease version 0.12.4 86/286086/1 accepted/tizen/unified/20221228.170006
Changgyu Choi [Tue, 27 Dec 2022 09:57:42 +0000 (18:57 +0900)]
Release version 0.12.4

Changes:
 - Fix static analysis issues

Change-Id: I218fb342b1d88fc727c40694ace11bf31de8cd87
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
22 months agoFix static analysis issues 85/286085/1
Changgyu Choi [Tue, 27 Dec 2022 09:16:27 +0000 (18:16 +0900)]
Fix static analysis issues

Change-Id: Ifbe7aec3bfa0f14c28e90ad69c0bbefef2ef884c
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
22 months agoRelease version 0.12.3 30/285830/1 accepted/tizen/unified/20221222.170405
jh9216.park [Wed, 21 Dec 2022 04:12:57 +0000 (23:12 -0500)]
Release version 0.12.3

Changes:
 - Change type conversion operators in class 'Result'
 - Support 64bit integer in tizen-database
 - Fix build errors for aarch64
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
Change-Id: I9b5004fa2678c9d5ddb2f70ae76e8572724f9284

22 months agoFix build errors for aarch64 29/285829/1
jh9216.park [Wed, 21 Dec 2022 02:48:24 +0000 (21:48 -0500)]
Fix build errors for aarch64

Change-Id: Iee0738570bfd95f6c7e8715e48ca3fe9a7672aea
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
22 months agoRelease version 0.12.2 81/285781/1
jh9216.park [Tue, 20 Dec 2022 05:01:59 +0000 (00:01 -0500)]
Release version 0.12.2

Changes:
 - Change type conversion operators in class 'Result'
 - Support 64bit integer in tizen-database
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
Change-Id: Ic749da3a8c70b1c83921a33972e314c25e2c2bb2

22 months agoSupport 64bit integer in tizen-database 96/285596/3
jh9216.park [Thu, 15 Dec 2022 06:25:12 +0000 (01:25 -0500)]
Support 64bit integer in tizen-database

- Bind method for 'int64_t' type was added in class 'Sql'

Change-Id: I7bbafd18505cbe2594296edd754e264c94074ea6
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
22 months agoChange type conversion operators in class 'Result' 70/285570/1
jh9216.park [Thu, 15 Dec 2022 00:38:27 +0000 (19:38 -0500)]
Change type conversion operators in class 'Result'

- Operator 'bool' is useful operator to check the result. So I'd like to
use it easily.
- Behavior changes:
  - Change type 'bool' conversion operator from explicit to implicit.
  - Change type 'const char*' conversion operator from implicit to
explicit.

Change-Id: I3dc5ab3be7a080e2b816a5e94eed0f68854bcb85
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
22 months agoRelease version 0.12.1 12/285512/1 accepted/tizen/unified/20221219.024705
Inkyun Kil [Wed, 14 Dec 2022 02:58:30 +0000 (11:58 +0900)]
Release version 0.12.1

changes:
- Fix a bug

Change-Id: Ic085ab23117078d8a67a6b3c2392c92938a6fb93
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
22 months agoFix a bug 80/285480/1
jh9216.park [Tue, 13 Dec 2022 10:15:29 +0000 (05:15 -0500)]
Fix a bug

- In case of SQLITE_DONE, class 'Result' should be considered to handle
empty selection

Change-Id: Id58595a9ab464d998221286d7e58fca36f2960e4
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
22 months agoRelease version 0.12.0 46/285446/1 accepted/tizen/unified/20221213.123158 accepted/tizen/unified/20221214.053553
Hwankyu Jhun [Tue, 13 Dec 2022 03:11:55 +0000 (03:11 +0000)]
Release version 0.12.0

Changes:
 - Add OneStepExec() method to tizen_base::Database

Change-Id: I6e275c07dd0d911921c879d241695f6227f92e5f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
22 months agoAdd OneStepExec() method to tizen_base::Database 43/285443/2
Hwankyu Jhun [Tue, 13 Dec 2022 02:50:50 +0000 (02:50 +0000)]
Add OneStepExec() method to tizen_base::Database

To support calling the sqlite3_exec(), the method is added.

Change-Id: I9e8023690302f4c99e13f180808d109b94708bee
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
22 months agoRelease version 0.11.0 53/285253/1 accepted/tizen/unified/20221209.124050
Inkyun Kil [Thu, 8 Dec 2022 06:35:52 +0000 (15:35 +0900)]
Release version 0.11.0

changes:
- Add sub package 'tizen-database
- Implement null-type binding
- Add a method to reuse prepared statements
- Add some methods in class 'Sql'
- Add class 'DbException'

Change-Id: I89d8106ef5e142ed59a7d6a3bffea487dd5645f1
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
22 months agoAdd class 'DbException' 46/285146/4
jh9216.park [Wed, 7 Dec 2022 01:01:05 +0000 (20:01 -0500)]
Add class 'DbException'

- It is a std::runtime_error but has some additional methods
- The class 'Database' will use it to throw exceptions

Change-Id: Icf01850e907e3336545f4c4220d6cccb0a3560f2
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
22 months agoAdd some methods in class 'Sql' 96/285096/3
jh9216.park [Tue, 6 Dec 2022 05:17:23 +0000 (00:17 -0500)]
Add some methods in class 'Sql'

- Added 'Sql& SetEmptyStringAsNull(bool as_null);'
- Added 'Sql& SetEmptyVectorAsNull(bool as_null);'

Change-Id: I634dc658a5e7e11a2eac687c0600facf3e6b1a1c
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
22 months agoAdd a method to reuse prepared statements 68/285068/2
jh9216.park [Tue, 6 Dec 2022 00:26:58 +0000 (19:26 -0500)]
Add a method to reuse prepared statements

Change-Id: I2915cc004ff9a25129c95d9abcda0c75743ab14e
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
22 months agoImplement null-type binding 57/285057/3
jh9216.park [Mon, 5 Dec 2022 10:53:16 +0000 (05:53 -0500)]
Implement null-type binding

Change-Id: Idd700a3000ce130b3bd01ab9580507f3b7ca6d2f
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
22 months agoAdd sub package 'tizen-database' 42/285042/9
jh9216.park [Mon, 5 Dec 2022 05:44:06 +0000 (00:44 -0500)]
Add sub package 'tizen-database'

- This package provides C++ wrapper API for sqlite3

Change-Id: I05fce9e6deb4922a9dd7aa45f6e3771f80f6cb1b
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
23 months agoRelease version 0.10.2 74/284574/1 accepted/tizen/7.0/unified/20221122.014846 accepted/tizen/unified/20221121.163720
Changgyu Choi [Mon, 21 Nov 2022 01:33:02 +0000 (10:33 +0900)]
Release version 0.10.2

Changes:
 - Fix wrong bundle_foreach implementation

Change-Id: I3f3f2d6f2d3c36ccd660e6de915f49ee24614540
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
23 months agoFix wrong bundle_foreach implementation 72/284572/1
Changgyu Choi [Mon, 21 Nov 2022 01:14:40 +0000 (10:14 +0900)]
Fix wrong bundle_foreach implementation

if data is removed through bundle_foreach(),
A crash may occur.
This patch resolves this by passing the iterator to the next before calling the callback using the iterator.

Change-Id: I3f04418f47bc17247e857362b462e616c2136fa0
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoRelease version 0.10.1 82/283082/1 accepted/tizen/unified/20221104.082317
Changgyu Choi [Tue, 18 Oct 2022 02:24:47 +0000 (11:24 +0900)]
Release version 0.10.1

Changes:
 - Fix static analysis issues

Change-Id: I2706bd870c425ef023c3d42234279876a6756846
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoFix static analysis issues 33/283033/4
Changgyu Choi [Mon, 17 Oct 2022 04:25:14 +0000 (13:25 +0900)]
Fix static analysis issues

Change-Id: Ica815a67211bee0d76bb35f64e15b1cb84124d2c
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoRelease version 0.10.0 17/282117/2 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.063043 accepted/tizen/7.0/unified/hotfix/20221116.105126 accepted/tizen/unified/20220928.144429 tizen_7.0_m2_release
Hwankyu Jhun [Tue, 27 Sep 2022 06:54:18 +0000 (06:54 +0000)]
Release version 0.10.0

Changes:
 - Use malloc instead of std::vector

Change-Id: I16667ccbeee7ddd7cd17a4d038e39ae0223a4368
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoUse malloc instead of std::vector 79/281779/25
Hwankyu Jhun [Thu, 22 Sep 2022 01:36:53 +0000 (01:36 +0000)]
Use malloc instead of std::vector

To improve the performance of the parcel creation, the data_ variable of
the parcel implementation is changed to uint8_t*.

Adds:
 - Parcel.GetData()
 - Parcel.GetDataSize()
 - Parcel.GetDataCapacity()
 - Parcel.SetDataCapacity()
 - Parcel.Detach()
 - Parcel.GetReader()
 - Parcel.ToRaw()
 - parcel_get_data_capacity()
 - parcel_set_data_capacity()

Removes:
 - Parcel.GetRaw()

Change-Id: Ia88815746d646ce089de802d89017c96cbc6b30d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.9.12 18/281918/1 accepted/tizen/unified/20220927.132320
Hwankyu Jhun [Fri, 23 Sep 2022 06:53:12 +0000 (06:53 +0000)]
Release version 0.9.12

Changes:
 - Fix static analysis issues

Change-Id: Idfe1cb32337553bf07c87cda5aeccb3797c043f9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix static analysis issues 15/281915/1
Hwankyu Jhun [Fri, 23 Sep 2022 06:06:51 +0000 (06:06 +0000)]
Fix static analysis issues

The following issues are fixed:
 - INEFFECTIVE_MOVE
 - FORWARD_NULL
 - ODR_VIOLATION

Change-Id: I5a7fcdf7b5e0b5b3e17614a09aaa87ac83be6d80
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.9.11 12/281812/1 accepted/tizen/unified/20220923.125145
Hwankyu Jhun [Thu, 22 Sep 2022 05:41:57 +0000 (05:41 +0000)]
Release version 0.9.11

Changes:
 - Use std::vector::insert() instead of std::copy()
 - Use insert() instead of std::copy()

Change-Id: I823896cef387ad53e23994ecd4ef397598c7d885
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoUse insert() instead of std::copy() 98/281798/2
Hwankyu Jhun [Thu, 22 Sep 2022 04:30:23 +0000 (04:30 +0000)]
Use insert() instead of std::copy()

To improve the performance of the bundle instance creation, we use the insert().

Change-Id: Iec2ddc05a1583a11612c40d6ef6d12a125ffabd8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoUse std::vector::insert() instead of std::copy() 86/281786/1
Hwankyu Jhun [Thu, 22 Sep 2022 02:28:12 +0000 (02:28 +0000)]
Use std::vector::insert() instead of std::copy()

To improve the performance of the parcel instance creation, the parcel
uses std::vector::insert().

Change-Id: Ia5c293373b57a2f75629b4a681458535af29cf6c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.9.10 60/277860/1 accepted/tizen/unified/20220728.131839 submit/tizen/20220714.070033 submit/tizen/20220724.222434 submit/tizen/20220725.232057
Hwankyu Jhun [Thu, 14 Jul 2022 06:41:03 +0000 (15:41 +0900)]
Release version 0.9.10

Changes:
 - Fix run-unittest.sh script

Change-Id: I2213669829ecd264573ccd164c8e504a718b70bc
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix run-unittest.sh script 43/277843/1
Hwankyu Jhun [Thu, 14 Jul 2022 05:20:38 +0000 (14:20 +0900)]
Fix run-unittest.sh script

For code coverage measurement, the permission of directories and files should be
changed for applications.
The script sets the smack label as "System::Run" to files.

Change-Id: I46218419b0c383c1b1a9ddb4c60c5e4d94f7668b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.9.9 37/276737/1 accepted/tizen/unified/20220703.214107 submit/tizen/20220623.221116 submit/tizen/20220630.234027
Hwankyu Jhun [Thu, 23 Jun 2022 22:44:01 +0000 (07:44 +0900)]
Release version 0.9.9

Changes:
 - Use std::unordered_map instead of std::map

Change-Id: I90e60e45975f13c65c68616e9bace81c8d604d0d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoUse std::unordered_map instead of std::map 36/276736/1
Hwankyu Jhun [Thu, 23 Jun 2022 22:34:33 +0000 (07:34 +0900)]
Use std::unordered_map instead of std::map

We usally use std::map as like hash table. Sorting key/value is not needed.

Change-Id: Id2599c6de939dcc216d3511419429b1b84aa297e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.9.8 02/275502/1 accepted/tizen/unified/20220530.140738 submit/tizen/20220526.014753
Hwankyu Jhun [Thu, 26 May 2022 01:42:47 +0000 (10:42 +0900)]
Release version 0.9.8

Changes:
 - Fix spec file for coverage measurement

Change-Id: Ic91106a52c5f4e5d4140d55b59d1a94d5f0607e7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix spec file for coverage measurement 81/275481/1
Hwankyu Jhun [Wed, 25 May 2022 22:43:06 +0000 (07:43 +0900)]
Fix spec file for coverage measurement

To measure code coverages automatically, a run-unittest.sh is needed.

Change-Id: I2882a61191a206b3c4fd2f37837f8d7e9ba4f5c9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.9.7 91/271191/1 accepted/tizen/unified/20220221.080310 submit/tizen/20220216.231429
Hwankyu Jhun [Wed, 16 Feb 2022 22:39:15 +0000 (07:39 +0900)]
Release version 0.9.7

Changes:
 - Fix bundle implementation
 - Remove unit tests

Change-Id: Ia656d42576bde9c5cce73e07f711cc566dbff7a3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRemove unit tests 81/271181/1
Hwankyu Jhun [Wed, 16 Feb 2022 12:28:46 +0000 (21:28 +0900)]
Remove unit tests

In the OBS, the bundle_unittests has killed. Because, the bundle_add_byte_array_N
is not finished. Two test cases call the bundle_add_byte_array function with
large length. In 32-bit architecture, the std::vector throws std::length_error
exception. In 64-bit architecture, the std::vector throws std::bad_alloc exception.
We expects the std::bad_alloc exception when the unit tests calls
bundle_add_byte_array function with large size in 64-bit architurecture in the OBS.
Unfotunately, it's not finished. To avoid the issue, this patch removes two test cases.

Change-Id: I5eb188e6cda9ea0f3cb08c5317b797db00fdce4a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix bundle implementation 43/271143/1
Hwankyu Jhun [Wed, 16 Feb 2022 01:18:38 +0000 (10:18 +0900)]
Fix bundle implementation

- Add const keyword to Exception&
- Use std::move()

Change-Id: Ia58d1ae51fee24b69a48f30af287d49f7e717e60
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>