Skip to content

Commit

Permalink
Remove dacap/clip
Browse files Browse the repository at this point in the history
  • Loading branch information
xfangfang committed Oct 17, 2024
1 parent 8b068db commit 2b5be54
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 24 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,3 @@
[submodule "library/MemoryModule"]
path = library/MemoryModule
url = https://github.com/fancycode/MemoryModule.git
[submodule "library/clip"]
path = library/clip
url = https://github.com/dacap/clip.git
2 changes: 0 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,6 @@ if (PLATFORM_DESKTOP)
"${CMAKE_CURRENT_SOURCE_DIR}/scripts/linux/${PACKAGE_NAME}.appdata.xml"
"${CMAKE_CURRENT_SOURCE_DIR}/scripts/linux/${PACKAGE_NAME}.desktop")
endif ()

list(APPEND APP_PLATFORM_LIB clip)
elseif (PLATFORM_IOS)
ios_bundle(
"${CMAKE_CURRENT_SOURCE_DIR}/library/borealis/demo/ios/tvos/Splash.storyboard"
Expand Down
8 changes: 0 additions & 8 deletions library/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,6 @@ set(BUILD_SHARED_LIBS OFF)
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
add_subdirectory(lunasvg EXCLUDE_FROM_ALL)

# add dacap
if (PLATFORM_DESKTOP)
set(CLIP_EXAMPLES OFF)
set(CLIP_TESTS OFF)
add_subdirectory(clip EXCLUDE_FROM_ALL)
target_include_directories(clip PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
endif ()

# add mongoose
if (USE_SYSTEM_MONGOOSE)
find_library(MONGOOSE_LIBRARY NAMES mongoose REQUIRED)
Expand Down
1 change: 0 additions & 1 deletion library/clip
Submodule clip deleted from 94693e
2 changes: 1 addition & 1 deletion wiliwili/source/activity/setting_activity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ void SettingActivity::onContentAvailable() {
ProgramConfig::instance().setSettingItem(SettingItem::HTTP_PROXY, httpProxy);
ProgramConfig::instance().setProxy(httpProxy);
},
"http://127.0.0.1:7890", "wiliwili/setting/app/network/proxy_hint"_i18n, 64);
"wiliwili/setting/app/network/proxy_hint"_i18n, "wiliwili/setting/app/network/proxy_hint"_i18n, 64);

/// Hardware decode
#ifdef PS4
Expand Down
2 changes: 1 addition & 1 deletion wiliwili/source/api/analytics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void Analytics::send() {
cpr::PostCallback(
[](const cpr::Response& r) {
if (r.status_code != 204) {
brls::Logger::error("report event error: {}", r.status_code);
brls::Logger::error("report event error: {} {}", r.status_code, r.error.message);
}
},
cpr::Parameters{
Expand Down
6 changes: 1 addition & 5 deletions wiliwili/source/fragment/share_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
#include <borealis/views/dialog.hpp>
#include <cpr/cpr.h>

#if defined(__APPLE__) || defined(__linux__) || defined(_WIN32)
#include <clip/clip.h>
#endif

#include "fragment/share_dialog.hpp"
#include "view/qr_image.hpp"
#include "view/button_close.hpp"
Expand All @@ -26,7 +22,7 @@ ShareBox::ShareBox() {
#if defined(__APPLE__) || defined(__linux__) || defined(_WIN32)
this->registerClickAction([this](...) {
if (this->action == "clipboard") {
clip::set_text(this->link);
brls::Application::getPlatform()->pasteToClipboard(this->link);
this->eventClipboard.fire();
} else {
brls::Application::getPlatform()->openBrowser(this->link);
Expand Down
2 changes: 1 addition & 1 deletion wiliwili/source/utils/gesture_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#define MAX_DELTA_MOVEMENT 24

// Time in ms to recognize long press
#define LONG_TIME_MS 200 // 200ms
#define LONG_TIME_MS 250 // 250ms
#define LONG_TIME_US (LONG_TIME_MS * 1000)

OsdGestureRecognizer::OsdGestureRecognizer(const OsdGestureEvent::Callback& respond) {
Expand Down
2 changes: 1 addition & 1 deletion wiliwili/source/utils/version_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ void APPVersion::checkUpdate(int delay, bool showUpToDateDialog) {
return;
}
if (r.status_code != 200 || r.text.empty()) {
brls::Logger::error("Cannot check update: {} {}", r.status_code, r.reason);
brls::Logger::error("Cannot check update: {} {}", r.status_code, r.error.message);
if (showUpToDateDialog) {
auto msg = r.reason;
brls::sync([msg]() { brls::Application::notify(msg); });
Expand Down

0 comments on commit 2b5be54

Please sign in to comment.