diff --git a/.gitignore b/.gitignore index 1a4c519..0d5de00 100644 --- a/.gitignore +++ b/.gitignore @@ -4,5 +4,5 @@ .venv/ build/ dist/ -django_progressive_web_app.egg-info/ +*.egg-info/ .tox/ diff --git a/CHANGELOG.md b/CHANGELOG.md index ebbe20a..9c907f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,3 +3,10 @@ ## 0.1.0 - Initial release + +## 1.0.0 + + - Unit tests + - Add Oritentation on manifest.json + - Add tox + \ No newline at end of file diff --git a/LICENSE.md b/LICENSE.md index aeeef25..9366bfa 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ MIT License (MIT) -Copyright (c) 2014 Scott Vitale +Copyright (c) 2014 Scott Vitale, Silvio Luis and Contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 0c55526..90ef983 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ -django-progressive-web-app +django-pwa ===== This Django app turns your project into a [progressive web app](https://developers.google.com/web/progressive-web-apps/). Navigating to your site on an Android phone will prompt you to add the app to your home screen. -![Prompt for install](https://github.com/svvitale/django-progressive-web-app/raw/master/images/screenshot1.png) +![Prompt for install](https://github.com/silviolleite/django-pwa/raw/master/images/screenshot1.png) -Launching the app from your home screen will display your app [without browser chrome](https://github.com/svvitale/django-progressive-web-app/raw/master/images/screenshot2.png). As such, it's critical that your application provides all navigation within the HTML (no reliance on the browser back or forward button). +Launching the app from your home screen will display your app [without browser chrome](https://github.com/silviolleite/django-pwa/raw/master/images/screenshot2.png). As such, it's critical that your application provides all navigation within the HTML (no reliance on the browser back or forward button). Requirements ===== @@ -15,7 +15,7 @@ Installation Install from PyPI: ``` -pip install django-progressive-web-app +pip install django-pwa ``` Configuration @@ -32,12 +32,12 @@ INSTALLED_APPS = [ Configure your app name, description, and icons in settings.py: ```python -PWA_APP_NAME = 'My Kickass App' -PWA_APP_DESCRIPTION = "Do kickass things all day long without that pesky browser chrome" +PWA_APP_NAME = 'My App' +PWA_APP_DESCRIPTION = "My app description" PWA_APP_THEME_COLOR = '#0A0302' PWA_APP_BACKGROUND_COLOR = '#ffffff' PWA_APP_DISPLAY = 'standalone' -PWA_APP_ORIENTATION = 'portrait-primary' +PWA_APP_ORIENTATION = 'any' PWA_APP_START_URL = '/' PWA_APP_ICONS = [ { diff --git a/pwa/app_settings.py b/pwa/app_settings.py index 8ae7d39..3f846b8 100644 --- a/pwa/app_settings.py +++ b/pwa/app_settings.py @@ -13,7 +13,7 @@ PWA_APP_ROOT_URL = getattr(settings, 'PWA_APP_ROOT_URL', '/') PWA_APP_THEME_COLOR = getattr(settings, 'PWA_APP_THEME_COLOR', '#000') PWA_APP_BACKGROUND_COLOR = getattr(settings, 'PWA_APP_BACKGROUND_COLOR', '#fff') PWA_APP_DISPLAY = getattr(settings, 'PWA_APP_DISPLAY', 'standalone') -PWA_APP_ORIENTATION = getattr(settings, 'PWA_APP_ORIENTATION', 'portrait-primary') +PWA_APP_ORIENTATION = getattr(settings, 'PWA_APP_ORIENTATION', 'any') PWA_APP_START_URL = getattr(settings, 'PWA_APP_START_URL', '/') PWA_APP_ICONS = getattr(settings, 'PWA_APP_ICONS', [ { diff --git a/setup.py b/setup.py index 615982d..44f7b5f 100644 --- a/setup.py +++ b/setup.py @@ -17,16 +17,16 @@ except: os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( - name='django-progressive-web-app', - version='0.1.1', + name='django-pwa', + version='1.0.0', packages=find_packages(), include_package_data=True, license='MIT License', description=short_description, long_description=long_description, - url='http://github.com/svvitale/django-progressive-web-app', - author='Scott Vitale', - author_email='svvitale@gmail.com', + url='http://github.com/silviolleite/django-pwa', + author='Silvio Luis', + author_email='silviolleite@gmail.com', classifiers=[ 'Environment :: Web Environment', 'Framework :: Django', @@ -39,6 +39,7 @@ setup( 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', ], diff --git a/tests/test_view.py b/tests/test_view.py index 79e301f..5014bff 100644 --- a/tests/test_view.py +++ b/tests/test_view.py @@ -33,6 +33,7 @@ class ManifestTest(TestCase): '"display":', '"background_color":', '"theme_color":', + '"orientation":', '"icons":', '"dir":', '"lang":'