From f3e5b8e2a506d7f41b9df8524edc7e642373e53e Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Thu, 17 Jan 2019 19:27:49 +0900 Subject: [PATCH 01/16] Support rpm build with signing as platform level Change-Id: I6ce44ddcd23e5721d8daaa3efd03d986c7d70dd6 Signed-off-by: Jihoon Kim --- CMakeLists.txt | 47 +++++++++++++++++++++++++ org.tizen.autofilld.manifest | 5 +++ org.tizen.autofilld.xml | 14 ++++++++ packaging/org.tizen.autofilld.spec | 71 ++++++++++++++++++++++++++++++++++++++ src/autofill_daemon_dlog.h | 11 ++++++ 5 files changed, 148 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 org.tizen.autofilld.manifest create mode 100644 org.tizen.autofilld.xml create mode 100644 packaging/org.tizen.autofilld.spec diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..7eca8bf --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,47 @@ +CMAKE_MINIMUM_REQUIRED(VERSION 2.6) +PROJECT(autofilld C) + +SET(SRCS + src/autofill-daemon.c + src/autofill_config.c + src/autofill_stub.c + src/autofill_manager_stub.c + src/autofill_service_proxy.c +) + +INCLUDE(FindPkgConfig) +pkg_check_modules(pkgs_test REQUIRED + dlog + rpc-port + glib-2.0 + eina + capi-appfw-service-application + capi-appfw-app-manager + capi-appfw-preference +) + +INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR}/include) + +FOREACH(flag ${pkgs_test_CFLAGS}) + SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}") +ENDFOREACH(flag) + +ADD_DEFINITIONS("-DEXPORTED=__attribute__((visibility(\"default\")))") + +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIE") +SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie") + +FIND_PROGRAM(UNAME NAMES uname) +EXEC_PROGRAM("${UNAME}" ARGS "-m" OUTPUT_VARIABLE "ARCH") +IF("${ARCH}" STREQUAL "arm") + ADD_DEFINITIONS("-DTARGET") + MESSAGE("add -DTARGET") +ENDIF("${ARCH}" STREQUAL "arm") + +ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS}) + +TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_test_LDFLAGS}) + +INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${TZ_SYS_RO_APP}/org.tizen.${PROJECT_NAME}/bin) +INSTALL(FILES ${CMAKE_BINARY_DIR}/org.tizen.autofilld.xml DESTINATION ${TZ_SYS_RO_PACKAGES}) +#INSTALL(FILES ${CMAKE_BINARY_DIR}/autofilld.manifest DESTINATION ${TZ_SYS_RO_PACKAGES}) diff --git a/org.tizen.autofilld.manifest b/org.tizen.autofilld.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/org.tizen.autofilld.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/org.tizen.autofilld.xml b/org.tizen.autofilld.xml new file mode 100644 index 0000000..dcd9018 --- /dev/null +++ b/org.tizen.autofilld.xml @@ -0,0 +1,14 @@ + + + + Jihoon Kim + autofilld + + + + + + http://tizen.org/privilege/appmanager.launch + http://tizen.org/privilege/datasharing + + diff --git a/packaging/org.tizen.autofilld.spec b/packaging/org.tizen.autofilld.spec new file mode 100644 index 0000000..f5b0f62 --- /dev/null +++ b/packaging/org.tizen.autofilld.spec @@ -0,0 +1,71 @@ +Name: org.tizen.autofilld +Summary: Autofill Daemon +Version: 1.0.6 +Release: 1 +Group: Graphics & UI Framework/Input +License: Apache-2.0 +Source0: %{name}-%{version}.tar.gz +BuildRequires: cmake +BuildRequires: tidl +BuildRequires: hash-signer +BuildRequires: pkgconfig(libtzplatform-config) +BuildRequires: pkgconfig(dlog) +BuildRequires: pkgconfig(efl) +BuildRequires: pkgconfig(eina) +BuildRequires: pkgconfig(rpc-port) +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(capi-appfw-service-application) +BuildRequires: pkgconfig(capi-appfw-preference) +BuildRequires: pkgconfig(capi-appfw-app-manager) + + +%description +Autofill Daemon + + +%prep +%setup -q + +tidlc -s -l C -i tidl/autofill.tidl -o autofill_stub +mv autofill_stub.h ./src/ +mv autofill_stub.c ./src/ + +tidlc -p -l C -i tidl/autofill_service.tidl -o autofill_service_proxy +mv autofill_service_proxy.h ./src/ +mv autofill_service_proxy.c ./src/ + +tidlc -s -l C -i tidl/autofill_manager.tidl -o autofill_manager_stub +mv autofill_manager_stub.h ./src/ +mv autofill_manager_stub.c ./src/ + + +%build +export CFLAGS+=" -DTIZEN_DEBUG_ENABLE -fvisibility=hidden -Werror" +export CXXFLAGS+=" -DTIZEN_DEBUG_ENABLE -fvisibility=hidden -Werror" +export FFLAGS+=" -DTIZEN_DEBUG_ENABLE -fvisibility=hidden" + +rm -rf CMakeFiles +rm -rf CMakeCache.txt +MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'` +cmake . -DCMAKE_INSTALL_PREFIX=/usr -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DLIB_INSTALL_DIR:PATH=%{_libdir} \ + -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES + +make %{?jobs:-j%jobs} + +%install +rm -rf %{buildroot} +%make_install + +%define tizen_sign 1 +%define tizen_sign_base /usr/apps/%{name} +%define tizen_sign_level platform +%define tizen_author_sign 1 +%define tizen_dist_sign 1 + + +%post + +%files +%manifest %{name}.manifest +%{TZ_SYS_RO_PACKAGES}/%{name}.xml +%{TZ_SYS_RO_APP}/%{name}/* diff --git a/src/autofill_daemon_dlog.h b/src/autofill_daemon_dlog.h index 454e14e..b6d9372 100644 --- a/src/autofill_daemon_dlog.h +++ b/src/autofill_daemon_dlog.h @@ -35,10 +35,21 @@ #define COLOR_LIGHTBLUE "\033[0;37m" #define COLOR_END "\033[0;m" +#ifndef LOGI #define LOGI(fmt, arg...) dlog_print(DLOG_INFO, LOG_TAG, "%s (%d) %s : " fmt, __FILE__, __LINE__, __FUNCTION__, ##arg) +#endif + +#ifndef LOGD #define LOGD(fmt, arg...) dlog_print(DLOG_DEBUG, LOG_TAG, "%s (%d) %s : " fmt, __FILE__, __LINE__, __FUNCTION__, ##arg) +#endif + +#ifndef LOGW #define LOGW(fmt, arg...) dlog_print(DLOG_WARN, LOG_TAG, "%s (%d) %s : " fmt, __FILE__, __LINE__, __FUNCTION__, ##arg) +#endif + +#ifndef LOGE #define LOGE(fmt, arg...) dlog_print(DLOG_ERROR, LOG_TAG, "%s (%d) %s : " fmt, __FILE__, __LINE__, __FUNCTION__, ##arg) +#endif #define PLOG(fmt, args...) LOGD(fmt, ##args) #define PINFO(fmt, args...) LOGI(COLOR_PURPLE "* Info * " fmt COLOR_END, ##args) -- 2.7.4 From df3e34e742d1660fad9696a9d16dfc94816c007c Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Thu, 17 Jan 2019 19:30:56 +0900 Subject: [PATCH 02/16] Update package version to 1.0.7 Change-Id: I64820ba15315fcbf4ee32467504d309d4622ee8b Signed-off-by: Jihoon Kim --- org.tizen.autofilld.xml | 2 +- packaging/org.tizen.autofilld.spec | 2 +- tizen-manifest.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/org.tizen.autofilld.xml b/org.tizen.autofilld.xml index dcd9018..0972cfc 100644 --- a/org.tizen.autofilld.xml +++ b/org.tizen.autofilld.xml @@ -1,5 +1,5 @@ - + Jihoon Kim autofilld diff --git a/packaging/org.tizen.autofilld.spec b/packaging/org.tizen.autofilld.spec index f5b0f62..3d32df8 100644 --- a/packaging/org.tizen.autofilld.spec +++ b/packaging/org.tizen.autofilld.spec @@ -1,6 +1,6 @@ Name: org.tizen.autofilld Summary: Autofill Daemon -Version: 1.0.6 +Version: 1.0.7 Release: 1 Group: Graphics & UI Framework/Input License: Apache-2.0 diff --git a/tizen-manifest.xml b/tizen-manifest.xml index 1a05706..75301c9 100644 --- a/tizen-manifest.xml +++ b/tizen-manifest.xml @@ -1,5 +1,5 @@ - + -- 2.7.4 From fb1e955edf3aa8382ea326569286cd70f70ee032 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Fri, 18 Jan 2019 15:53:18 +0900 Subject: [PATCH 03/16] Remove files related to ABS Change-Id: Iec3246108a15823cd108889d5066d0be3b47d325 Signed-off-by: Jihoon Kim --- .cproject | 621 ----------------------------------------------------- .exportMap | 5 - .package-stamp | 1 - .project | 46 ---- .tproject | 12 -- Build/appendix.mk | 1 - Build/basedef.mk | 34 --- Build/build_c.mk | 113 ---------- Build/build_edc.mk | 81 ------- Build/build_po.mk | 64 ------ Build/flags.mk | 16 -- Build/funcs.mk | 50 ----- Build/makefile | 34 --- Build/makefile.mk | 218 ------------------- Build/platform.mk | 17 -- Build/tooldef.mk | 70 ------ build_def.prop | 6 - project_def.prop | 58 ----- tizen-manifest.xml | 12 -- 19 files changed, 1459 deletions(-) delete mode 100644 .cproject delete mode 100644 .exportMap delete mode 100644 .package-stamp delete mode 100644 .project delete mode 100644 .tproject delete mode 100644 Build/appendix.mk delete mode 100644 Build/basedef.mk delete mode 100644 Build/build_c.mk delete mode 100644 Build/build_edc.mk delete mode 100644 Build/build_po.mk delete mode 100644 Build/flags.mk delete mode 100644 Build/funcs.mk delete mode 100644 Build/makefile delete mode 100644 Build/makefile.mk delete mode 100644 Build/platform.mk delete mode 100644 Build/tooldef.mk delete mode 100644 build_def.prop delete mode 100644 project_def.prop delete mode 100644 tizen-manifest.xml diff --git a/.cproject b/.cproject deleted file mode 100644 index 01aa971..0000000 --- a/.cproject +++ /dev/null @@ -1,621 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/.exportMap b/.exportMap deleted file mode 100644 index de30516..0000000 --- a/.exportMap +++ /dev/null @@ -1,5 +0,0 @@ -{ - global: main; - _IO_*; - local: *; -}; diff --git a/.package-stamp b/.package-stamp deleted file mode 100644 index 40cbe59..0000000 --- a/.package-stamp +++ /dev/null @@ -1 +0,0 @@ -TPK \ No newline at end of file diff --git a/.project b/.project deleted file mode 100644 index 08ac931..0000000 --- a/.project +++ /dev/null @@ -1,46 +0,0 @@ - - - autofill-daemon - - - - - - org.eclipse.cdt.managedbuilder.core.genmakebuilder - - - - - org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder - full,incremental, - - - - - - org.eclipse.cdt.core.cnature - org.eclipse.cdt.core.ccnature - org.eclipse.cdt.managedbuilder.core.managedBuildNature - org.eclipse.cdt.managedbuilder.core.ScannerConfigNature - - - - 1542586781108 - - 26 - - org.eclipse.ui.ide.multiFilter - 1.0-projectRelativePath-matches-false-false-*/.tpk - - - - 1542586781110 - - 6 - - org.eclipse.ui.ide.multiFilter - 1.0-name-matches-false-false-project_def.prop - - - - diff --git a/.tproject b/.tproject deleted file mode 100644 index 658e81b..0000000 --- a/.tproject +++ /dev/null @@ -1,12 +0,0 @@ - - - - - mobile-5.0 - - - - - - - diff --git a/Build/appendix.mk b/Build/appendix.mk deleted file mode 100644 index 2e06c34..0000000 --- a/Build/appendix.mk +++ /dev/null @@ -1 +0,0 @@ -# Appendix diff --git a/Build/basedef.mk b/Build/basedef.mk deleted file mode 100644 index a762983..0000000 --- a/Build/basedef.mk +++ /dev/null @@ -1,34 +0,0 @@ -# Add inputs and outputs from these tool invocations to the build variables - - -OS_NAME := $(shell $(UNAME)) - - -#ifeq ($(origin BUILD_CONFIG), undefined) -BUILD_CONFIG ?= Debug -#endif - -#ifeq ($(origin ARCH), undefined) -ARCH ?= i386 -#endif - -#ifeq ($(origin PROJPATH), undefined) -PROJPATH ?= . -#endif - - -#ifeq ($(origin PROJ_PATH), undefined) -PROJ_PATH ?= $(PROJPATH) -#endif - -#ifeq ($(strip $(OUTPUT_DIR)),) -#OUTPUT_DIR ?= $(PROJ_PATH)/$(BUILD_CONFIG) -#endif - -#ifeq ($(strip $(BUILD_ARCH)),) -BUILD_ARCH ?= $(ARCH) -#endif - -#ifeq ($(strip $(ENVENTOR_PATH)),) -ENVENTOR_PATH ?= $(SDK_TOOLPATH)/enventor -#endif diff --git a/Build/build_c.mk b/Build/build_c.mk deleted file mode 100644 index 5fffeea..0000000 --- a/Build/build_c.mk +++ /dev/null @@ -1,113 +0,0 @@ -# C/C++ build script - - -_FUNC_EXT2O = $(patsubst %.$(3),$(1)/%.o,$(2)) -_FUNC_C2O = $(call _FUNC_EXT2O,$(1),$(2),c) -_FUNC_CPP2O = $(call _FUNC_EXT2O,$(1),$(2),cpp) - - -# parameter : -# $(1) - C/C++ soruce file -# $(2) - output path -# $(3) - .ext -# $(4) - unique id -CONVERT_ESC_EXT_TO_O = $(addprefix $(2)/,$(notdir $(patsubst %.$(3),%-$(4).o,$(1)))) - -#CONVERT_ESC_C_TO_O = $(call CONVERT_ESC_EXT_TO_O,$(1),$(2),c) -#CONVERT_ESC_CPP_TO_O = $(call CONVERT_ESC_EXT_TO_O,$(1),$(2),cpp) - - -# parameter : -# $(1) - encoded one C/C++ soruce file -# $(2) - output path -# $(3) - ext title (C/C++) -# $(4) - ext (c/cpp) -# $(5) - compiler ($(CC)/$(CXX)) -# $(6) - build opt -# $(7) - build opt file -# output : -# $(8) - output files list -define C_BUILD_PROC_RAW -$(call CONVERT_ESC_EXT_TO_O,$(1),$(2),$(4),$(8)) : $(call DECODE_4MAKE,$(1)) $(7) - @echo ' Building file: $$<' - @echo ' Invoking: $(3) Compiler' - $$(call MAKEDIRS,$$(@D)) - $(5) -c "$$<" -o "$$@" $(6) -Wp,@$(7) - @echo ' Finished building: $$<' -$(9) += $(call CONVERT_ESC_EXT_TO_O,$(1),$(2),$(4),$(8)) -endef - - -# parameter : -# $(1) - output paths -# $(2) - src paths -# $(3) - inc paths -# $(4) - inc files -# $(5) - Defs -# $(6) - UnDefs -# $(7) - compiler opt -# $(8) - compiler opt file -# $(9) - ext title (C/C++) -# $(10) - ext (c/cpp) -# $(11) - compiler ($(CC)/$(CXX)) -# output : -# $(12) - OBJS -# return : -# none -define C_PROC_RAW - -_OUTPUT_DIR := $$(strip $(1))# -_SRCS := $(2)# -_INCS := $(3)# -_INC_FILES := $(4)# -_DEFS := $(5)# -_UNDEFS := $(6)# - -_OPT := $(7) -_OPT_FILE := $(8) - -_EXT_TITLE := $(9) -_EXT := $(10) -_COMPILER := $(11) - -#_OUTPUT_FILES := $(12) - -_ENC_SRCS := $$(call ENCODE_4MAKE,$$(_SRCS)) -_ENC_SRCS := $$(filter %.$$(_EXT),$$(_ENC_SRCS)) - -ifneq ($$(strip $$(_SRCS)),) - -_NORMAL_SRCS := $$(filter-out %*.$$(_EXT),$$(_ENC_SRCS)) -_WIDLCARD_SRCS := $$(filter %*.$$(_EXT),$$(_ENC_SRCS)) - -_ALL_SRCS := $$(call DECODE_4MAKE,$$(_NORMAL_SRCS)) \ - $$(foreach var,$$(_WIDLCARD_SRCS),$$(call FIND_FILES_4MAKE,$$(call DECODE_4MAKE,$$(var)))) - -ifneq ($$(strip $$(_ALL_SRCS)),) - -_ENC_SRCS := $$(call ENCODE_4MAKE,$$(_ALL_SRCS)) - -_CDEFS := $$(CDEFS) -_CDEFS += $$(addprefix -D,$$(_DEFS)) -_CDEFS += $$(addprefix -U,$$(_UNDEFS)) - -_ENC_C_INCS := $$(call ENCODE_4MAKE,$$(_INCS)) -_ENC_C_INCS := $$(addprefix -I,$$(_ENC_C_INCS)) - -_ENC_INC_FILES := $$(call ENCODE_4MAKE,$$(_INC_FILES)) -_ENC_INC_FILES += $$(addprefix -include,$$(_ENC_INC_FILES)) - -_C_INCS := $$(call DECODE_4MAKE,$$(_ENC_C_INCS) $$(_ENC_C_INC_FILES)) - -_DEFS := $$(_CDEFS) $$(_C_INCS) -I"pch" $$(_OPT) - -_UNIQUE_ID = $$(firstword $$(shell echo $$(var) | $$(CKSUM))) - -$$(foreach var,$$(_ENC_SRCS),$$(eval $$(call C_BUILD_PROC_RAW,$$(var),$$(_OUTPUT_DIR),$$(_EXT_TITLE),$$(_EXT),$$(_COMPILER),$$(_DEFS),$$(_OPT_FILE),$$(_UNIQUE_ID),$(12)))) - -endif # (_(strip _(_ALL_SRCS)),) - -endif # (_(strip _(_SRCS)),) - - -endef diff --git a/Build/build_edc.mk b/Build/build_edc.mk deleted file mode 100644 index 6f85fdd..0000000 --- a/Build/build_edc.mk +++ /dev/null @@ -1,81 +0,0 @@ -# EDC build script - - -FUNC_EDC2EDJ = $(patsubst %.edc,$(2)/%.edj,$(1)) - -# parameter : -# $(1) - C/C++ soruce file -# $(2) - output path -CONVERT_ESC_EDC_TO_EDJ = $(call CONVERT_4MAKE_TO_OUT,$(call FUNC_EDC2EDJ,$(1),$(2))) - - -# parameter : -# $(1) - encoded one C/C++ soruce file -# $(2) - output path -# $(3) - build opt -# output : -# $(4) - output files list -define EDJ_BUILD_PROC_RAW -$(call CONVERT_ESC_EDC_TO_EDJ,$(1),$(2)) : $(call DECODE_4MAKE,$(1)) - @echo ' Building file: $$<' - @echo ' Invoking: EDC Resource Compiler' - $$(call MAKEDIRS,$$(@D)) - $$(EDJE_CC) $(3) "$$<" "$$@" - @echo ' Finished building: $$<' -$(4) += $(call CONVERT_ESC_EDC_TO_EDJ,$(1),$(2)) -endef - - -# parameter : -# $(1) - output paths -# $(2) - src paths -# $(3) - image inc paths -# $(4) - sound inc paths -# $(5) - font inc paths -# output : -# $(6) - OBJS -# return : -# none -define EDJ_PROC_RAW - -_OUTPUT_DIR := $$(strip $(1))# -_SRCS := $(2)# -_IMAGE_DIRS := $(3)# -_SOUND_DIRS := $(4)# -_FONT_DIRS := $(5)# - -ifneq ($$(strip $$(_SRCS)),) - -_ENC_SRCS := $$(call ENCODE_4MAKE,$$(_SRCS)) - -_NORMAL_SRCS := $$(filter-out %*.edc,$$(_ENC_SRCS)) -_WIDLCARD_SRCS := $$(filter %*.edc,$$(_ENC_SRCS)) - -_ALL_SRCS := $$(call DECODE_4MAKE,$$(_NORMAL_SRCS)) \ - $$(foreach var,$$(_WIDLCARD_SRCS),$$(call FIND_FILES_4MAKE,$$(call DECODE_4MAKE,$$(var)))) - -ifneq ($$(strip $$(_ALL_SRCS)),) - -_ENC_SRCS := $$(call ENCODE_4MAKE,$$(_ALL_SRCS)) - -_COMPILER_FLAGS := -id "$$(ENVENTOR_SHARED_RES_PATH)/images" -_COMPILER_FLAGS += -sd "$$(ENVENTOR_SHARED_RES_PATH)/sounds" -_COMPILER_FLAGS += -fd "$$(ENVENTOR_SHARED_RES_PATH)/fonts" - -ifneq ($$(strip $$(_IMAGE_DIRS)),) -_COMPILER_FLAGS += $$(addprefix -id ,$$(_IMAGE_DIRS)) -endif -ifneq ($$(strip $$(_SOUND_DIRS)),) -_COMPILER_FLAGS += $$(addprefix -sd ,$$(_SOUND_DIRS)) -endif -ifneq ($$(strip $$(_FONT_DIRS)),) -_COMPILER_FLAGS += $$(addprefix -fd ,$$(_FONT_DIRS)) -endif - -$$(foreach var,$$(_ENC_SRCS),$$(eval $$(call EDJ_BUILD_PROC_RAW,$$(var),$$(_OUTPUT_DIR),$$(_COMPILER_FLAGS),$(6)))) - -endif # (_(strip _(_ALL_SRCS)),) - -endif # (_(strip _(_SRCS)),) - -endef diff --git a/Build/build_po.mk b/Build/build_po.mk deleted file mode 100644 index d88d71a..0000000 --- a/Build/build_po.mk +++ /dev/null @@ -1,64 +0,0 @@ -# PO build script - - -_FUNC_PO2MO = $(patsubst %.po,$(2)/res/locale/%/LC_MESSAGES/$(3).mo,$(notdir $(1))) - - -# parameter : -# $(1) - C/C++ soruce file -# $(2) - output path -# $(3) - app name -CONVERT_ESC_PO_TO_MO = $(call CONVERT_4MAKE_TO_OUT,$(call _FUNC_PO2MO,$(1),$(2),$(3))) - - -# parameter : -# $(1) - encoded one C/C++ soruce file -# $(2) - output path -# $(3) - app name -# output : -# $(4) - output files list -define MO_BUILD_PROC_RAW -$(call CONVERT_ESC_PO_TO_MO,$(1),$(2),$(3)) : $(call DECODE_4MAKE,$(1)) - @echo ' Building file: $$<' - @echo ' Invoking: msgfmt String Formatter' - $$(call MAKEDIRS,$$(@D)) - $$(MSGFMT) -o "$$@" "$$<" - @echo ' Finished building: $$<' -$(4) += $(call CONVERT_ESC_PO_TO_MO,$(1),$(2),$(3)) -endef - - -# parameter : -# $(1) - output dir -# $(2) - src paths -# $(3) - app name -# output : -# $(4) - OBJS - -define MO_PROC_RAW - -_OUTPUT_DIR := $(1) -_SRCS := $(2) -_APPNAME := $(3) - -ifneq ($$(strip $$(_SRCS)),) - -_ENC_SRCS := $$(call ENCODE_4MAKE,$$(_SRCS)) - -_NORMAL_SRCS := $$(filter-out %*.po,$$(_ENC_SRCS)) -_WIDLCARD_SRCS := $$(filter %*.po,$$(_ENC_SRCS)) - -_ALL_SRCS := $$(call DECODE_4MAKE,$$(_NORMAL_SRCS)) \ - $$(foreach var,$$(_WIDLCARD_SRCS),$$(call FIND_FILES_4MAKE,$$(call DECODE_4MAKE,$$(var)))) - -ifneq ($$(strip $$(_ALL_SRCS)),) - -_ENC_SRCS := $$(call ENCODE_4MAKE,$$(_ALL_SRCS)) - -$$(foreach var,$$(_ENC_SRCS),$$(eval $$(call MO_BUILD_PROC_RAW,$$(var),$$(_OUTPUT_DIR),$$(_APPNAME),$(4)))) - -endif # (_(strip _(_ALL_SRCS)),) - -endif # (_(strip _(_SRCS)),) - -endef diff --git a/Build/flags.mk b/Build/flags.mk deleted file mode 100644 index 57fb49d..0000000 --- a/Build/flags.mk +++ /dev/null @@ -1,16 +0,0 @@ - -DEBUG_OP = -g3 -D_DEBUG -CPP_DEBUG_OP = -D_DEBUG - -OPTIMIZATION_OP = -O0 -CPP_OPTIMIZATION_OP = - -COMPILE_FLAGS = $(DEBUG_OP) $(OPTIMIZATION_OP) -Wall -c -fmessage-length=0 - -CPP_COMPILE_FLAGS = $(CPP_DEBUG_OP) $(CPP_OPTIMIZATION_OP) - -LINK_FLAGS = - -AR_FLAGS = - -EDC_COMPILE_FLAGS = \ No newline at end of file diff --git a/Build/funcs.mk b/Build/funcs.mk deleted file mode 100644 index 3ba778b..0000000 --- a/Build/funcs.mk +++ /dev/null @@ -1,50 +0,0 @@ - -BSLASH := \\# -NULL_CHAR := # -SPACE := \ # -COLON := :# -DOTDOT := ..# -SPACE_ESC := &sp;# -COLON_ESC := &co;# -SPACE_OUT := ~sp~# -COLON_OUT := ~co~# -DOTDOT_OUT := ~dtdt~# - -BSLASH2SLASH = $(subst $(BSLASH),/,$(1)) - -REMOVE_TAIL = $(patsubst %/,%,$(1)) - -#LOWER_CASE = $(shell echo translit($(1),[A-Z],[a-z])|$(M4)) -LOWER_CASE = $(shell echo $(1)|$(TR) [A-Z] [a-z]) - -#ifneq ($(findstring Windows,$(OS)),) -# ... -#endif - -FIND_FILES = $(shell $(FIND) $(1)/$(2) | $(SED) 's/^$(subst /,$(BSLASH)/,$(1))$(BSLASH)///') -FIND_FILES_ESC = $(shell $(FIND) $(1)/$(2) | $(SED) 's/^$(subst /,$(BSLASH)/,$(1))$(BSLASH)///' -e 's/:/$(BSLASH)&co;/g' -e 's/$(BSLASH) /$(BSLASH)&sp;/g') -FIND_FILES_4MAKE = $(shell $(FIND) $(1)/$(2) | $(SED) 's/^$(subst /,$(BSLASH)/,$(1))$(BSLASH)///') - -FIND_FILES_ABS = $(shell $(FIND) $(1)) -FIND_FILES_ABS_4MAKE = $(shell $(FIND) $(1) -e 's/$(BSLASH) /$(BSLASH)&sp;/g') -FIND_FILES_ABS_ESC = $(shell $(FIND) $(1) -e 's/:/$(BSLASH)&co;/g' -e 's/$(BSLASH) /$(BSLASH)&sp;/g') - -FIND_FILES_4MAKE = $(shell $(FIND) $(1) | $(SED) 's/ /\\\ /g') - -#ENCODE_ESC = $(shell echo $(1) | $(SED) -e 's/:/$(BSLASH)&co;/g' -e 's/$(BSLASH) /$(BSLASH)&sp;/g') -#DECODE_ESC = $(shell echo $(1) | $(SED) -e 's/$(BSLASH)&co;/:/g' -e 's/$(BSLASH)&sp;/$(BSLASH) / g') -ENCODE_ESC = $(subst $(SPACE),$(SPACE_ESC),$(subst $(COLON),$(COLON_ESC),$(1))) -DECODE_ESC = $(subst $(COLON_ESC),$(COLON),$(subst $(SPACE_ESC),$(SPACE),$(1))) -ENCODE_4MAKE = $(subst $(SPACE),$(SPACE_ESC),$(1)) -DECODE_4MAKE = $(subst $(SPACE_ESC),$(SPACE),$(1)) - -CONVERT_TO_OUT = $(subst $(DOTDOT),$(DOTDOT_OUT),$(subst $(COLON),$(COLON_OUT),$(subst $(SPACE),$(SPACE_OUT),$(1)))) -CONVERT_ESC_TO_OUT = $(subst $(DOTDOT),$(DOTDOT_OUT),$(subst $(COLON_ESC),$(COLON_OUT),$(subst $(SPACE_ESC),$(SPACE_OUT),$(1)))) -CONVERT_4MAKE_TO_OUT = $(subst $(DOTDOT),$(DOTDOT_OUT),$(subst $(COLON),$(COLON_OUT),$(subst $(SPACE_ESC),$(SPACE_OUT),$(1)))) - -PROC_NO_EXIST = $(if $(wildcard $(1)),,$(call $(2),$(1))) -define MAKEDIRS0 - @echo ' Building directory: $(1)' - @$(MKDIR) $(MKDIR_OP) $(subst $(BSLASH),/,$(1)) -endef -MAKEDIRS = $(call PROC_NO_EXIST,$(1),MAKEDIRS0) diff --git a/Build/makefile b/Build/makefile deleted file mode 100644 index 117b240..0000000 --- a/Build/makefile +++ /dev/null @@ -1,34 +0,0 @@ -# -# Usege : make -f /Build/makefile -C -# - -BUILD_SCRIPT_VERSION := 1.1.0 - -.PHONY : app_version app_build app_clean build_version - - -all : app_build - -clean : app_clean - -version : build_version - -#PROJ_ROOT = . -#BUILD_ROOT := $(PROJ_PATH)/Build# - -ifeq ($(MAKE_NAME),mingw32-make) -ifneq ($(SHELL),) -OPTIONS += --eval="SHELL=$(SHELL)" -endif -endif - -app_build : - @echo $(MAKE) -f "$(BUILD_ROOT)/makefile.mk" - @$(MAKE_BIN) -f "$(BUILD_ROOT)/makefile.mk" -C "$(PROJ_PATH)" $(OPTIONS) - -app_clean : - @$(MAKE) -f "$(BUILD_ROOT)/makefile.mk" -C "$(PROJ_PATH)" $(OPTIONS) clean - -build_version : - @echo makefile : $(BUILD_SCRIPT_VERSION) - @$(MAKE) -f "$(BUILD_ROOT)/makefile.mk" -C "$(PROJ_PATH)" $(OPTIONS) version diff --git a/Build/makefile.mk b/Build/makefile.mk deleted file mode 100644 index ffe7594..0000000 --- a/Build/makefile.mk +++ /dev/null @@ -1,218 +0,0 @@ -# -# Usege : make -f /Build/makefile -C -# - -BUILD_SCRIPT_VERSION := 1.2.3 - -.PHONY : app_version app_clean build_version - - -all : app_build - -clean : app_clean - -version : build_version - -_BLANK :=# -_SPACE := $(_BLANK) $(_BLANK)# -_SPACE_4MAKE := \$(_SPACE)# - -NULL_CHAR :=# -SPACE := $(NULL_CHAR) $(NULL_CHAR)# - -PROJ_ROOT := . -_PROJ_ROOT_4MAKE := $(subst $(_SPACE),$(_SPACE_4MAKE),$(PROJ_ROOT))# -PROJ_ROOT=$(_PROJ_ROOT_4MAKE) -_BUILD_ROOT_4MAKE := $(subst $(_SPACE),$(_SPACE_4MAKE),$(BUILD_ROOT))# -BUILD_ROOT=$(_BUILD_ROOT_4MAKE) - -include $(BUILD_ROOT)/basedef.mk - -include $(PROJ_ROOT)/project_def.prop --include $(PROJ_ROOT)/build_def.prop - -include $(BUILD_ROOT)/funcs.mk - --include $(BUILD_ROOT)/tooldef.mk --include $(BUILD_ROOT)/flags.mk --include $(BUILD_ROOT)/platform.mk - - -APPTYPE := $(type) - -OUTPUT_DIR := $(PROJ_ROOT)/$(BUILD_CONFIG) -OBJ_OUTPUT := $(OUTPUT_DIR)/objs - -LOWER_APPNAME := $(call LOWER_CASE,$(APPNAME)) -APPID2 := $(subst $(basename $(APPID)).,,$(APPID)) - -ifeq ($(strip $(APPTYPE)),app) -APPFILE := $(OUTPUT_DIR)/$(LOWER_APPNAME) -endif -ifeq ($(strip $(APPTYPE)),staticLib) -APPFILE := $(OUTPUT_DIR)/lib$(LOWER_APPNAME).a -endif -ifeq ($(strip $(APPTYPE)),sharedLib) -APPFILE := $(OUTPUT_DIR)/lib$(LOWER_APPNAME).so -endif - -ifneq ($(strip $(PLATFORM_INCS)),) -PLATFORM_INCS_FILE := $(OBJ_OUTPUT)/platform_incs_file.inc -endif - -ifneq ($(strip $(RS_LIBRARIES)),) -RS_LIBRARIES_FILE := $(OBJ_OUTPUT)/platform_libs.file -endif - -OBJS_FILE := $(OBJ_OUTPUT)/target_objs.file - -include $(BUILD_ROOT)/build_c.mk - - -ifeq ($(strip $(APPTYPE)),app) -EXT_OP := -fPIE -endif -ifeq ($(strip $(APPTYPE)),staticLib) -EXT_OP := -fPIE -endif -ifeq ($(strip $(APPTYPE)),sharedLib) -EXT_OP := -fPIC -endif - -C_OPT := $(COMPILE_FLAGS) $(TC_COMPILER_MISC) $(RS_COMPILER_MISC) $(EXT_OP) --sysroot="$(SYSROOT)" -Werror-implicit-function-declaration $(M_OPT) $(USER_C_OPTS) -CPP_OPT := $(CPP_COMPILE_FLAGS) $(TC_COMPILER_MISC) $(RS_COMPILER_MISC) $(EXT_OP) --sysroot="$(SYSROOT)" -Werror-implicit-function-declaration $(M_OPT) $(USER_CPP_OPTS) -C_OPT_FILE := $(PLATFORM_INCS_FILE) - -OBJS := # - -# Global C/C++ -ifeq ($(strip $(USER_ROOT)),) -USER_ROOT := $(PROJ_ROOT) -endif -$(eval $(call C_PROC_RAW,$(OBJ_OUTPUT),$(USER_SRCS),$(USER_INC_DIRS),$(USER_INC_FILES),$(USER_DEFS),$(USER_UNDEFS),$(C_OPT),$(C_OPT_FILE),C,c,$(CC),OBJS)) -$(foreach ext,cpp cxx cc c++ C,$(eval $(call C_PROC_RAW,$(OBJ_OUTPUT),$(USER_SRCS),$(USER_INC_DIRS),$(USER_CPP_INC_FILES),$(USER_CPP_DEFS),$(USER_CPP_UNDEFS),$(CPP_OPT),$(C_OPT_FILE),C++,$(ext),$(CXX),OBJS))) - -# Individual C/C++ -ifneq ($(strip $(USER_EXT_C_KEYS)),) -$(foreach var,$(USER_EXT_C_KEYS),$(eval $(call C_PROC_RAW,$(OBJ_OUTPUT),$(USER_EXT_$(var)_SRCS),$(USER_EXT_$(var)_INC_DIRS),$(USER_EXT_$(var)_INC_FILES),$(USER_EXT_$(var)_DEFS),$(USER_EXT_$(var)_UNDEFS),$(C_OPT),$(C_OPT_FILE),C,c,$(CC),OBJS))) -$(foreach ext,cpp cxx cc c++ C,$(foreach var,$(USER_EXT_C_KEYS),$(eval $(call C_PROC_RAW,$(OBJ_OUTPUT),$(USER_EXT_$(var)_SRCS),$(USER_EXT_$(var)_INC_DIRS),$(USER_EXT_$(var)_CPP_INC_FILES),$(USER_EXT_$(var)_CPP_DEFS),$(USER_EXT_$(var)_CPP_UNDEFS),$(CPP_OPT),$(C_OPT_FILE),C++,$(ext),$(CXX),OBJS)))) -endif - - -ifneq ($(strip $(USER_LIB_DIRS)),) -_ENC_USER_LIB_DIRS := $(call ENCODE_4MAKE,$(USER_LIB_DIRS)) -_ENC_USER_LIB_DIRS := $(addprefix -L,$(_ENC_USER_LIB_DIRS)) -LIBPATHS := $(call DECODE_4MAKE,$(_ENC_USER_LIB_DIRS)) -endif - -LIBS += $(addprefix -l,$(USER_LIBS)) - -UOBJS += $(USER_OBJS) - -M_OPT = -MMD -MP -MF"$(@:%.o=%.d)" - -DEPS := $(OBJS:.o=.d) - -ifneq ($(strip $(DEPS)),) --include $(PROJ_ROOT)/Build/$(DEPS) -endif - -# create platform_libs_files.lib to pass the libraries to ld -$(RS_LIBRARIES_FILE) : - @echo $(RS_LIBRARIES) > $@ - -# create objs_file.obj to pass the obj files to ld or ar -$(OBJS_FILE) : $(OBJS) - @echo $(OBJS) > $@ - -ifeq ($(strip $(APPTYPE)),app) -$(APPFILE) : $(OBJS_FILE) $(UOBJS) $(RS_LIBRARIES_FILE) - @echo ' Building target: $@' - @echo ' Invoking: C/C++ Linker' - $(call MAKEDIRS,$(@D)) - $(CXX) -o $(APPFILE) @$(OBJS_FILE) $(UOBJS) $(LIBS) $(LIBPATHS) $(LINK_FLAGS) $(TC_LINKER_MISC) $(RS_LINKER_MISC) -Xlinker --as-needed -pie -lpthread --sysroot="$(SYSROOT)" -Xlinker --version-script="$(PROJ_ROOT)/.exportMap" $(RS_LIB_PATHS) @$(RS_LIBRARIES_FILE) -Xlinker -rpath='$$ORIGIN/../lib' -Werror-implicit-function-declaration $(USER_LINK_OPTS) - @echo ' Finished building target: $@' -endif -ifeq ($(strip $(APPTYPE)),staticLib) -$(APPFILE) : $(OBJS_FILE) $(UOBJS) - @echo ' Building target: $@' - @echo ' Invoking: Archive utility' - $(call MAKEDIRS,$(@D)) - $(AR) -r $(APPFILE) @$(OBJS_FILE) $(AR_FLAGS) $(USER_LINK_OPTS) - @echo ' Finished building target: $@' -endif -ifeq ($(strip $(APPTYPE)),sharedLib) -$(APPFILE) : $(OBJS_FILE) $(UOBJS) $(RS_LIBRARIES_FILE) - @echo ' Building target: $@' - @echo ' Invoking: C/C++ Linker' - $(call MAKEDIRS,$(@D)) - $(CXX) -o $(APPFILE) @$(OBJS_FILE) $(UOBJS) $(LIBS) $(LIBPATHS) $(LINK_FLAGS) $(TC_LINKER_MISC) $(RS_LINKER_MISC) -Xlinker --as-needed -shared -lpthread --sysroot="$(SYSROOT)" $(RS_LIB_PATHS) @$(RS_LIBRARIES_FILE) $(USER_LINK_OPTS) - @echo ' Finished building target: $@' -endif - - -$(OBJ_OUTPUT) : - $(call MAKEDIRS,$@) - -$(OUTPUT_DIR) : - $(call MAKEDIRS,$@) - - -#ifneq ($(strip $(PLATFORM_INCS)),) -#$(PLATFORM_INCS_FILE) : $(OBJ_OUTPUT) -# @echo ' Building inc file: $@' -#ifneq ($(findstring Windows,$(OS)),) -#ifneq ($(findstring 3.82,$(MAKE_VERSION)),) -# $(file > $@,$(PLATFORM_INCS)) -#else -# @echo $(PLATFORM_INCS) > $@ -#endif -#else -# @echo '$(PLATFORM_INCS)' > $@ -#endif -#endif - - -include $(BUILD_ROOT)/build_edc.mk - -#ifeq ($(strip $(ENVENTOR_SHARED_RES_PATH)),) -ENVENTOR_SHARED_RES_PATH ?= $(ENVENTOR_PATH)/share/enventor -#endif - -EDJ_FILES := - -# Global EDCs -ifneq ($(strip $(USER_EDCS)),) -$(eval $(call EDJ_PROC_RAW,$(OUTPUT_DIR),$(USER_EDCS),$(USER_EDCS_IMAGE_DIRS),$(USER_EDCS_SOUND_DIRS),$(USER_EDCS_FONT_DIRS),EDJ_FILES)) -endif - -# Individual EDCs -ifneq ($(strip $(USER_EXT_EDC_KEYS)),) -$(foreach var,$(USER_EXT_EDC_KEYS),$(eval $(call EDJ_PROC_RAW,$(OUTPUT_DIR),$(USER_EXT_$(var)_EDCS),$(USER_EXT_$(var)_EDCS_IMAGE_DIRS),$(USER_EXT_$(var)_EDCS_SOUND_DIRS),$(USER_EXT_$(var)_EDCS_FONT_DIRS),EDJ_FILES))) -endif - - -include $(BUILD_ROOT)/build_po.mk - -MO_FILES := - -# Global POs -ifneq ($(strip $(USER_POS)),) -$(eval $(call MO_PROC_RAW,$(OUTPUT_DIR),$(USER_POS),$(APPID2),MO_FILES)) -endif - - -secondary-outputs : $(EDJ_FILES) $(MO_FILES) - --include appendix.mk - -app_build : $(OUTPUT_DIR) $(APPFILE) secondary-outputs - @echo ========= done ========= - - -app_clean : - rm -f $(APPFILE) - rm -rf $(OUTPUT_DIR) - -build_version : - @echo makefile.mk : $(BUILD_SCRIPT_VERSION) \ No newline at end of file diff --git a/Build/platform.mk b/Build/platform.mk deleted file mode 100644 index 77c3ab0..0000000 --- a/Build/platform.mk +++ /dev/null @@ -1,17 +0,0 @@ -# Add inputs and outputs from these tool invocations to the build variables - -SYSROOT = $(SBI_SYSROOT) - -#USR_INCS := $(addprefix -I "$(SYSROOT),$(PLATFORM_INCS_EX)) -USR_INCS1 := $(addsuffix ",$(PLATFORM_INCS_EX)) -USR_INCS := $(addprefix -I "$(SYSROOT),$(USR_INCS1)) - -ifeq ($(strip $(PLATFORM_LIB_PATHS)),) -RS_LIB_PATHS := "$(SYSROOT)/usr/lib" -else -RS_LIB_PATHS := $(addprefix -L,$(PLATFORM_LIB_PATHS)) -endif - -RS_LIBRARIES := $(addprefix -l,$(RS_LIBRARIES_EX)) - -PLATFORM_INCS = $(USR_INCS) -I "$(SDK_PATH)/library" diff --git a/Build/tooldef.mk b/Build/tooldef.mk deleted file mode 100644 index c62243c..0000000 --- a/Build/tooldef.mk +++ /dev/null @@ -1,70 +0,0 @@ -# Add inputs and outputs from these tool invocations to the build variables - -ifneq ($(strip $(SHELL_BIN)),) -SHELL = $(SHELL_BIN) -else -SHELL = sh -endif - -ifneq ($(strip $(MKDIR_BIN)),) -MKDIR = $(MKDIR_BIN) -MKDIR_OP = -p -else -MKDIR = mkdir -MKDIR_OP = -p -endif - -ifneq ($(strip $(UNAME_BIN)),) -UNAME = $(UNAME_BIN) -else -UNAME = uname -endif - -ifneq ($(strip $(M4_BIN)),) -M4 = $(M4_BIN) -else -M4 = m4 -endif - -ifneq ($(strip $(TR_BIN)),) -TR = $(TR_BIN) -else -TR = tr -endif - -ifneq ($(strip $(FIND_BIN)),) -FIND = $(FIND_BIN) -else -FIND = find -endif - -ifneq ($(strip $(SED_BIN)),) -SED = $(SED_BIN) -else -SED = sed -endif - -ifneq ($(strip $(GREP_BIN)),) -GREP = $(GREP_BIN) -else -GREP = grep -endif - -ifneq ($(strip $(EDJE_CC_BIN)),) -EDJE_CC = $(EDJE_CC_BIN) -else -EDJE_CC = edje_cc -endif - -ifneq ($(strip $(MSGFMT_BIN)),) -MSGFMT = $(MSGFMT_BIN) -else -MSGFMT = msgfmt -endif - -ifneq ($(strip $(CKSUM_BIN)),) -CKSUM = $(CKSUM_BIN) -else -CKSUM = cksum -endif - diff --git a/build_def.prop b/build_def.prop deleted file mode 100644 index 520f46f..0000000 --- a/build_def.prop +++ /dev/null @@ -1,6 +0,0 @@ - -# Add pre/post build process -PREBUILD_DESC = -PREBUILD_COMMAND = tidlc -s -l C -i tidl/autofill.tidl -o autofill_stub; mv autofill_stub.h ./src/; mv autofill_stub.c ./src/; tidlc -p -l C -i tidl/autofill_service.tidl -o autofill_service_proxy; mv autofill_service_proxy.h ./src/; mv autofill_service_proxy.c ./src/; tidlc -s -l C -i tidl/autofill_manager.tidl -o autofill_manager_stub; mv autofill_manager_stub.h ./src/; mv autofill_manager_stub.c ./src/; -POSTBUILD_DESC = -POSTBUILD_COMMAND = diff --git a/project_def.prop b/project_def.prop deleted file mode 100644 index 2cc9827..0000000 --- a/project_def.prop +++ /dev/null @@ -1,58 +0,0 @@ - -# Project Name -APPNAME = autofilld - -# Project Type -type = app - -# Project Profile -profile = mobile-5.0 - -# C/CPP Sources -USER_SRCS = src/autofill-daemon.c src/autofill_service_proxy.c src/autofill_stub.c src/autofill_manager_stub.c src/autofill_config.c - -# EDC Sources -USER_EDCS = - -# PO Sources -USER_POS = - -# User Defines -USER_DEFS = TIZEN_DEPRECATION DEPRECATION_WARNING -USER_CPP_DEFS = - -# User Undefines -USER_UNDEFS = -USER_CPP_UNDEFS = - -# User Libraries -USER_LIBS = - -# User Objects -USER_OBJS = - -# User Includes -## C Compiler -USER_C_INC_DIRS = inc -USER_INC_FILES = -## C++ Compiler -USER_CPP_INC_DIRS = -USER_CPP_INC_FILES = - -USER_INC_DIRS = $(USER_C_INC_DIRS) $(USER_CPP_INC_DIRS) - -# User Library Path -USER_LIB_DIRS = lib - -# EDC Resource Path -USER_EDCS_IMAGE_DIRS = ${OUTPUT_DIR} -USER_EDCS_SOUND_DIRS = ${OUTPUT_DIR} -USER_EDCS_FONT_DIRS = ${OUTPUT_DIR} - -# EDC Flags -USER_EXT_EDC_KEYS = - -# Resource Filter -USER_RES_INCLUDE = -USER_RES_EXCLUDE = - diff --git a/tizen-manifest.xml b/tizen-manifest.xml deleted file mode 100644 index 75301c9..0000000 --- a/tizen-manifest.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - http://tizen.org/privilege/appmanager.launch - http://tizen.org/privilege/datasharing - - -- 2.7.4 From 967179cba251e19e19fbe78d1febaff26ad5258b Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Fri, 18 Jan 2019 15:54:23 +0900 Subject: [PATCH 04/16] Update package version to 1.0.8 Change-Id: I686b7f41a2dc9813b46ac6e1ae2f3f9fff8d9822 Signed-off-by: Jihoon Kim --- org.tizen.autofilld.xml | 2 +- packaging/org.tizen.autofilld.spec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/org.tizen.autofilld.xml b/org.tizen.autofilld.xml index 0972cfc..d976f25 100644 --- a/org.tizen.autofilld.xml +++ b/org.tizen.autofilld.xml @@ -1,5 +1,5 @@ - + Jihoon Kim autofilld diff --git a/packaging/org.tizen.autofilld.spec b/packaging/org.tizen.autofilld.spec index 3d32df8..5e2de85 100644 --- a/packaging/org.tizen.autofilld.spec +++ b/packaging/org.tizen.autofilld.spec @@ -1,6 +1,6 @@ Name: org.tizen.autofilld Summary: Autofill Daemon -Version: 1.0.7 +Version: 1.0.8 Release: 1 Group: Graphics & UI Framework/Input License: Apache-2.0 -- 2.7.4 From 0c6c8176810bd31c6b3d62320578f3007f598fb0 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Mon, 21 Jan 2019 19:21:32 +0900 Subject: [PATCH 05/16] Fix memory leak Change-Id: Ib930c35f9455682056b17b49d6709bb6dbf071e1 Signed-off-by: Jihoon Kim --- src/autofill-daemon.c | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/src/autofill-daemon.c b/src/autofill-daemon.c index 6bfb347..55e8298 100644 --- a/src/autofill-daemon.c +++ b/src/autofill-daemon.c @@ -29,6 +29,8 @@ #include "autofill_config.h" static rpc_port_proxy_AutofillSvcPort_h svc_rpc_h = NULL; +static rpc_port_AutofillSvcPort_autofill_svc_fill_response_cb_h fill_response_received_cb_h = NULL; +static rpc_port_AutofillSvcPort_autofill_svc_auth_info_cb_h auth_info_cb_h = NULL; static int connect_service(); @@ -585,8 +587,16 @@ static void __on_connected(rpc_port_proxy_AutofillSvcPort_h h, void *user_data) { LOGI("[__RPC_PORT__] connected"); - rpc_port_AutofillSvcPort_autofill_svc_fill_response_cb_h fill_response_received_cb_h = rpc_port_AutofillSvcPort_autofill_svc_fill_response_cb_create(__fill_response_recv_cb, false, NULL); - rpc_port_AutofillSvcPort_autofill_svc_auth_info_cb_h auth_info_cb_h = rpc_port_AutofillSvcPort_autofill_svc_auth_info_cb_create(__auth_info_recv_cb, false, NULL); + if (fill_response_received_cb_h) { + free(fill_response_received_cb_h); + } + + if (auth_info_cb_h) { + free(auth_info_cb_h); + } + + fill_response_received_cb_h = rpc_port_AutofillSvcPort_autofill_svc_fill_response_cb_create(__fill_response_recv_cb, false, NULL); + auth_info_cb_h = rpc_port_AutofillSvcPort_autofill_svc_auth_info_cb_create(__auth_info_recv_cb, false, NULL); int r = rpc_port_proxy_AutofillSvcPort_invoke_Register(h, auth_info_cb_h, fill_response_received_cb_h); if (r != 0) @@ -599,6 +609,16 @@ static void __on_disconnected(rpc_port_proxy_AutofillSvcPort_h h, void *user_dat LOGD("disconnected"); svc_rpc_h = NULL; + + if (fill_response_received_cb_h) { + free(fill_response_received_cb_h); + fill_response_received_cb_h = NULL; + } + + if (auth_info_cb_h) { + free(auth_info_cb_h); + auth_info_cb_h = NULL; + } } static void __on_rejected(rpc_port_proxy_AutofillSvcPort_h h, void *user_data) -- 2.7.4 From 2ec7975f4fb68c4f79a7f91347a5f1a438d8dad8 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Tue, 22 Jan 2019 17:50:32 +0900 Subject: [PATCH 06/16] Fix bug when getting app id in commit callback Change-Id: I35e6f1e2102515047a4509b6ef3f4c330a8a2c8f Signed-off-by: Jihoon Kim --- src/autofill-daemon.c | 10 ++++++---- tidl/autofill_service.tidl | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/autofill-daemon.c b/src/autofill-daemon.c index 55e8298..804cad4 100644 --- a/src/autofill-daemon.c +++ b/src/autofill-daemon.c @@ -414,16 +414,18 @@ static int __commit_cb(rpc_port_stub_AutofillAppPort_context_h context, int cont } rpc_port_stub_AutofillAppPort_context_get_sender(context, &sender); - if (sender) { - LOGD("sender(%s)", sender); - free(sender); - } rpc_port_autofill_svc_save_view_info_h svi = NULL; if (rpc_port_autofill_svc_save_view_info_create(&svi) != 0) { return 0; } + if (sender) { + rpc_port_autofill_svc_save_view_info_set_app_id(svi, sender); + LOGD("sender(%s)", sender); + free(sender); + } + rpc_port_autofill_save_view_info_get_view_id(vi, &view_id); if (view_id) { LOGD("view id : %s", view_id); diff --git a/tidl/autofill_service.tidl b/tidl/autofill_service.tidl index 43b9d9f..311a411 100644 --- a/tidl/autofill_service.tidl +++ b/tidl/autofill_service.tidl @@ -21,6 +21,7 @@ struct autofill_svc_save_item { } struct autofill_svc_save_view_info { + string app_id; string view_id; list items; } -- 2.7.4 From 471651edcbec9374fc3f71e18e72fb7a451cb5d7 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Tue, 22 Jan 2019 17:59:15 +0900 Subject: [PATCH 07/16] Update package version to 1.0.9 Change-Id: Ia916168422a9a016ce38139ae83a9e2e6193d1dc Signed-off-by: Jihoon Kim --- org.tizen.autofilld.xml | 2 +- packaging/org.tizen.autofilld.spec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/org.tizen.autofilld.xml b/org.tizen.autofilld.xml index d976f25..4bad5f9 100644 --- a/org.tizen.autofilld.xml +++ b/org.tizen.autofilld.xml @@ -1,5 +1,5 @@ - + Jihoon Kim autofilld diff --git a/packaging/org.tizen.autofilld.spec b/packaging/org.tizen.autofilld.spec index 5e2de85..092399d 100644 --- a/packaging/org.tizen.autofilld.spec +++ b/packaging/org.tizen.autofilld.spec @@ -1,6 +1,6 @@ Name: org.tizen.autofilld Summary: Autofill Daemon -Version: 1.0.8 +Version: 1.0.9 Release: 1 Group: Graphics & UI Framework/Input License: Apache-2.0 -- 2.7.4 From e7dc4ea5eadc4ac9f66160b6ad7b8150a4ce8370 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Wed, 6 Mar 2019 19:07:38 +0900 Subject: [PATCH 08/16] Remove unused flags Change-Id: I8f78197dc9889d973554ef50391f1b7250aee522 Signed-off-by: Jihoon Kim --- packaging/org.tizen.autofilld.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/org.tizen.autofilld.spec b/packaging/org.tizen.autofilld.spec index 092399d..b7aa945 100644 --- a/packaging/org.tizen.autofilld.spec +++ b/packaging/org.tizen.autofilld.spec @@ -47,7 +47,7 @@ export FFLAGS+=" -DTIZEN_DEBUG_ENABLE -fvisibility=hidden" rm -rf CMakeFiles rm -rf CMakeCache.txt MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'` -cmake . -DCMAKE_INSTALL_PREFIX=/usr -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DLIB_INSTALL_DIR:PATH=%{_libdir} \ +cmake . -DCMAKE_INSTALL_PREFIX=/usr \ -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES make %{?jobs:-j%jobs} -- 2.7.4 From d16ac0723cb9c949aacc33baa713d46533c87ac3 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Thu, 14 Mar 2019 09:56:29 +0900 Subject: [PATCH 09/16] API to send autofill error Change-Id: Id7ed03b3465761660a328ee56136ff76e8681ac5 Signed-off-by: Jihoon Kim --- src/autofill-daemon.c | 69 +++++++++++++++++++++++++++++++++++++++++++--- tidl/autofill.tidl | 9 +++++- tidl/autofill_service.tidl | 9 +++++- 3 files changed, 81 insertions(+), 6 deletions(-) diff --git a/src/autofill-daemon.c b/src/autofill-daemon.c index 804cad4..7466701 100644 --- a/src/autofill-daemon.c +++ b/src/autofill-daemon.c @@ -31,6 +31,7 @@ static rpc_port_proxy_AutofillSvcPort_h svc_rpc_h = NULL; static rpc_port_AutofillSvcPort_autofill_svc_fill_response_cb_h fill_response_received_cb_h = NULL; static rpc_port_AutofillSvcPort_autofill_svc_auth_info_cb_h auth_info_cb_h = NULL; +static rpc_port_AutofillSvcPort_autofill_svc_send_error_cb_h error_info_cb_h = NULL; static int connect_service(); @@ -40,6 +41,7 @@ typedef struct { rpc_port_AutofillAppPort_autofill_auth_info_received_cb_h auth_info_cb; rpc_port_AutofillAppPort_autofill_fill_response_received_cb_h fill_response_received_cb; + rpc_port_AutofillAppPort_autofill_error_info_received_cb_h error_info_cb; } autofill_client_s; static GList *__client_list = NULL; @@ -72,7 +74,8 @@ get_autofill_client(const char *app_id, int context_id) static autofill_client_s *__create_client(const char *app_id, int context_id, rpc_port_AutofillAppPort_autofill_auth_info_received_cb_h auth_info_cb, - rpc_port_AutofillAppPort_autofill_fill_response_received_cb_h fill_response_received_cb) + rpc_port_AutofillAppPort_autofill_fill_response_received_cb_h fill_response_received_cb, + rpc_port_AutofillAppPort_autofill_error_info_received_cb_h error_info_cb) { LOGD(""); autofill_client_s *handle; @@ -110,6 +113,14 @@ static autofill_client_s *__create_client(const char *app_id, int context_id, return NULL; } + rpc_port_AutofillAppPort_autofill_error_info_received_cb_clone(error_info_cb, &handle->error_info_cb); + if (!handle->error_info_cb) { + LOGE("Out of memory"); + free(handle->app_id); + free(handle); + return NULL; + } + return handle; } @@ -131,6 +142,11 @@ static void __destroy_client(gpointer data) handle->fill_response_received_cb = NULL; } + if (handle->error_info_cb) { + rpc_port_AutofillAppPort_autofill_error_info_received_cb_destroy(handle->error_info_cb); + handle->error_info_cb = NULL; + } + if (handle->app_id) { free(handle->app_id); handle->app_id = NULL; @@ -184,7 +200,12 @@ static void __message_terminate(rpc_port_stub_AutofillAppPort_context_h context, __remove_client(context); } -static int __message_register(rpc_port_stub_AutofillAppPort_context_h context, int context_id, rpc_port_AutofillAppPort_autofill_auth_info_received_cb_h auth_info_cb, rpc_port_AutofillAppPort_autofill_fill_response_received_cb_h fill_response_received_cb, void *user_data) +static int __message_register(rpc_port_stub_AutofillAppPort_context_h context, + int context_id, + rpc_port_AutofillAppPort_autofill_auth_info_received_cb_h auth_info_cb, + rpc_port_AutofillAppPort_autofill_fill_response_received_cb_h fill_response_received_cb, + rpc_port_AutofillAppPort_autofill_error_info_received_cb_h error_info_cb, + void *user_data) { LOGD(""); char *sender = NULL; @@ -196,7 +217,7 @@ static int __message_register(rpc_port_stub_AutofillAppPort_context_h context, i LOGD("sender(%s)", sender); - client = __create_client(sender, context_id, auth_info_cb, fill_response_received_cb); + client = __create_client(sender, context_id, auth_info_cb, fill_response_received_cb, error_info_cb); free(sender); if (!client) @@ -585,6 +606,36 @@ static void __auth_info_recv_cb(void *user_data, int context_id, rpc_port_autofi free(service_message); } +static void __error_info_recv_cb(void *user_data, int context_id, rpc_port_autofill_svc_error_info_h svc_error_info_h) +{ + char *app_id = NULL; + char *error_message = NULL; + int error_code = 0; + + rpc_port_autofill_svc_error_info_get_app_id(svc_error_info_h, &app_id); + rpc_port_autofill_svc_error_info_get_error_code(svc_error_info_h, &error_code); + rpc_port_autofill_svc_error_info_get_error_message(svc_error_info_h, &error_message); + + /* transfer error info */ + rpc_port_autofill_error_info_h error_info_h = NULL; + rpc_port_autofill_error_info_create(&error_info_h); + rpc_port_autofill_error_info_set_app_id(error_info_h, app_id); + rpc_port_autofill_error_info_set_error_code(error_info_h, error_code); + rpc_port_autofill_error_info_set_error_message(error_info_h, error_message); + + autofill_client_s *sender_client = get_autofill_client(app_id, context_id); + if (sender_client) + rpc_port_AutofillAppPort_autofill_error_info_received_cb_invoke(sender_client->error_info_cb, error_info_h); + + LOGD("error code : %d, message : %s", error_code, error_message); + + if (app_id) + free(app_id); + + if (error_message) + free(error_message); +} + static void __on_connected(rpc_port_proxy_AutofillSvcPort_h h, void *user_data) { LOGI("[__RPC_PORT__] connected"); @@ -597,10 +648,15 @@ static void __on_connected(rpc_port_proxy_AutofillSvcPort_h h, void *user_data) free(auth_info_cb_h); } + if (error_info_cb_h) { + free(error_info_cb_h); + } + fill_response_received_cb_h = rpc_port_AutofillSvcPort_autofill_svc_fill_response_cb_create(__fill_response_recv_cb, false, NULL); auth_info_cb_h = rpc_port_AutofillSvcPort_autofill_svc_auth_info_cb_create(__auth_info_recv_cb, false, NULL); + error_info_cb_h = rpc_port_AutofillSvcPort_autofill_svc_send_error_cb_create(__error_info_recv_cb, false, NULL); - int r = rpc_port_proxy_AutofillSvcPort_invoke_Register(h, auth_info_cb_h, fill_response_received_cb_h); + int r = rpc_port_proxy_AutofillSvcPort_invoke_Register(h, auth_info_cb_h, fill_response_received_cb_h, error_info_cb_h); if (r != 0) LOGD("Failed to invoke Register"); } @@ -621,6 +677,11 @@ static void __on_disconnected(rpc_port_proxy_AutofillSvcPort_h h, void *user_dat free(auth_info_cb_h); auth_info_cb_h = NULL; } + + if (error_info_cb_h) { + free(error_info_cb_h); + error_info_cb_h = NULL; + } } static void __on_rejected(rpc_port_proxy_AutofillSvcPort_h h, void *user_data) diff --git a/tidl/autofill.tidl b/tidl/autofill.tidl index 6f4ccac..c44c301 100644 --- a/tidl/autofill.tidl +++ b/tidl/autofill.tidl @@ -51,10 +51,17 @@ struct autofill_fill_response { list response_groups; } +struct autofill_error_info { + string app_id; + int error_code; + string error_message; +} + interface AutofillAppPort { void autofill_auth_info_received_cb(autofill_auth_info auth_info) delegate; void autofill_fill_response_received_cb(autofill_fill_response response) delegate; - int Register(int context_id, autofill_auth_info_received_cb auth_info_cb, autofill_fill_response_received_cb fill_response_cb); + void autofill_error_info_received_cb(autofill_error_info error_info) delegate; + int Register(int context_id, autofill_auth_info_received_cb auth_info_cb, autofill_fill_response_received_cb fill_response_cb, autofill_error_info_received_cb error_info_cb); void Unregister(int context_id) async; int request_auth_info(int context_id, autofill_view_info vi); diff --git a/tidl/autofill_service.tidl b/tidl/autofill_service.tidl index 311a411..bd89003 100644 --- a/tidl/autofill_service.tidl +++ b/tidl/autofill_service.tidl @@ -53,10 +53,17 @@ struct autofill_svc_fill_response { list response_groups; } +struct autofill_svc_error_info { + string app_id; + int error_code; + string error_message; +} + interface AutofillSvcPort { void autofill_svc_auth_info_cb(int context_id, autofill_svc_auth_info auth_info) delegate; void autofill_svc_fill_response_cb(int context_id, autofill_svc_fill_response response) delegate; - int Register(autofill_svc_auth_info_cb auth_info_cb, autofill_svc_fill_response_cb fill_response_cb); + void autofill_svc_send_error_cb(int context_id, autofill_svc_error_info error_info) delegate; + int Register(autofill_svc_auth_info_cb auth_info_cb, autofill_svc_fill_response_cb fill_response_cb, autofill_svc_send_error_cb send_error_cb); void Unregister() async; void request_auth_info(int context_id, autofill_svc_view_info vi) async; -- 2.7.4 From 8482ef0569981d4221a7271fb286a19eddcea449 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Thu, 14 Mar 2019 10:37:21 +0900 Subject: [PATCH 10/16] Update package version to 1.0.10 Change-Id: I4267d559a1ee3d2a0f314da71daa527de96bde95 Signed-off-by: Jihoon Kim --- org.tizen.autofilld.xml | 2 +- packaging/org.tizen.autofilld.spec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/org.tizen.autofilld.xml b/org.tizen.autofilld.xml index 4bad5f9..f5b8b20 100644 --- a/org.tizen.autofilld.xml +++ b/org.tizen.autofilld.xml @@ -1,5 +1,5 @@ - + Jihoon Kim autofilld diff --git a/packaging/org.tizen.autofilld.spec b/packaging/org.tizen.autofilld.spec index b7aa945..b7320b6 100644 --- a/packaging/org.tizen.autofilld.spec +++ b/packaging/org.tizen.autofilld.spec @@ -1,6 +1,6 @@ Name: org.tizen.autofilld Summary: Autofill Daemon -Version: 1.0.9 +Version: 1.0.10 Release: 1 Group: Graphics & UI Framework/Input License: Apache-2.0 -- 2.7.4 From 37863ced603ecd8273ad326937b7931b9a78fe06 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Thu, 14 Mar 2019 11:02:30 +0900 Subject: [PATCH 11/16] Change API version Change-Id: I657f3fab476e54e15cb4f8bef64ccd27acce7503 Signed-off-by: Jihoon Kim --- org.tizen.autofilld.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.tizen.autofilld.xml b/org.tizen.autofilld.xml index f5b8b20..451cef8 100644 --- a/org.tizen.autofilld.xml +++ b/org.tizen.autofilld.xml @@ -1,5 +1,5 @@ - + Jihoon Kim autofilld -- 2.7.4 From 1a447d2616943a169a79f56b42454b11507994f9 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Mon, 18 Mar 2019 10:25:58 +0900 Subject: [PATCH 12/16] Fix memory leak issue Dynamic memory referenced by 'handle->auth_info_cb' was allocated at autofill_stub.c:3925 by calling function 'rpc_port_AutofillAppPort_autofill_auth_info_received_cb_clone' at autofill-daemon.c:98 and lost at autofill-daemon.c:121. Change-Id: Ie3bbba42a1dab3688c3d409b6f3374a35335d9f7 Signed-off-by: Jihoon Kim --- src/autofill-daemon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/autofill-daemon.c b/src/autofill-daemon.c index 7466701..34b78a5 100644 --- a/src/autofill-daemon.c +++ b/src/autofill-daemon.c @@ -117,6 +117,8 @@ static autofill_client_s *__create_client(const char *app_id, int context_id, if (!handle->error_info_cb) { LOGE("Out of memory"); free(handle->app_id); + rpc_port_AutofillAppPort_autofill_auth_info_received_cb_destroy(handle->auth_info_cb); + rpc_port_AutofillAppPort_autofill_fill_response_received_cb_destroy(handle->fill_response_received_cb); free(handle); return NULL; } -- 2.7.4 From f5be04e9b04887a298fd5fa079db3a5dc239f2da Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Mon, 18 Mar 2019 10:45:01 +0900 Subject: [PATCH 13/16] Update package version to 1.0.11 Change-Id: I85a7549427e1efa53658435b03edb581e5a0cd6e Signed-off-by: Jihoon Kim --- org.tizen.autofilld.xml | 2 +- packaging/org.tizen.autofilld.spec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/org.tizen.autofilld.xml b/org.tizen.autofilld.xml index 451cef8..a82cf85 100644 --- a/org.tizen.autofilld.xml +++ b/org.tizen.autofilld.xml @@ -1,5 +1,5 @@ - + Jihoon Kim autofilld diff --git a/packaging/org.tizen.autofilld.spec b/packaging/org.tizen.autofilld.spec index b7320b6..ce9db40 100644 --- a/packaging/org.tizen.autofilld.spec +++ b/packaging/org.tizen.autofilld.spec @@ -1,6 +1,6 @@ Name: org.tizen.autofilld Summary: Autofill Daemon -Version: 1.0.10 +Version: 1.0.11 Release: 1 Group: Graphics & UI Framework/Input License: Apache-2.0 -- 2.7.4 From cf071fb4e7acc451fe67c40258252f8adaef107f Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Tue, 19 Mar 2019 16:51:42 +0900 Subject: [PATCH 14/16] Remove code to support error message Change-Id: I0e90b481ae256b6fd052d39822b101d7b1f6ccd3 Signed-off-by: Jihoon Kim --- src/autofill-daemon.c | 8 +------- tidl/autofill.tidl | 1 - tidl/autofill_service.tidl | 1 - 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/autofill-daemon.c b/src/autofill-daemon.c index 34b78a5..e1f1047 100644 --- a/src/autofill-daemon.c +++ b/src/autofill-daemon.c @@ -611,31 +611,25 @@ static void __auth_info_recv_cb(void *user_data, int context_id, rpc_port_autofi static void __error_info_recv_cb(void *user_data, int context_id, rpc_port_autofill_svc_error_info_h svc_error_info_h) { char *app_id = NULL; - char *error_message = NULL; int error_code = 0; rpc_port_autofill_svc_error_info_get_app_id(svc_error_info_h, &app_id); rpc_port_autofill_svc_error_info_get_error_code(svc_error_info_h, &error_code); - rpc_port_autofill_svc_error_info_get_error_message(svc_error_info_h, &error_message); /* transfer error info */ rpc_port_autofill_error_info_h error_info_h = NULL; rpc_port_autofill_error_info_create(&error_info_h); rpc_port_autofill_error_info_set_app_id(error_info_h, app_id); rpc_port_autofill_error_info_set_error_code(error_info_h, error_code); - rpc_port_autofill_error_info_set_error_message(error_info_h, error_message); autofill_client_s *sender_client = get_autofill_client(app_id, context_id); if (sender_client) rpc_port_AutofillAppPort_autofill_error_info_received_cb_invoke(sender_client->error_info_cb, error_info_h); - LOGD("error code : %d, message : %s", error_code, error_message); + LOGD("error code : %x", error_code); if (app_id) free(app_id); - - if (error_message) - free(error_message); } static void __on_connected(rpc_port_proxy_AutofillSvcPort_h h, void *user_data) diff --git a/tidl/autofill.tidl b/tidl/autofill.tidl index c44c301..fbf53b4 100644 --- a/tidl/autofill.tidl +++ b/tidl/autofill.tidl @@ -54,7 +54,6 @@ struct autofill_fill_response { struct autofill_error_info { string app_id; int error_code; - string error_message; } interface AutofillAppPort { diff --git a/tidl/autofill_service.tidl b/tidl/autofill_service.tidl index bd89003..31a4809 100644 --- a/tidl/autofill_service.tidl +++ b/tidl/autofill_service.tidl @@ -56,7 +56,6 @@ struct autofill_svc_fill_response { struct autofill_svc_error_info { string app_id; int error_code; - string error_message; } interface AutofillSvcPort { -- 2.7.4 From 136d8e737863944f262f2a99421ca73104976ace Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Tue, 19 Mar 2019 19:07:13 +0900 Subject: [PATCH 15/16] Update package version to 1.0.12 Change-Id: Ib63a59b3c625ee4fac47118f32c339300ea17dec Signed-off-by: Jihoon Kim --- org.tizen.autofilld.xml | 2 +- packaging/org.tizen.autofilld.spec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/org.tizen.autofilld.xml b/org.tizen.autofilld.xml index a82cf85..004d1d6 100644 --- a/org.tizen.autofilld.xml +++ b/org.tizen.autofilld.xml @@ -1,5 +1,5 @@ - + Jihoon Kim autofilld diff --git a/packaging/org.tizen.autofilld.spec b/packaging/org.tizen.autofilld.spec index ce9db40..8d009c6 100644 --- a/packaging/org.tizen.autofilld.spec +++ b/packaging/org.tizen.autofilld.spec @@ -1,6 +1,6 @@ Name: org.tizen.autofilld Summary: Autofill Daemon -Version: 1.0.11 +Version: 1.0.12 Release: 1 Group: Graphics & UI Framework/Input License: Apache-2.0 -- 2.7.4 From ffb7748d62ccce9006a995eb0f35d59e5039ed56 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Fri, 5 Apr 2019 20:10:46 +0900 Subject: [PATCH 16/16] Make no sleep as daemon Change-Id: Ie2191eb59d059270f65882e570837ba1cfba34da Signed-off-by: Jihoon Kim --- org.tizen.autofilld.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/org.tizen.autofilld.xml b/org.tizen.autofilld.xml index 004d1d6..9b12481 100644 --- a/org.tizen.autofilld.xml +++ b/org.tizen.autofilld.xml @@ -6,6 +6,7 @@ + http://tizen.org/privilege/appmanager.launch -- 2.7.4