-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/1.5.0' into main
- Loading branch information
Showing
39 changed files
with
572 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Deploy app | ||
on: | ||
create: | ||
tags: | ||
- | ||
jobs: | ||
analyze-and-test: | ||
name: run analyze code and basic tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: configure enviroment | ||
uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '12' | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: '8.x' | ||
- uses: subosito/flutter-action@v1 | ||
with: | ||
channel: 'beta' | ||
- run: dart .tool/env.dart | ||
env: | ||
API_KEY_TMDB: ${{ secrets.API_KEY_TMDB }} | ||
- name: get flutter dependencies | ||
run: flutter pub get | ||
- name: get node dependencies | ||
run: npm install | ||
- name: enable flutter web | ||
run: flutter config --enable-web | ||
- name: verify assets | ||
run: comparejson -e ./assets/i18n/*.json | ||
- name: code analyze | ||
run: flutter analyze | ||
- name: unit tests | ||
run: flutter test | ||
- name: build web app | ||
run: flutter build web -t lib/main_prod.dart | ||
- name: minimize assets | ||
run: npm run minimize | ||
- name: deploy to web | ||
uses: w9jds/firebase-action@master | ||
with: | ||
args: deploy --only hosting | ||
env: | ||
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Integration test | ||
on: | ||
push: | ||
branches: | ||
- "main" | ||
- "develop" | ||
jobs: | ||
android-integration-test: | ||
name: run integration test on Android emulator | ||
runs-on: macos-latest | ||
steps: | ||
- name: configure enviroment | ||
uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: '8.x' | ||
- run: echo $SIGNING_KEY | base64 -d > android/app/key.jks | ||
env: | ||
SIGNING_KEY: ${{ secrets.SIGNING_KEY }} | ||
- uses: subosito/flutter-action@v1 | ||
with: | ||
channel: 'stable' | ||
- run: dart .tool/env.dart | ||
env: | ||
API_KEY_TMDB: ${{ secrets.API_KEY_TMDB }} | ||
- run: flutter pub get | ||
- run: flutter pub get | ||
- name: code analyze | ||
run: flutter analyze | ||
- name: unit tests | ||
run: flutter test | ||
- name: run tests | ||
timeout-minutes: 30 | ||
env: | ||
KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }} | ||
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} | ||
ALIAS: ${{ secrets.ALIAS }} | ||
KEY_PATH: key.jks | ||
uses: reactivecircus/android-emulator-runner@v2 | ||
with: | ||
api-level: 29 | ||
profile: pixel | ||
script: | | ||
/Users/runner/Library/Android/sdk/tools/bin/avdmanager list | ||
flutter pub get | ||
flutter drive --target=test_driver/app.dart --flavor dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,26 @@ | ||
name: Test | ||
name: Analyze code and basic tests | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
jobs: | ||
build-and-test: | ||
analyze-and-test: | ||
name: run analyze code and basic tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: configure enviroment | ||
uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: '12.x' | ||
- uses: subosito/flutter-action@v1.4.0 | ||
java-version: '8.x' | ||
- uses: subosito/flutter-action@v1 | ||
with: | ||
flutter-version: '1.22.1' | ||
channel: 'stable' | ||
- run: dart .tool/env.dart | ||
env: | ||
API_KEY_TMDB: ${{ secrets.API_KEY_TMDB }} | ||
- run: flutter pub get | ||
- run: flutter analyze | ||
- run: flutter build aot -t lib/main_dev.dart | ||
- name: code analyze | ||
run: flutter analyze | ||
- name: unit tests | ||
run: flutter test | ||
- name: aot build | ||
run: flutter build aot -t lib/main_dev.dart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
.svn/ | ||
lib/config/env.dart | ||
.fvm/ | ||
package-lock.json | ||
|
||
# IntelliJ related | ||
*.iml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
const minify = require('@node-minify/core'); | ||
const babelMinify = require('@node-minify/babel-minify'); | ||
const cleanCSS = require('@node-minify/clean-css'); | ||
const htmlMinifier = require('@node-minify/html-minifier'); | ||
const jsonminify = require('@node-minify/jsonminify'); | ||
|
||
minify({ | ||
compressor: babelMinify, | ||
input: 'build/web/flutter_service_worker.js', | ||
output: 'build/web/flutter_service_worker.js', | ||
callback: function (err, min) { | ||
if (err) { | ||
console.log('Error to minify flutter_service_worker.js. ', err); | ||
} | ||
} | ||
}); | ||
|
||
minify({ | ||
compressor: cleanCSS, | ||
input: 'build/web/style.css', | ||
output: 'build/web/style.css', | ||
callback: function (err, min) { | ||
if (err) { | ||
console.log('Error to minify style.css. ', err); | ||
} | ||
} | ||
}); | ||
|
||
minify({ | ||
compressor: htmlMinifier, | ||
input: 'build/web/404.html', | ||
output: 'build/web/404.html', | ||
callback: function (err, min) { | ||
if (err) { | ||
console.log('Error to minify 404.html. ', err); | ||
} | ||
} | ||
}); | ||
|
||
minify({ | ||
compressor: htmlMinifier, | ||
input: 'build/web/index.html', | ||
output: 'build/web/index.html', | ||
callback: function (err, min) { | ||
if (err) { | ||
console.log('Error to minify index.html. ', err); | ||
} | ||
} | ||
}); | ||
|
||
minify({ | ||
compressor: jsonminify, | ||
input: 'build/web/assets/assets/i18n/en.json', | ||
output: 'build/web/assets/assets/i18n/en.json', | ||
callback: function (err, min) { | ||
if (err) { | ||
console.log('Error to minify en.json. ', err); | ||
} | ||
} | ||
}); | ||
minify({ | ||
compressor: jsonminify, | ||
input: 'build/web/assets/assets/i18n/es.json', | ||
output: 'build/web/assets/assets/i18n/es.json', | ||
callback: function (err, min) { | ||
if (err) { | ||
console.log('Error to minify es.json. ', err); | ||
} | ||
} | ||
}); | ||
minify({ | ||
compressor: jsonminify, | ||
input: 'build/web/assets/assets/i18n/pt.json', | ||
output: 'build/web/assets/assets/i18n/pt.json', | ||
callback: function (err, min) { | ||
if (err) { | ||
console.log('Error to minify pt.json. ', err); | ||
} | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version ="1.0" encoding ="utf-8"?> | ||
<actions> | ||
<action intentName="actions.intent.OPEN_APP_FEATURE"> | ||
<fulfillment urlTemplate="https://tvrandshow.com/getRandomEpisode{?tvshow}"> | ||
<parameter-mapping | ||
intentParameter="feature" | ||
urlParameter="tvshow" /> | ||
</fulfillment> | ||
</action> | ||
</actions> |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Privacy policy | ||
|
||
Created: December 25, 2020 | ||
|
||
## Who makes TV Randshow | ||
|
||
TV Randshow and its services are provided by Matias de Andrea in Spain | ||
|
||
## App permissions | ||
|
||
What follows are explanations of why TV Randshow requires certain permissions. | ||
|
||
Full network access | ||
View network connections | ||
Required to send data to and receive data from the internet and to behave well if the connectivity of your device changes. | ||
|
||
## Contacting TV Randshow | ||
|
||
If you contact me (such as via Email), I may keep a record of your communications to help solve any issues you might be facing. I may use your email address or contact data to inform you about TV Randshow, such as letting you know about upcoming changes or improvements. | ||
|
||
You can contact me via deandreamatias@gmail.com if you want your contact data and sent messages to be deleted. | ||
|
||
## About TV Randshow | ||
|
||
### Powered by | ||
|
||
![TMDB](https://raw.githubusercontent.com/deandreamatias/tv-randshow/main/images/tmdb.svg) | ||
|
||
### Further Resources | ||
|
||
[Detailed list of changes](https://github.com/deandreamatias/tv-randshow/releases) | ||
Source Code in [GitHub code repository](https://github.com/deandreamatias/tv-randshow) | ||
|
||
Made on Spain. Matias de Andrea. | ||
Android, Google Play and the Google Play logo are trademarks of Google Inc. | ||
TV information and images are provided by TMDb, but we are not endorsed or certified by TMDb.com or its affiliates. |
Oops, something went wrong.