fdroiddata/metadata/com.iven.xdafeedreader.yml
Hans-Christoph Steiner cf4e8a40ff convert all MediaWiki links to HTML links
```python
import yaml, glob, re, os
from fdroidserver import metadata

pat = re.compile(r'\[(https?://[^ \]]+)\s+([^\]]+)\]')

for f in glob.glob('metadata/*.yml'):
    with open(f) as fp:
        data = yaml.load(fp)
    description = data.get('Description', '')
    for m in pat.finditer(data.get('Description', '')):
        link = m.group(1)
        text = m.group(2)
        print(f, link, text, flush=True)
        description = description.replace(m.group(), '<a href="%s">%s</a>' % (link, text))
    data['Description'] = description
    app = metadata.App(data)
    metadata.write_metadata(f, app)
```

```
sed -i 's,^      - true,      - yes,' metadata/*.yml
sed -i 's,^      - false,      - no,' metadata/*.yml
```

closes fdroid-website#510
2020-12-09 19:10:44 +01:00

50 lines
1.6 KiB
YAML

Categories:
- Reading
- Internet
License: GPL-3.0-only
SourceCode: https://github.com/enricocid/xda-feed-reader
AutoName: Xda Feed Reader
Description: |-
<a href="http://www.xda-developers.com/">XDA Developers</a> is a well-known community for
mobile device development and Android hacking.
Builds:
- versionName: '2.0'
versionCode: 5
commit: '2.0'
srclibs:
- Crouton@1.8.1
- 1:FadingActionBar@1c148b91867259ea43e6343d8afb69d106168b46
- 2:LazyList@be926df2ec5ff81693251629748ed38655075393
- JSoup@jsoup-1.8.1.a
extlibs:
- android/android-support-v4r11.jar
prebuild:
- sed -i -e '/Crouton/d' project.properties
- $$MVN3$$ install:install-file -DgroupId=com.google.android -DartifactId=support-v4
-Dversion=r11 -Dpackaging=jar -Dfile=libs/android-support-v4r11.jar
- pushd $$Crouton$$
- $$MVN3$$ package
- popd
- pushd $$JSoup$$
- $$MVN3$$ package
- popd
- cp $$JSoup$$/target/jsoup-1.8.1.jar $$Crouton$$/target/crouton-1.8.1.jar libs/
- pushd $$FadingActionBar$$
- android update lib-project -t android-21 -p ./
- sed -i -e 's/name="library"/name="FadingActionBar"/g' build.xml
- echo "android.library=true" >> project.properties
- popd
- pushd $$LazyList$$
- android update lib-project -t android-21 -p ./
- echo "android.library=true" >> project.properties
- popd
- sed -i -e '/reference\.3/d' project.properties
AutoUpdateMode: None
UpdateCheckMode: None
CurrentVersion: '2.0'
CurrentVersionCode: 5
NoSourceSince: '2.1'