Home assistant android github
📱 Home Assistant Companion for Android
If you are looking for documentation around the companion applications check out the Home Assistant Companion Documentation. This will give you instructions on using the applications.
Setup Development Environment
Download and install Android Studio
Create a Firebase project at Firebase Console
Add an Android app to your Firebase project, follow the on screen instruction download the google-services.json to your home-assistant-Android/app folder
Use Android Studio open your source code folder and click Run -> Run ‘app’
Connect your phone or create a new virtual device following on screen instruction
Testing Dev Releases
We are using Travis to perform continuous integration both by unit testing, deploying dev releases to Firebase App Distribution and final releases to the Play Store when we add a git tag.
We are using ktlint as our linter. You can run a check locally on your machine with:
This commands runs on our CI to check if your PR passes all tests. So we strongly recommend running it before committing.
To run a check with an auto-format:
The project currently uses lokalise to translate the application. If you are interested in helping translate go the the link and click start translating!
Источник
Home assistant android github
📱 Home Assistant Companion for Android
If you are looking for documentation around the companion applications check out the Home Assistant Companion Documentation. This will give you instructions on using the applications.
Setup Development Environment
Download and install Android Studio
Create a Firebase project at Firebase Console
Add an Android app to your Firebase project, follow the on screen instruction download the google-services.json to your home-assistant-Android/app folder
Use Android Studio open your source code folder and click Run -> Run ‘app’
Connect your phone or create a new virtual device following on screen instruction
Testing Dev Releases
We are using Travis to perform continuous integration both by unit testing, deploying dev releases to Firebase App Distribution and final releases to the Play Store when we add a git tag.
We are using ktlint as our linter. You can run a check locally on your machine with:
This commands runs on our CI to check if your PR passes all tests. So we strongly recommend running it before committing.
To run a check with an auto-format:
The project currently uses lokalise to translate the application. If you are interested in helping translate go the the link and click start translating!
Источник
Home assistant android github
📱 Home Assistant Companion for Android
If you are looking for documentation around the companion applications check out the Home Assistant Companion Documentation. This will give you instructions on using the applications.
Setup Development Environment
Download and install Android Studio
Create a Firebase project at Firebase Console
Add an Android app to your Firebase project, follow the on screen instruction download the google-services.json to your home-assistant-Android/app folder
Use Android Studio open your source code folder and click Run -> Run ‘app’
Connect your phone or create a new virtual device following on screen instruction
Testing Dev Releases
We are using Travis to perform continuous integration both by unit testing, deploying dev releases to Firebase App Distribution and final releases to the Play Store when we add a git tag.
We are using ktlint as our linter. You can run a check locally on your machine with:
This commands runs on our CI to check if your PR passes all tests. So we strongly recommend running it before committing.
To run a check with an auto-format:
The project currently uses lokalise to translate the application. If you are interested in helping translate go the the link and click start translating!
Источник
Home assistant android github
📱 Home Assistant Companion for Android
If you are looking for documentation around the companion applications check out the Home Assistant Companion Documentation. This will provide you instructions on using the applications.
Setup App Development Environment
Download and install Android Studio
Download / clone this repository to a folder on your computer
Create a Firebase project at Firebase Console
Create four Android apps, with following package names
Now download the google-services.json file and put it in the home-assistant-Android/app folder. This file contains the configuration of the whole project (all the four applications).
You can also use the mock services file instead of generating your own The file should contain client IDs for all packages listed above for debugging to work properly. If you do not generate your own file push notification will never work
Start Android Studio, open your source code folder and check if the Gradle build will be successful using Build/Make Module «App». You might have to install the right Android SDK via Tools/SDK Manager first.
Create keystore containing keypair for debug application signing. In Android Studio: Menu/Build/Generate signed APK, then use a button to create new keystore. Remember the passwords and key alias
Set environmental variables used in app/build.gradle.kts :
Run the build using gradlew build from command line.
If the build is successful, you can run the app by doing the following: click Run -> Run ‘app’
Connect your phone or create a new virtual device following on screen instruction
If you get stuck while setting up your own environment, you can ask questions in the #devs_mobile_apps channel on Discord.
If you want to work on push notifications or use a development build with push notifications, please go the server side code HERE and deploy it to your firebase project. Once you have your androidV1 URL to the deployed service, set it in to your $
You can also define the rate limit function URL, e.g.:
The Android app has both a full flavor that uses Google Play Services to offer features like location tracking and notifications. There is also a minimal flavor that does not require Google Play Services and can be found in the releases section. The minimal flavor does not have location tracking or notifications.
Testing Dev Releases
We are using Github Actions to perform continuous integration both by unit testing, deploying dev releases to Play Store Beta and final releases to the Play Store when we release. To help test out a specific feature/fixes users can find the APK on the Actions page for each pull request, this debug APK can be installed side-by-side the production or beta builds.
We are using ktlint as our linter. You can run a check locally on your machine with:
This commands runs on our CI to check if your PR passes all tests. So we strongly recommend running it before committing.
To run a check with an auto-format:
The project currently uses lokalise to translate the application. If you are interested in helping translate go to the link and click start translating!
Источник
Home assistant android github
📱 Home Assistant Companion for Android
If you are looking for documentation around the companion applications check out the Home Assistant Companion Documentation. This will give you instructions on using the applications.
Setup Development Environment
Download and install Android Studio
Download / clone this repository to a folder on your computer
Create a Firebase project at Firebase Console
Create two Android apps, one with io.homeassistant.companion.android and one with io.homeassistant.companion.android.debug as package name
Now download the google-services.json file and put it in the home-assistant-Android/app folder
You can also use the mock services file instead of generating your own The file should contain client IDs for io.homeassistant.companion.android and io.homeassistant.companion.android.debug for debugging to work properly
Start Android Studio, open your source code folder and check if the Gradle build will be successful
If the build is successful, you can run the app by doing the following: click Run -> Run ‘app’
Connect your phone or create a new virtual device following on screen instruction
If you get stuck while setting up your own environment, you can ask questions in the #devs_apps channel on Discord.
Testing Dev Releases
We are using Travis to perform continuous integration both by unit testing, deploying dev releases to Firebase App Distribution and final releases to the Play Store when we add a git tag.
We are using ktlint as our linter. You can run a check locally on your machine with:
This commands runs on our CI to check if your PR passes all tests. So we strongly recommend running it before committing.
To run a check with an auto-format:
The project currently uses lokalise to translate the application. If you are interested in helping translate go the the link and click start translating!
Источник