Skip to content

Commit

Permalink
New Feature: Use the android TTS feature to speech messages
Browse files Browse the repository at this point in the history
  • Loading branch information
to268 committed Aug 24, 2021
1 parent 4573656 commit b60d5ce
Show file tree
Hide file tree
Showing 886 changed files with 92,261 additions and 92,167 deletions.
170 changes: 85 additions & 85 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,85 +1,85 @@
version: 2

jobs:
build:
working_directory: ~/code
docker:
- image: circleci/android:api-29
steps:
- checkout
- restore_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "presentation/build.gradle" }}-{{ checksum "data/build.gradle" }}-{{ checksum "domain/build.gradle" }}
- run:
name: Download dependencies
command: ./gradlew androidDependencies
- save_cache:
paths:
- ~/.gradle
key: jars-{{ checksum "build.gradle" }}-{{ checksum "presentation/build.gradle" }}-{{ checksum "data/build.gradle" }}-{{ checksum "domain/build.gradle" }}
- run:
name: Decrypt and unzip secrets
command: |
openssl aes-256-cbc -d -in secrets.tar.enc -md sha1 -k ${SECRETS_KEY} -iv ${SECRETS_IV} >> secrets.tar
tar xvf secrets.tar
- run:
name: Gradle build
command: ./gradlew :presentation:assembleWithAnalyticsRelease :presentation:bundleWithAnalyticsRelease
- run:
name: Flatten outputs
command: find presentation/build/outputs -mindepth 2 -type f -exec mv -i '{}' presentation/build/outputs/ ';'
- store_artifacts:
path: presentation/build/outputs
- persist_to_workspace:
root: presentation/build/outputs
paths: .

test:
working_directory: ~/code
docker:
- image: circleci/android:api-29
steps:
- checkout
- restore_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "presentation/build.gradle" }}-{{ checksum "data/build.gradle" }}-{{ checksum "domain/build.gradle" }}
- run:
name: Download dependencies
command: ./gradlew androidDependencies
- save_cache:
paths:
- ~/.gradle
key: jars-{{ checksum "build.gradle" }}-{{ checksum "presentation/build.gradle" }}-{{ checksum "data/build.gradle" }}-{{ checksum "domain/build.gradle" }}
- store_test_results:
path: presentation/build/test-results

deploy:
docker:
- image: cibuilds/github:0.10
steps:
- attach_workspace:
at: presentation/build/outputs
- run:
name: "Publish Release on GitHub"
command: ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} ${CIRCLE_TAG} presentation/build/outputs/

workflows:
version: 2
main:
jobs:
- build:
filters:
tags:
only: /^v.*/
- test:
requires:
- build
filters:
tags:
only: /^v.*/
- deploy:
requires:
- test
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/
version: 2

jobs:
build:
working_directory: ~/code
docker:
- image: circleci/android:api-29
steps:
- checkout
- restore_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "presentation/build.gradle" }}-{{ checksum "data/build.gradle" }}-{{ checksum "domain/build.gradle" }}
- run:
name: Download dependencies
command: ./gradlew androidDependencies
- save_cache:
paths:
- ~/.gradle
key: jars-{{ checksum "build.gradle" }}-{{ checksum "presentation/build.gradle" }}-{{ checksum "data/build.gradle" }}-{{ checksum "domain/build.gradle" }}
- run:
name: Decrypt and unzip secrets
command: |
openssl aes-256-cbc -d -in secrets.tar.enc -md sha1 -k ${SECRETS_KEY} -iv ${SECRETS_IV} >> secrets.tar
tar xvf secrets.tar
- run:
name: Gradle build
command: ./gradlew :presentation:assembleWithAnalyticsRelease :presentation:bundleWithAnalyticsRelease
- run:
name: Flatten outputs
command: find presentation/build/outputs -mindepth 2 -type f -exec mv -i '{}' presentation/build/outputs/ ';'
- store_artifacts:
path: presentation/build/outputs
- persist_to_workspace:
root: presentation/build/outputs
paths: .

test:
working_directory: ~/code
docker:
- image: circleci/android:api-29
steps:
- checkout
- restore_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "presentation/build.gradle" }}-{{ checksum "data/build.gradle" }}-{{ checksum "domain/build.gradle" }}
- run:
name: Download dependencies
command: ./gradlew androidDependencies
- save_cache:
paths:
- ~/.gradle
key: jars-{{ checksum "build.gradle" }}-{{ checksum "presentation/build.gradle" }}-{{ checksum "data/build.gradle" }}-{{ checksum "domain/build.gradle" }}
- store_test_results:
path: presentation/build/test-results

deploy:
docker:
- image: cibuilds/github:0.10
steps:
- attach_workspace:
at: presentation/build/outputs
- run:
name: "Publish Release on GitHub"
command: ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} ${CIRCLE_TAG} presentation/build/outputs/

workflows:
version: 2
main:
jobs:
- build:
filters:
tags:
only: /^v.*/
- test:
requires:
- build
filters:
tags:
only: /^v.*/
- deploy:
requires:
- test
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/
34 changes: 17 additions & 17 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
### DESCRIPTION
A short description of the issue.
Example: Conversations aren't marked as read when they are opened from a notification.

### STEPS
1. Steps
2. to
3. reproduce
4. the
5. issue.

### EXPECTED
Describe the expected behaviour.

### OBSERVATIONS
Describe what happens instead of the expected behaviour.

### DESCRIPTION
A short description of the issue.
Example: Conversations aren't marked as read when they are opened from a notification.

### STEPS
1. Steps
2. to
3. reproduce
4. the
5. issue.

### EXPECTED
Describe the expected behaviour.

### OBSERVATIONS
Describe what happens instead of the expected behaviour.

108 changes: 54 additions & 54 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,54 +1,54 @@
# Built application files
*.apk
*.ap_

# Files for the ART/Dalvik VM
*.dex

# Java class files
*.class

# Generated files
bin/
gen/
out/

# Gradle files
.gradle/
build/

# Local configuration file (sdk path, etc)
local.properties

# Proguard folder generated by Eclipse
proguard/

# Log Files
*.log

# Android Studio Navigation editor temp files
.navigation/

# Android Studio captures folder
captures/

# Intellij
*.iml
.idea/*

# Keystore files
*.jks

# Mac .DS_STORE files
*.DS_STORE

# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild

# Google Services (e.g. APIs or Firebase)
google-services.json

# Freeline
freeline.py
freeline/
freeline_project_description.json
# Built application files
*.apk
*.ap_

# Files for the ART/Dalvik VM
*.dex

# Java class files
*.class

# Generated files
bin/
gen/
out/

# Gradle files
.gradle/
build/

# Local configuration file (sdk path, etc)
local.properties

# Proguard folder generated by Eclipse
proguard/

# Log Files
*.log

# Android Studio Navigation editor temp files
.navigation/

# Android Studio captures folder
captures/

# Intellij
*.iml
.idea/*

# Keystore files
*.jks

# Mac .DS_STORE files
*.DS_STORE

# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild

# Google Services (e.g. APIs or Firebase)
google-services.json

# Freeline
freeline.py
freeline/
freeline_project_description.json
Loading

0 comments on commit b60d5ce

Please sign in to comment.