Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/tizen_app_manager/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

* Omit obvious local variable types.
* Reformat with a line length of 100.
* Use wrapper API.

## 0.2.6

Expand Down
8 changes: 4 additions & 4 deletions packages/tizen_app_manager/lib/src/app_context.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ import 'package:tizen_interop/6.0/tizen.dart';
typedef _TerminateAppNative = Int Function(app_context_h);
typedef _TerminateApp = int Function(app_context_h);

final DynamicLibrary _libAppMananger = DynamicLibrary.open(
'libcapi-appfw-app-manager.so.0',
final DynamicLibrary _libAppManager = DynamicLibrary.open(
'libftpw_tizen_app_manager.so',
);
final _TerminateApp _terminateApp =
_libAppMananger.lookupFunction<_TerminateAppNative, _TerminateApp>(
'app_manager_terminate_app',
_libAppManager.lookupFunction<_TerminateAppNative, _TerminateApp>(
'ftpw_tizen_app_manager_app_manager_terminate_app',
);

class AppContext {
Expand Down
17 changes: 17 additions & 0 deletions packages/tizen_app_manager/tizen/inc/ftpw_tizen_app_manager.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright 2026 Samsung Electronics Co., Ltd. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_TIZEN_PLUGINS_WRAPPER_TIZEN_APP_MANAGER_H_
#define FLUTTER_TIZEN_PLUGINS_WRAPPER_TIZEN_APP_MANAGER_H_

#ifdef __cplusplus
extern "C" {
#endif

int ftpw_tizen_app_manager_app_manager_terminate_app(void *context);

#ifdef __cplusplus
}
#endif

#endif
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 4 additions & 0 deletions packages/tizen_app_manager/tizen/project_def.prop
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ USER_CPP_UNDEFS =
USER_INC_DIRS = inc src
USER_INC_FILES =
USER_CPP_INC_FILES =

# User libraries
USER_LIB_DIRS += lib/${BUILD_ARCH}
USER_LIBS += ftpw_tizen_app_manager
Loading