diff --git a/.gitmodules b/.gitmodules index faaef3ef7..c7c668dcb 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,9 +4,6 @@ [submodule "platform/android/luajit-launcher"] path = platform/android/luajit-launcher url = https://github.com/koreader/android-luajit-launcher.git -[submodule "platform/ubuntu-touch/ubuntu-touch-sdl"] - path = platform/ubuntu-touch/ubuntu-touch-sdl - url = https://github.com/koreader/ubuntu-touch-sdl-template [submodule "test"] path = test url = https://github.com/koreader/test-data.git diff --git a/base b/base index 6906e0a75..372590341 160000 --- a/base +++ b/base @@ -1 +1 @@ -Subproject commit 6906e0a7535d4af2be1a2687c0a557da56f431ea +Subproject commit 37259034110335af889510146b2667dc8933c30c diff --git a/doc/config.ld b/doc/config.ld index e462cd644..25243da69 100644 --- a/doc/config.ld +++ b/doc/config.ld @@ -1,6 +1,6 @@ project = 'KOReader' description = 'Multi-platform ebook reader' -full_description = 'An ebook reader application supports PDF, DJVU, EPUB, FB2 and many more formats, running on Kindle, Kobo, PocketBook, Ubuntu Touch and Android devices.' +full_description = 'An ebook reader application supports PDF, DJVU, EPUB, FB2 and many more formats, running on Kindle, Kobo, PocketBook and Android devices.' title = 'KOReader Documentation' dir = 'html' style = '!fixed' diff --git a/kodev b/kodev index a07de6bea..9401df3d0 100755 --- a/kodev +++ b/kodev @@ -148,7 +148,6 @@ TARGET: remarkable remarkable-aarch64 sony-prstux - ubuntu-touch win32 " # shellcheck disable=2155 @@ -181,7 +180,6 @@ function setup_target() { remarkable) ;; remarkable-aarch64) ;; sony-prstux) ;; - ubuntu-touch) ;; # Invalid. *) valid=0 diff --git a/make/ubuntu-touch.mk b/make/ubuntu-touch.mk deleted file mode 100644 index ffd99c8a3..000000000 --- a/make/ubuntu-touch.mk +++ /dev/null @@ -1,28 +0,0 @@ -UBUNTUTOUCH_DIR = $(PLATFORM_DIR)/ubuntu-touch -UBUNTUTOUCH_SDL_DIR = $(UBUNTUTOUCH_DIR)/ubuntu-touch-sdl - -update: all - # ensure that the binaries were built for ARM - file --dereference $(INSTALL_DIR)/koreader/luajit | grep ARM - # remove old package if any - rm -f koreader-ubuntu-touch-$(MACHINE)-$(VERSION).click - $(SYMLINK) $(UBUNTUTOUCH_DIR)/koreader.sh $(INSTALL_DIR)/koreader/ - $(SYMLINK) $(UBUNTUTOUCH_DIR)/manifest.json $(INSTALL_DIR)/koreader/ - $(SYMLINK) $(UBUNTUTOUCH_DIR)/koreader.apparmor $(INSTALL_DIR)/koreader/ - $(SYMLINK) $(UBUNTUTOUCH_DIR)/koreader.apparmor.openstore $(INSTALL_DIR)/koreader/ - $(SYMLINK) $(UBUNTUTOUCH_DIR)/koreader.desktop $(INSTALL_DIR)/koreader/ - $(SYMLINK) $(UBUNTUTOUCH_DIR)/koreader.png $(INSTALL_DIR)/koreader/ - $(SYMLINK) $(UBUNTUTOUCH_DIR)/libSDL2.so $(INSTALL_DIR)/koreader/libs/ - # create new package - cd $(INSTALL_DIR) && pwd && \ - zip -9 -r \ - ../koreader-$(DIST)-$(MACHINE)-$(VERSION).zip \ - koreader -x "koreader/resources/fonts/*" "koreader/ota/*" \ - "koreader/resources/icons/src/*" "koreader/spec/*" \ - $(ZIP_EXCLUDE) - # generate ubuntu touch click package - rm -rf $(INSTALL_DIR)/tmp && mkdir -p $(INSTALL_DIR)/tmp - cd $(INSTALL_DIR)/tmp && \ - unzip ../../koreader-$(DIST)-$(MACHINE)-$(VERSION).zip && \ - click build koreader && \ - mv *.click ../../koreader-$(DIST)-$(MACHINE)-$(VERSION).click diff --git a/platform/ubuntu-touch/koreader.apparmor b/platform/ubuntu-touch/koreader.apparmor deleted file mode 100644 index 9eee14a0c..000000000 --- a/platform/ubuntu-touch/koreader.apparmor +++ /dev/null @@ -1,15 +0,0 @@ -{ - "policy_groups": [ - "networking" - ], - "read_path": [ - "@{HOME}/", - "/media/*/*/[Dd][Oo][Cc][Uu][Mm][Ee][Nn][Tt][Ss]/", - "@{PROC}/*/mounts", - "/dev/disk/by-label/" - ], - "write_path": [ - "@{HOME}/" - ], - "policy_version": 16.04 -} diff --git a/platform/ubuntu-touch/koreader.apparmor.openstore b/platform/ubuntu-touch/koreader.apparmor.openstore deleted file mode 100644 index 9eee14a0c..000000000 --- a/platform/ubuntu-touch/koreader.apparmor.openstore +++ /dev/null @@ -1,15 +0,0 @@ -{ - "policy_groups": [ - "networking" - ], - "read_path": [ - "@{HOME}/", - "/media/*/*/[Dd][Oo][Cc][Uu][Mm][Ee][Nn][Tt][Ss]/", - "@{PROC}/*/mounts", - "/dev/disk/by-label/" - ], - "write_path": [ - "@{HOME}/" - ], - "policy_version": 16.04 -} diff --git a/platform/ubuntu-touch/koreader.desktop b/platform/ubuntu-touch/koreader.desktop deleted file mode 100644 index 2785a3f94..000000000 --- a/platform/ubuntu-touch/koreader.desktop +++ /dev/null @@ -1,11 +0,0 @@ -[Desktop Entry] -Name=Koreader -Comment=Koreader for Ubuntu touch -Exec=koreader.sh -Icon=koreader.png -Terminal=false -Type=Application -MimeType=application/pdf;application/epub+zip -X-Ubuntu-Touch=true -X-Ubuntu-Supported-Orientations=portrait -Categories=Graphics; diff --git a/platform/ubuntu-touch/koreader.png b/platform/ubuntu-touch/koreader.png deleted file mode 100644 index 77323ee92..000000000 Binary files a/platform/ubuntu-touch/koreader.png and /dev/null differ diff --git a/platform/ubuntu-touch/koreader.sh b/platform/ubuntu-touch/koreader.sh deleted file mode 100755 index f1d0d65f0..000000000 --- a/platform/ubuntu-touch/koreader.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -export LC_ALL="en_US.UTF-8" - -# working directory of koreader -KOREADER_DIR="${0%/*}" - -# we're always starting from our working directory -cd "${KOREADER_DIR}" || exit - -# export external font directory -export EXT_FONT_DIR="${HOME}/fonts" - -# set fullscreen mode -export SDL_FULLSCREEN=1 - -RETURN_VALUE=85 - -while [ ${RETURN_VALUE} -eq 85 ]; do - ./reader.lua -d - RETURN_VALUE=$? -done - -exit ${RETURN_VALUE} diff --git a/platform/ubuntu-touch/libSDL2.so b/platform/ubuntu-touch/libSDL2.so deleted file mode 100644 index 550768bff..000000000 Binary files a/platform/ubuntu-touch/libSDL2.so and /dev/null differ diff --git a/platform/ubuntu-touch/manifest.json b/platform/ubuntu-touch/manifest.json deleted file mode 100644 index c5a5dc33c..000000000 --- a/platform/ubuntu-touch/manifest.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "architecture": "armhf", - "description": "An ebook reader application supports PDF, DJVU, EPUB, FB2 and much more, running on Kindle, Kobo, PocketBook, Ubuntu touch and Android devices", - "framework": "ubuntu-sdk-15.04.6", - "hooks": { - "koreader": { - "apparmor": "koreader.apparmor", - "desktop": "koreader.desktop" - } - }, - "maintainer": "Huang Xin ", - "name": "koreader.koreader", - "title": "KOReader", - "version": "0.0.1" -} diff --git a/platform/ubuntu-touch/ubuntu-touch-sdl b/platform/ubuntu-touch/ubuntu-touch-sdl deleted file mode 160000 index 1d0cd7583..000000000 --- a/platform/ubuntu-touch/ubuntu-touch-sdl +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 1d0cd7583c27025a69e340ac77cab3c53cdef8ba