Sangyoon Jang [Wed, 3 Nov 2021 08:43:08 +0000 (17:43 +0900)]
Workaround for pkg_initdb failure
The pkg_initdb initialize its package db only, so installing theme may
failed because of unique key constraint of theme db. Try update instead
of insert in this case.
Change-Id: I259a6c2510d699959924a609e7a90d8c422aac87
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Fri, 11 Jun 2021 04:39:26 +0000 (13:39 +0900)]
Release version 1.0.10
Changes:
- Update default theme : Add NUI xaml resources
Change-Id: Ia810582102f445f872f5d9e4cd112143705e42f3
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Jiyun Yang [Tue, 1 Jun 2021 08:57:08 +0000 (17:57 +0900)]
Update default theme : Add NUI xaml resources
Change-Id: I6d7efd135ee5b243a816136ff099de967d9e55eb
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
Sangyoon Jang [Fri, 28 May 2021 08:15:22 +0000 (17:15 +0900)]
Release version 1.0.9
Changes:
- Fix install location of shared/res
Change-Id: I83d3a2f3b15100f09b826ad0bdeb464291195d19
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Jiyun Yang [Fri, 28 May 2021 08:11:26 +0000 (17:11 +0900)]
Fix install location of shared/res
Change-Id: I7a57530b4eb1f12b7d49298424e26f71fdc68b70
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
SukHyung, Kang [Tue, 11 May 2021 06:31:56 +0000 (15:31 +0900)]
Release version 1.0.8
Changes:
- Fix build error after gtest is upgraded
Change-Id: I3ae5b1b9cb7ce6583b2c7e5a522a5b8968b16e11
Signed-off-by: SukHyung, Kang <shine.kang@samsung.com>
SukHyung Kang [Tue, 11 May 2021 06:30:24 +0000 (06:30 +0000)]
Merge "Fix build error after gtest is upgraded" into tizen
SukHyung, Kang [Tue, 11 May 2021 04:11:40 +0000 (13:11 +0900)]
Fix build error after gtest is upgraded
Change-Id: I1669bc91eadcaf008bc86629c93784f902154f98
Signed-off-by: SukHyung, Kang <shine.kang@samsung.com>
Sangyoon Jang [Tue, 11 May 2021 03:01:32 +0000 (12:01 +0900)]
Release version 1.0.7
Changes:
- Fix title of default themes
- Fix autoset during mic process
- Set db file ownership
Change-Id: Idece3aa37094741881faceea202210b37cf79af6
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Fri, 7 May 2021 05:35:45 +0000 (14:35 +0900)]
Set db file ownership
Db file is created during mic process as root:root.
We need to change ownership app_fw:app_fw to write db file.
Change-Id: I56810094104908e839ffe1d5544069e88afede35
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Tue, 4 May 2021 07:32:22 +0000 (16:32 +0900)]
Fix autoset during mic process
During image creation, theme provider is not running, so plugin should
set current theme directly.
Change-Id: I95012e7d198c890517567dd89af1bbfe2f52fb03
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Tue, 4 May 2021 04:59:53 +0000 (13:59 +0900)]
Fix title of default themes
Change-Id: I53820f271e7812dada21da8c2d049830ce4ab6fa
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Mon, 26 Apr 2021 05:33:13 +0000 (14:33 +0900)]
Release version 1.0.6
Changes:
- Commit directly when running as root
Change-Id: I16aa53892aeb3e850f371bc3f266d4f9755b234e
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Tue, 20 Apr 2021 09:24:43 +0000 (18:24 +0900)]
Commit directly when running as root
During image creation, theme provider is not running, so plugin should
commit directly.
Change-Id: Ieaa2df7f54607526e50a07064f37d6ccda08e513
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Wed, 14 Apr 2021 08:57:08 +0000 (17:57 +0900)]
Release version 1.0.5
Changes:
- Change default theme pkgid to org.tizen.default-theme
- Fix default theme
Change-Id: Id8721e2d5c329566507dddc67f482537a63eb352
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Thu, 8 Apr 2021 08:11:04 +0000 (17:11 +0900)]
Fix default theme
Add themes(org.tizen.default-light-theme, org.tizen.default-dark-theme) for
preloaded package. The light theme will be a default theme.
Change-Id: Ic2558781ff9058d61235ea1371ebe36ca72192d5
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Wed, 31 Mar 2021 06:32:15 +0000 (15:32 +0900)]
Change default theme pkgid to org.tizen.default-theme
Change-Id: I1b49ec11b29a0c40290de8a744f9699e323e8418
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Mon, 22 Mar 2021 03:50:51 +0000 (12:50 +0900)]
Release version 1.0.4
Changes:
- Fix crash while running unit-test
Change-Id: I6b33827d4ff713fce6dc648d5bcf947d1f803f5c
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Fri, 19 Mar 2021 09:11:36 +0000 (18:11 +0900)]
Fix crash while running unit-test
Change-Id: If7535826e08024462c48968e217c7387081549ea
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Fri, 19 Mar 2021 06:34:02 +0000 (15:34 +0900)]
Release version 1.0.3
Changes:
- Add default theme package template
- Fix %preun %postun
- Add testcase of getting path for not exist key
- Fix ThemeInfo::GetPath()
Change-Id: I0533c6cc3b6c5387e1c478ae12b5e63db723a8a8
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Wed, 17 Mar 2021 04:57:55 +0000 (13:57 +0900)]
Fix ThemeInfo::GetPath()
- Fix getting path when using auto generated file key.
- Fix crash when default theme is not installed.
Change-Id: I2ee0b8e25a0751097bdc36f0d70d4ae008fad6a7
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Tue, 16 Mar 2021 10:46:19 +0000 (19:46 +0900)]
Add testcase of getting path for not exist key
Change-Id: I96702b0e716a23ee8f3c9ff34910b7c682500287
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Tue, 16 Mar 2021 10:44:26 +0000 (19:44 +0900)]
Fix %preun %postun
Run %preun %postun when uninstall only.
Change-Id: Iedac2ff0b927b659dcb4ffc59d14972124a04e79
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Thu, 25 Feb 2021 05:54:25 +0000 (14:54 +0900)]
Add default theme package template
- pkgid: org.tizen.defaulttheme
- type: preloaded rpm (tpk)
Change-Id: Ic7c6987115d8035b4e8c05cd3b78930ab3bd2ec4
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Mon, 8 Feb 2021 04:15:48 +0000 (13:15 +0900)]
Release version 1.0.2
Changes:
- Fix mandatory keys
- Add new error codes
- Add theme_is_key_exist()
- Refresh systemd services after update / uninstall
Change-Id: I31d88c8aad3e41e237b8324549303d1d468d179c
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Wed, 3 Feb 2021 11:23:29 +0000 (20:23 +0900)]
Refresh systemd services after update / uninstall
Change-Id: I27f75e16c73540e04b5e12dfaa42af7f3fe3187c
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Tue, 2 Feb 2021 08:00:00 +0000 (17:00 +0900)]
Add theme_is_key_exist()
Change-Id: Idd9157da297f9dc285247c7d07a71607042384f0
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Tue, 2 Feb 2021 07:13:42 +0000 (16:13 +0900)]
Add new error codes
- THEME_MANAGER_ERROR_NO_SUCH_THEME
- THEME_MANAGER_ERROR_KEY_NOT_AVAILABLE
Change-Id: Ief2dd7964d1a25cacff87d4a429c90f844e9f2db
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Tue, 22 Dec 2020 01:06:51 +0000 (10:06 +0900)]
Fix mandatory keys
Our initial design has some keys under "header" key.
title -> hedaer/title
description -> header/description
resolution -> header/resolution
Change-Id: I3c598acc7390166a483f25e854a9edf014e2952a
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Ilho Kim [Fri, 11 Sep 2020 08:14:42 +0000 (17:14 +0900)]
Release version 1.0.1
Changes:
- Install systemd service file directly
- Add negative unit test
- Add unit test for metadata plugin
Change-Id: I06e3041820af344a6d083752cb2bbddd4eaf7bb5
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Thu, 10 Sep 2020 09:04:22 +0000 (18:04 +0900)]
Add unit test for metadata plugin
Change-Id: I447a7d17d1f39fab7575bf50183b056feae71073
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Thu, 10 Sep 2020 10:00:49 +0000 (19:00 +0900)]
Add negative unit test
Change-Id: I1440ee5773b2872365c9d4a934e1c6344a1b941a
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Sangyoon Jang [Thu, 10 Sep 2020 10:57:40 +0000 (19:57 +0900)]
Install systemd service file directly
Change-Id: If656c2e286600c64cf590d139acd2cbc8e32cae2
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Wed, 2 Sep 2020 03:23:42 +0000 (12:23 +0900)]
Release version 1.0.0
Changes:
- Fix crash when getting not existing theme info
- Fix file key generation
- Fix merging default theme
- Use move bundle when creating theme object
- Adjust theme json's spec
- Check json has the mandatory keys
- Implement missing functions for plugin parser
Change-Id: I5166c05b72fbf1368e7e7223e629a49430f5156d
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Thu, 18 Jun 2020 05:43:36 +0000 (14:43 +0900)]
Implement missing functions for plugin parser
Change-Id: Idfe79cdf29c016465b0fd269bfc778ed3e09d601
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Ilho Kim [Mon, 24 Aug 2020 05:42:30 +0000 (14:42 +0900)]
Check json has the mandatory keys
- Mandatory keys : version,tool_version,title,description,resolution,preview
Change-Id: I1a2f9655150d74f8f172ade0ffc44588b45895ec
Ilho Kim [Wed, 19 Aug 2020 04:23:14 +0000 (13:23 +0900)]
Adjust theme json's spec
- Json maximum depth is 50
- The length of each key can't exceed 128
- The length of string value cannot exceed 1024
- Empty string value is not allowed, instead use null
Change-Id: Iebe98b52f7541e5224fb1e27d404bd56c1db6684
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Sangyoon Jang [Fri, 31 Jul 2020 07:32:43 +0000 (16:32 +0900)]
Use move bundle when creating theme object
bundle may contain large data, we need to re-use this bundle for memory
optimization.
Change-Id: I91bd32d3c3943e4e76deca606cb4ca1f4f2276b6
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Thu, 13 Aug 2020 05:43:30 +0000 (14:43 +0900)]
Fix merging default theme
Merging default theme should be done by proxy, because all theme
info get by proxy.
Change-Id: Ie8ca33591065f44921f0255f9d010523403971fc
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Mon, 10 Aug 2020 07:11:27 +0000 (16:11 +0900)]
Fix file key generation
- Adding directory only for auto file key generation.
- Adding path as relative path of pkg root directory.
Change-Id: I95be37d980efdf6f76fa25133a563327b7ec0f1b
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Wed, 12 Aug 2020 08:44:49 +0000 (17:44 +0900)]
Fix crash when getting not existing theme info
Change-Id: I095af8c0849827c7ab0e8a7127213e59086d90d1
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Ilho Kim [Fri, 14 Aug 2020 08:44:40 +0000 (17:44 +0900)]
Release version 0.0.4
Changes:
- Fix the empty json array case
Change-Id: Ifedb07d06cb8cae24a2314d07a3f0f904d26e444
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Fri, 14 Aug 2020 08:39:06 +0000 (17:39 +0900)]
Fix the empty json array case
The routine to check the empty array must be performed first
Change-Id: I0013fae4c1e4e99ff7ac54881359de2cd68e663b
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Sangyoon Jang [Fri, 14 Aug 2020 07:28:46 +0000 (16:28 +0900)]
Release version 0.0.3
Changes:
- Set timeout of dbus method call
- Add some log when install, update, uninstall theme
- Add -fPIC option
- Remove stdout log
- Fix unittests
- Improve coverage
- Fix coding rule
- Fix static analysis issues
Change-Id: Ia04c2ec9fac2810c5f4b96c9d89822fc67938371
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Thu, 13 Aug 2020 08:33:25 +0000 (17:33 +0900)]
Fix static analysis issues
Change-Id: I54da333cc4fcf38b94e39dfb3dace49890a24076
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Wed, 12 Aug 2020 06:34:54 +0000 (06:34 +0000)]
Merge "Add -fPIC option" into tizen
Junghyun Yeon [Tue, 11 Aug 2020 07:00:04 +0000 (16:00 +0900)]
Fix coding rule
Change-Id: I1ef58c53c3e1a57ec8496ca9f8fcecbf754577c1
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Inkyun Kil [Mon, 10 Aug 2020 01:00:49 +0000 (10:00 +0900)]
Improve coverage
- Add unittest for get_path_array
Change-Id: I6fab8943fbfd8201a3467d66a5fb9d3b02e95908
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
Junghoon Park [Tue, 11 Aug 2020 02:07:08 +0000 (02:07 +0000)]
Merge "Fix unittests" into tizen
Junghoon Park [Tue, 11 Aug 2020 01:48:13 +0000 (10:48 +0900)]
Fix unittests
- Fix static analysis issue
- Fix wrong implementation
Change-Id: I12b023e5637328822022286f4e3746de0dd03ebf
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
Inkyun Kil [Fri, 7 Aug 2020 01:41:17 +0000 (10:41 +0900)]
Remove stdout log
Change-Id: I7ced935d6d0cf4d07b2c494237d4ce36af48547f
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
Sangyoon Jang [Mon, 10 Aug 2020 07:12:52 +0000 (16:12 +0900)]
Add -fPIC option
Change-Id: Ia9b72df3cfcb4b3296a8d7bf9eed7ace5392b965
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Thu, 6 Aug 2020 10:28:33 +0000 (19:28 +0900)]
Add some log when install, update, uninstall theme
Change-Id: I10bccb53e86bdb46a362210e88e755670f8c9631
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Thu, 6 Aug 2020 08:29:00 +0000 (17:29 +0900)]
Set timeout of dbus method call
Change-Id: I6b295d6ce80330db778aeceecfbb03025a50c4a7
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Junghyun Yeon [Mon, 3 Aug 2020 07:15:25 +0000 (16:15 +0900)]
Release version 0.0.2
Changes:
- Improve coverage for theme_info
- Fix the constants of bundle key
- Fix RequestBroker
- Redesign theme event callback
- Improve coverage for theme_info_loader
- Fix RequestBroker::RegisterRequestFilter()
- Fix RequestBroker
- Fix ThemeInfoLoader::AddEvent
- Fix registering request handler
- Send signal when current theme changed
- Add default theme feature
- Remove unused parameter
- Load default theme when creating proxy object
- Store theme info as a raw bundle at db
- Implement default theme overlay
- Fix SelectionRequestHandler
- Add DbManager::SelectCurrent() method
- Fix to lazy load of default and current theme info
- Set the default theme as current theme when the current theme uninstalled
- Check the bundle is valid before create ThemeInfo object
- Fix theme_setting table
- Fix sqlite_connection.h, sqlite_statement.h
- Implement auto_set feature
- Fix doxygen of theme.h
- Parse all json's values
- Upgrade unit tests
- Change type for theme_loader_event_handler
- Add APIs getting path value
- Merge "Add APIs getting path value" into tizen
- Fix static analysis issues
- Fix theme parser test
- Implement auto_file_key feature
- Change the key that ThemeParser parses to start with '/'
- Add some error handlings
- Fix unit test failure
- Add rpm packages for capi library
- Fix auto file key generation
Change-Id: I290ed0434a36c7c981d252f4229723d73dba4de8
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Thu, 30 Jul 2020 10:19:46 +0000 (19:19 +0900)]
Fix auto file key generation
Iterates shared/res directory and find all resource files to add
auto-generated file key.
Change-Id: Iaacc4cafc3dab37a44a6856e7786667024cba038
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Mon, 27 Jul 2020 06:02:35 +0000 (15:02 +0900)]
Add rpm packages for capi library
Change-Id: Ie4c25ca22706651badb47632dcc129ec0d945963
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Junghyun Yeon [Thu, 30 Jul 2020 11:17:35 +0000 (20:17 +0900)]
Fix unit test failure
Add mock and make bundle not empty to pass unit test
Change-Id: I4e97f9f5c6a5305627dbb9866705723260257df7
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Mon, 27 Jul 2020 11:34:05 +0000 (20:34 +0900)]
Add some error handlings
Change-Id: I498accc877b3fcf272fcb994b7b82b9dd3552cd0
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Ilho Kim [Tue, 14 Jul 2020 06:05:38 +0000 (15:05 +0900)]
Change the key that ThemeParser parses to start with '/'
Change-Id: Iad13a2f0ca0f2c4075b10baca3485acb7a4a2ea4
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Sangyoon Jang [Thu, 2 Jul 2020 08:25:13 +0000 (17:25 +0900)]
Implement auto_file_key feature
Change-Id: I5bb4ba4c4e704af4f4476c07a69f7825c8f28d0d
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Tue, 14 Jul 2020 05:44:03 +0000 (14:44 +0900)]
Fix theme parser test
A package can have one theme.
Change-Id: I230585495f396d40e82d1fe2aec2b25d14626415
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Junghyun Yeon [Tue, 14 Jul 2020 01:52:56 +0000 (10:52 +0900)]
Fix static analysis issues
Change-Id: I901039455cd6477afca8363835e2b1f175b533da
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Mon, 13 Jul 2020 08:29:43 +0000 (08:29 +0000)]
Merge "Add APIs getting path value" into tizen
Sangyoon Jang [Thu, 11 Jun 2020 07:33:13 +0000 (16:33 +0900)]
Add APIs getting path value
Client will use theme_get_path()/theme_get_path_array() instead of
theme_get_string()/theme_get_string_array() to getting path such as
image file path.
Change-Id: I089e554d5cbf5661acf75cfb232ea8a183f70c0f
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Inkyun Kil [Fri, 3 Jul 2020 05:59:41 +0000 (14:59 +0900)]
Change type for theme_loader_event_handler
Change-Id: I86946394350dc7690d209b442f8113625d9922b0
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
Junghyun Yeon [Mon, 6 Jul 2020 07:26:41 +0000 (16:26 +0900)]
Upgrade unit tests
- Add some negative testcases for coverage.
- Fix testcase to use right API.
Change-Id: I1b02069eea1cb1cf4c1675926018322ed33d4253
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Wed, 1 Jul 2020 01:20:53 +0000 (10:20 +0900)]
Parse all json's values
{
"A" : {
"A" : "a",
"B" : [
"a",
"b",
"c"
],
"C" : [
{
"D" : "d"
},
{
"E" : "e"
}
]
}
}
Above json file is parsed and saved to bundle like that
Key Value
"A/A" "a"
"A/B" {"a", "b", "c"}
"A/C/0/D" "d"
"A/C/1/E" "e"
Change-Id: Ica907252ba3397898b1e22a9ec8afbe92b81cf05
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Sangyoon Jang [Thu, 2 Jul 2020 08:34:01 +0000 (17:34 +0900)]
Fix doxygen of theme.h
Change-Id: I32e96a7cf483b10c31b0e779067305c2f3a2a2a1
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Wed, 1 Jul 2020 08:01:36 +0000 (17:01 +0900)]
Implement auto_set feature
When a theme package set auto_set in metadata, theme manager will set
that theme automatically after installation.
auto_set will only work when the package is signed as platform privilege level.
Change-Id: I1cc6aad1fc627d97798e97037b260ae10635ba2e
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Wed, 1 Jul 2020 11:12:10 +0000 (20:12 +0900)]
Fix sqlite_connection.h, sqlite_statement.h
Remove unused header, friend class, add explicit keyword at constructor.
Change-Id: I8979902b2275a7de9882468613da30caf255f38e
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Wed, 1 Jul 2020 10:00:06 +0000 (19:00 +0900)]
Fix theme_setting table
Make current as a foreign key.
Change-Id: I1856dcba990eca2afc41f3ff6441a6aa2ce93f44
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Wed, 1 Jul 2020 08:55:35 +0000 (17:55 +0900)]
Check the bundle is valid before create ThemeInfo object
Change-Id: I5297ba0a4102496d5a881af34169bc46a512c4a0
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Wed, 1 Jul 2020 08:41:07 +0000 (17:41 +0900)]
Set the default theme as current theme when the current theme uninstalled
Change-Id: I9c644a059ff5b4d11b17fddf8eb7f693406bbec5
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Tue, 30 Jun 2020 11:27:51 +0000 (20:27 +0900)]
Fix to lazy load of default and current theme info
Change-Id: I5ec43ab17a7d06568e5dc1d9bc24e84c8364a28f
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Tue, 30 Jun 2020 11:14:34 +0000 (20:14 +0900)]
Add DbManager::SelectCurrent() method
Change-Id: Ic61c7eaf6690f2897654bb2fab6254d423edfc18
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Tue, 30 Jun 2020 11:13:30 +0000 (20:13 +0900)]
Fix SelectionRequestHandler
When requested GET_ID command with empty id, return current theme info.
Change-Id: If479951e604f73ec5a2fc4c18d5e91cc881f9c9d
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Mon, 29 Jun 2020 11:04:08 +0000 (20:04 +0900)]
Implement default theme overlay
When getting theme info, overlay upon default theme info.
Change-Id: I2899023bcd8e9331882a678a822954597d9fa6a8
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Mon, 29 Jun 2020 10:46:33 +0000 (19:46 +0900)]
Store theme info as a raw bundle at db
Change-Id: I39a8eeb4d5ef48ea84f69fe58f0af94de08cefe9
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Mon, 29 Jun 2020 08:14:59 +0000 (17:14 +0900)]
Load default theme when creating proxy object
Change-Id: If0b1fd022ed6b3fa72c354c972ed288cd6b2ad2f
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Mon, 29 Jun 2020 07:48:55 +0000 (16:48 +0900)]
Remove unused parameter
Remove unused parameter of DbManager::Insert, DbManager::Update.
Change-Id: Ib218d5ad36e0f047530a525f29d142b987553047
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Fri, 26 Jun 2020 07:06:37 +0000 (16:06 +0900)]
Add default theme feature
Change-Id: Ib1c2efe434283ab2f28883e0f1b2756399b1e93b
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Thu, 25 Jun 2020 11:26:48 +0000 (20:26 +0900)]
Send signal when current theme changed
Send serialized theme which is changed theme when current theme changed.
Add test for theme changed event.
Change-Id: I5bb068445cad8cfb7f7fd7fe8bf488aebd9af43a
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Fri, 26 Jun 2020 09:37:09 +0000 (18:37 +0900)]
Fix registering request handler
Change-Id: I4c50f6374d1dcde2e105ac7369777e477b796978
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Thu, 25 Jun 2020 11:13:21 +0000 (20:13 +0900)]
Fix ThemeInfoLoader::AddEvent
Subscribe for listening dbus signal.
Change-Id: I32c6344640c9c7a135021e1ae66709c471db245c
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Thu, 25 Jun 2020 11:05:42 +0000 (20:05 +0900)]
Fix RequestBroker
Check if already subscribed when subscribed.
Add Unsubscribe method.
Change-Id: Ia0674b35eefb79e060f684f74d7a15177d77ea41
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Thu, 25 Jun 2020 06:15:49 +0000 (15:15 +0900)]
Fix RequestBroker::RegisterRequestFilter()
Use shared_ptr.
Change-Id: Ia99af79fcaf151ac6a82fc7e944faae6bbbd52a3
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Inkyun Kil [Wed, 24 Jun 2020 05:03:00 +0000 (14:03 +0900)]
Improve coverage for theme_info_loader
Change-Id: I689413e5992a733e0d0a9ffdb5648e01fa5ab67b
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
Sangyoon Jang [Wed, 24 Jun 2020 04:28:35 +0000 (13:28 +0900)]
Redesign theme event callback
Remove unloaded callback, rename loaded callback to changed callback.
When current theme changed, the changed callback will be invoked.
Change-Id: Ib528b63bdcae7a161e6bb9ef36130fe9f5d22605
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Tue, 23 Jun 2020 08:04:27 +0000 (17:04 +0900)]
Fix RequestBroker
Use non-static method, using lambda for c callback.
Change-Id: I91d5efc48fd9674e79e854752caabfc0d608bff0
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Tue, 23 Jun 2020 05:13:16 +0000 (14:13 +0900)]
Fix the constants of bundle key
We don't need to add command at bundle, because it is already passed by
dbus message.
Use constants as extern, instead of macro.
Change-Id: I7a4534af84c7ec244f7749c824b4c3599a1674f7
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Inkyun Kil [Tue, 23 Jun 2020 07:31:55 +0000 (16:31 +0900)]
Improve coverage for theme_info
Change-Id: Ice576c3ee77052af4a4b0e02751cd31e2becb797
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
Ilho Kim [Wed, 10 Jun 2020 01:57:09 +0000 (10:57 +0900)]
Add unit test for RequestBroker
Change-Id: I75cbcf4d1571697519aa331b7581875f8092fb2a
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Sangyoon Jang [Wed, 17 Jun 2020 08:19:48 +0000 (17:19 +0900)]
Include theme_error.h at theme.h
Change-Id: Ib4bc53f14b2faa4da38dff3137483fbaa09a2cbc
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Wed, 17 Jun 2020 08:13:25 +0000 (17:13 +0900)]
Fix native API header
Fix errors from native API header rule checker.
Change-Id: I9a5dcc3d40b19932cc2379daa9e8ae0151417019
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Tue, 16 Jun 2020 09:36:51 +0000 (18:36 +0900)]
Separate library for API
A new lib file libcapi-appfw-tizen-theme.so is separated from
libtizen-theme.so.
Install header files for API.
Change-Id: Idc9846ea604dcbb8e7f74ae1e4aa0b4dd911f500
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Ilho Kim [Tue, 9 Jun 2020 05:23:02 +0000 (14:23 +0900)]
Unify the argument of dbus method caller and receiver
Change-Id: I073bdbe25b8f66eb3646535689fdc54de7e1df34
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Thu, 4 Jun 2020 11:00:43 +0000 (20:00 +0900)]
Add theme_loader_set_current API
Change-Id: I1c8c8fdde27c41054bf4a27e4eaa1864f930b4be
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
Sangyoon Jang [Wed, 17 Jun 2020 05:07:58 +0000 (14:07 +0900)]
Restart theme-provider when install rpm package
Change-Id: Ia789236f131f8058b7fc8ed2e79d072fa1bd7a1b
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Sangyoon Jang [Wed, 17 Jun 2020 05:07:08 +0000 (14:07 +0900)]
Fix theme_loader_query_id
Change-Id: Iff5b625e89fc51b7fb7284ceefca43cf4f676d6e
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>