Skip to content

Commit 734f4fa

Browse files
authored
Preparing AppStore support (#134)
### Added - NextcloudApp: The `ex_app.verify_version` function to simply check whether the application has been updated. ### Changed - NextcloudApp: Updated `info.xml` in examples to reflect upcoming changes in the [AppStore](nextcloud/appstore#1145) --- Hopefully, starting from this version there will be availability to upload applications into the AppStore(will be in beta stage) Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
1 parent fe10135 commit 734f4fa

File tree

18 files changed

+78
-28
lines changed

18 files changed

+78
-28
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [0.3.0 - 2023-09-28]
6+
7+
### Added
8+
9+
- NextcloudApp: The `ex_app.verify_version` function to simply check whether the application has been updated.
10+
11+
### Changed
12+
13+
- NextcloudApp: Updated `info.xml` in examples to reflect upcoming changes in the [AppStore](https://github.com/nextcloud/appstore/pull/1145)
14+
515
## [0.2.2 - 2023-09-26]
616

717
### Added

docs/reference/ExApp.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. py:currentmodule:: nc_py_api.ex_app
22
3-
External Application
4-
====================
3+
AppAPI Application
4+
==================
55

66
Constants
77
---------
@@ -17,6 +17,8 @@ Special functions
1717

1818
.. autofunction:: persistent_storage
1919

20+
.. autofunction:: verify_version
21+
2022
User Interface(UI)
2123
------------------
2224

@@ -26,7 +28,7 @@ UI methods should be accessed with the help of :class:`~nc_py_api.nextcloud.Next
2628
2729
# this is an example, in most cases you will get `NextcloudApp` class instance as input param.
2830
nc = NextcloudApp()
29-
nc.ui.files_dropdown_menu.register(...)
31+
nc.ex_app.ui.files_dropdown_menu.register(...)
3032
3133
.. autoclass:: nc_py_api.ex_app.ui.ui.UiApi
3234
:members:

docs/reference/Nextcloud.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Nextcloud
44
=========
55

6-
Two base classes for working with NextCloud. The first for working as a client, the second as an application.
6+
Two base classes for working with Nextcloud. The first for working as a client, the second as an application.
77

88
All required functionality is incorporated in them, they contains all other classes required to work with the Nextcloud.
99

docs/reference/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ Reference
55
:maxdepth: 2
66

77
Nextcloud
8+
ExApp
89
Apps
910
ActivityApp
1011
Files/index.rst
1112
Users/index.rst
12-
ExApp
1313
Exceptions
1414
Talk
1515
TalkBot

examples/as_app/skeleton/appinfo/info.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<dependencies>
1919
<nextcloud min-version="27" max-version="28"/>
2020
</dependencies>
21-
<ex-app>
21+
<external-app>
2222
<docker-install>
2323
<registry>ghcr.io</registry>
2424
<image>cloud-py-api/skeleton</image>
@@ -31,6 +31,6 @@
3131
</optional>
3232
</scopes>
3333
<protocol>http</protocol>
34-
<system>0</system>
35-
</ex-app>
34+
<system>false</system>
35+
</external-app>
3636
</info>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nc_py_api[app]>=0.2.0
1+
nc_py_api[app]>=0.3.0

examples/as_app/talk_bot/appinfo/info.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<dependencies>
1919
<nextcloud min-version="27" max-version="28"/>
2020
</dependencies>
21-
<ex-app>
21+
<external-app>
2222
<docker-install>
2323
<registry>ghcr.io</registry>
2424
<image>cloud-py-api/talk_bot</image>
@@ -33,6 +33,6 @@
3333
</optional>
3434
</scopes>
3535
<protocol>http</protocol>
36-
<system>0</system>
37-
</ex-app>
36+
<system>false</system>
37+
</external-app>
3838
</info>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nc_py_api[app]>=0.2.0
1+
nc_py_api[app]>=0.3.0

examples/as_app/talk_bot_ai/appinfo/info.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<dependencies>
1919
<nextcloud min-version="27" max-version="28"/>
2020
</dependencies>
21-
<ex-app>
21+
<external-app>
2222
<docker-install>
2323
<registry>ghcr.io</registry>
2424
<image>cloud-py-api/talk_bot_ai</image>
@@ -33,6 +33,6 @@
3333
</optional>
3434
</scopes>
3535
<protocol>http</protocol>
36-
<system>0</system>
37-
</ex-app>
36+
<system>false</system>
37+
</external-app>
3838
</info>

examples/as_app/talk_bot_ai/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
nc_py_api[app]>=0.2.1
1+
nc_py_api[app]>=0.3.0
22
transformers>=4.33
33
torch
44
torchvision

0 commit comments

Comments
 (0)