From: Hans-Christoph Steiner Date: Fri, 14 Apr 2017 12:23:07 +0000 (+0200) Subject: support "Author Web Site" as metadata field X-Git-Tag: 0.8~74^2~2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=cb49f57c06fa443cc7037798d7b29bbe2017fec4;p=fdroidserver.git support "Author Web Site" as metadata field Fastlane Supply, Triple-T Gradle Play Publisher, and many app stores include the possibility to specify a website for the author, as distinct from the website for the app. closes #204 --- diff --git a/fdroidserver/metadata.py b/fdroidserver/metadata.py index 1d978dcc..fe7e07f1 100644 --- a/fdroidserver/metadata.py +++ b/fdroidserver/metadata.py @@ -70,6 +70,7 @@ app_fields = set([ 'License', 'Author Name', 'Author Email', + 'Author Web Site', 'Web Site', 'Source Code', 'Issue Tracker', @@ -119,6 +120,7 @@ class App(dict): self.License = 'Unknown' self.AuthorName = None self.AuthorEmail = None + self.AuthorWebSite = None self.WebSite = '' self.SourceCode = '' self.IssueTracker = '' @@ -1199,6 +1201,7 @@ def write_plaintext_metadata(mf, app, w_comment, w_field, w_build): w_field_always('License') w_field_nonempty('Author Name') w_field_nonempty('Author Email') + w_field_nonempty('Author Web Site') w_field_always('Web Site') w_field_always('Source Code') w_field_always('Issue Tracker') diff --git a/tests/metadata/dump/org.adaway.yaml b/tests/metadata/dump/org.adaway.yaml index 7f6d1589..3e5b2394 100644 --- a/tests/metadata/dump/org.adaway.yaml +++ b/tests/metadata/dump/org.adaway.yaml @@ -2,6 +2,7 @@ AntiFeatures: [] ArchivePolicy: null AuthorEmail: null AuthorName: null +AuthorWebSite: null AutoName: AdAway AutoUpdateMode: Version v%v Binaries: null diff --git a/tests/metadata/dump/org.smssecure.smssecure.yaml b/tests/metadata/dump/org.smssecure.smssecure.yaml index 0fdd3372..06b70b8d 100644 --- a/tests/metadata/dump/org.smssecure.smssecure.yaml +++ b/tests/metadata/dump/org.smssecure.smssecure.yaml @@ -2,6 +2,7 @@ AntiFeatures: [] ArchivePolicy: null AuthorEmail: null AuthorName: null +AuthorWebSite: null AutoName: SMSSecure AutoUpdateMode: Version v%v Binaries: null diff --git a/tests/metadata/dump/org.videolan.vlc.yaml b/tests/metadata/dump/org.videolan.vlc.yaml index d905830c..e173fcba 100644 --- a/tests/metadata/dump/org.videolan.vlc.yaml +++ b/tests/metadata/dump/org.videolan.vlc.yaml @@ -2,6 +2,7 @@ AntiFeatures: [] ArchivePolicy: 9 versions AuthorEmail: null AuthorName: null +AuthorWebSite: null AutoName: VLC AutoUpdateMode: None Binaries: null diff --git a/tests/metadata/info.guardianproject.urzip.yml b/tests/metadata/info.guardianproject.urzip.yml index c81f9486..a1650816 100644 --- a/tests/metadata/info.guardianproject.urzip.yml +++ b/tests/metadata/info.guardianproject.urzip.yml @@ -7,6 +7,7 @@ Categories: - 1 - 2.0 CurrentVersionCode: 2147483647 +AuthorWebSite: https://guardianproject.info Description: | It’s Urzip 是一个获得已安装 APK 相关信息的实用工具。它从您的设备上已安装的所有应用开始,一键触摸即可显示 APK 的指纹,并且提供到达 virustotal.com 和 androidobservatory.org 的快捷链接,让您方便地了解特定 APK 的档案。它还可以让您导出签名证书和生成 ApkSignaturePin Pin 文件供 TrustedIntents 库使用。