Use README as index page, add share page with explanation

This commit is contained in:
Sylvia van Os
2019-12-02 13:14:15 +01:00
parent 5e836758e5
commit 07c74b79f3
4 changed files with 14 additions and 3 deletions

View File

@@ -130,6 +130,6 @@
<string name="intent_import_card_from_url">Import loyalty card</string>
<string name="intent_import_card_from_url_share_text">I want to share a loyalty card with you</string>
<string name="intent_import_card_from_url_host" translatable="false">github.com</string>
<string name="intent_import_card_from_url_path_prefix" translatable="false">/brarcher/loyalty-card-locker</string>
<string name="intent_import_card_from_url_host" translatable="false">brarcher.github.io</string>
<string name="intent_import_card_from_url_path_prefix" translatable="false">/loyalty-card-locker/share</string>
</resources>

View File

@@ -611,7 +611,7 @@ public class LoyaltyCardViewActivityTest
@Test
public void importCard()
{
Uri importUri = Uri.parse("https://github.com/brarcher/loyalty-card-locker?store=Example%20Store&note=&cardid=123456&barcodetype=AZTEC&headercolor=-416706&headertextcolor=-1");
Uri importUri = Uri.parse("https://brarcher.github.io/loyalty-card-locker/share?store=Example%20Store&note=&cardid=123456&barcodetype=AZTEC&headercolor=-416706&headertextcolor=-1");
Intent intent = new Intent();
intent.setData(importUri);

1
docs/index.md Symbolic link
View File

@@ -0,0 +1 @@
../README.md

10
docs/share.md Normal file
View File

@@ -0,0 +1,10 @@
# Shared Loyalty Card
Someone wants to share a loyalty card with you. To import this loyalty card, you will first need to install the Loyalty Card Locker app. It is free, Open Source and contains no ads.
<a href="https://f-droid.org/repository/browse/?fdid=protect.card_locker" target="_blank">
<img src="https://f-droid.org/badge/get-it-on.png" alt="Get it on F-Droid" height="90"/></a>
<a href="https://play.google.com/store/apps/details?id=protect.card_locker" target="_blank">
<img src="https://play.google.com/intl/en_us/badges/images/generic/en-play-badge.png" alt="Get it on Google Play" height="90"/></a>
After installing the app, just click the link you were given again and choose "Import loyalty card".