Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update gitignore * Remove idea file * Remove fcm * Remove test folder * Clear resources * Create onboarding activity * Discovery fragment * Manual setup fragment * Authentication fragment * WebView Activity * Handle back press * Save session * refresh token * Settings activity * Clear read me * Use JSONObject to serialize json. Check token each time the frontend hit getExternalAuth Use Android client id
- Loading branch information
1 parent
5cf20a5
commit e54311e
Showing
75 changed files
with
999 additions
and
563 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 |
---|---|---|
@@ -1,13 +1,8 @@ | ||
*.iml | ||
.gradle | ||
/local.properties | ||
/.idea/caches | ||
/.idea/libraries | ||
/.idea/modules.xml | ||
/.idea/workspace.xml | ||
/.idea/navEditor.xml | ||
/.idea/assetWizardSettings.xml | ||
.DS_Store | ||
/build | ||
/captures | ||
.externalNativeBuild | ||
|
||
local.properties | ||
|
||
*.iml | ||
.idea/ | ||
.gradle/ | ||
build/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,16 +1 @@ | ||
# :iphone: Home Assistant Companion for Android | ||
|
||
## Setup Development Environment | ||
|
||
- Download and install [Android Studio](https://developer.android.com/studio) | ||
|
||
- Create a Firebase project at [Firebase Console](https://console.firebase.google.com) | ||
|
||
- 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 | ||
|
||
- :tada: | ||
# :iphone: Home Assistant Companion for Android |
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
24 changes: 0 additions & 24 deletions
24
app/src/androidTest/java/io/homeassistant/android/ExampleInstrumentedTest.kt
This file was deleted.
Oops, something went wrong.
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,42 +1,34 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
package="io.homeassistant.android"> | ||
|
||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> | ||
<uses-permission android:name="com.google.android.gms.permission.ACTIVITY_RECOGNITION" /> | ||
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" /> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
|
||
<application | ||
android:name=".HomeAssistantApplication" | ||
android:allowBackup="true" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:roundIcon="@mipmap/ic_launcher_round" | ||
android:supportsRtl="true" | ||
android:theme="@style/AppTheme"> | ||
<meta-data | ||
android:name="com.google.firebase.messaging.default_notification_icon" | ||
android:resource="@drawable/ic_stat_home" /> | ||
<meta-data | ||
android:name="com.google.firebase.messaging.default_notification_color" | ||
android:resource="@color/colorPrimary" /> | ||
<meta-data | ||
android:name="com.google.firebase.messaging.default_notification_channel_id" | ||
android:value="@string/default_notification_channel_id" /> | ||
<activity android:name=".MainActivity"> | ||
android:theme="@style/Theme.HomeAssistant" | ||
android:usesCleartextTraffic="true" | ||
tools:ignore="GoogleAppIndexingWarning"> | ||
|
||
<activity android:name=".io.homeassistant.android.launch.LaunchActivity"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
<service | ||
android:name=".MessagingService" | ||
android:exported="false"> | ||
<intent-filter> | ||
<action android:name="com.google.firebase.MESSAGING_EVENT" /> | ||
</intent-filter> | ||
</service> | ||
|
||
<activity android:name=".onboarding.OnboardingActivity" /> | ||
|
||
<activity android:name=".webview.WebViewActivity" /> | ||
|
||
<activity android:name=".settings.SettingsActivity" /> | ||
|
||
</application> | ||
|
||
</manifest> |
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,14 @@ | ||
package io.homeassistant.android | ||
|
||
import android.app.Application | ||
import io.homeassistant.android.api.Session | ||
|
||
class HomeAssistantApplication : Application() { | ||
|
||
override fun onCreate() { | ||
super.onCreate() | ||
|
||
Session.init(this) | ||
} | ||
|
||
} |
Oops, something went wrong.