This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Applied dark theming * Complete redesign/layout/color * redesign relay switching logic
- Loading branch information
Showing
115 changed files
with
1,233 additions
and
664 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
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,51 @@ | ||
import groovy.json.JsonSlurper | ||
|
||
task replaceSettings { | ||
description "Replaces configuration settings." | ||
def jsonSlurper = new JsonSlurper() | ||
def pathToSettingsJson | ||
|
||
if (project.hasProperty("appResourcesPath")) { | ||
pathToSettingsJson = "$project.appResourcesPath/Android/settings.json"; | ||
} else { | ||
pathToSettingsJson = "$rootDir/../../app/App_Resources/Android/settings.json"; | ||
} | ||
|
||
def settingsJsonFile = file(pathToSettingsJson); | ||
def settingsResolvedPath = settingsJsonFile.getAbsolutePath(); | ||
|
||
if(settingsJsonFile.exists()) | ||
{ | ||
println "\t Applying settings from $settingsResolvedPath" | ||
String settingsGradleTemplate = """android { | ||
defaultConfig { | ||
applicationId = "__appId__" | ||
if (__minSdkVersion__) { | ||
minSdkVersion = __minSdkVersion__ | ||
} | ||
if (__targetSdkVersion__) { | ||
targetSdkVersion = __targetSdkVersion__ | ||
} | ||
} | ||
}""" | ||
|
||
def settingsJsonContent = settingsJsonFile.getText("UTF-8"); | ||
def settingsMap = jsonSlurper.parseText(settingsJsonContent); | ||
|
||
for ( setting in settingsMap ) { | ||
def placeholder = "__${setting.key}__"; | ||
def settingValue = setting.value; | ||
|
||
if (settingValue == null) { | ||
settingValue = false | ||
} | ||
|
||
settingsGradleTemplate = settingsGradleTemplate.replaceAll( placeholder, settingValue as String); | ||
} | ||
|
||
new File( "$rootDir/temp_setting.gradle" ).write( settingsGradleTemplate, 'UTF-8'); | ||
apply from: "$rootDir/temp_setting.gradle"; | ||
} | ||
} |
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 @@ | ||
{"appId":"org.nativescript.myhomecontrol","minSdkVersion":null,"targetSdkVersion":null} |
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,39 +1,18 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="__PACKAGE__" | ||
android:versionCode="10000" | ||
android:versionName="1.0"> | ||
|
||
<supports-screens | ||
android:smallScreens="true" | ||
android:normalScreens="true" | ||
android:largeScreens="true" | ||
android:xlargeScreens="true"/> | ||
|
||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> | ||
<uses-permission android:name="android.permission.INTERNET"/> | ||
|
||
<application | ||
android:name="com.tns.NativeScriptApplication" | ||
android:allowBackup="true" | ||
android:icon="@drawable/icon" | ||
android:label="@string/app_name" | ||
android:theme="@style/AppTheme"> | ||
|
||
<activity | ||
android:name="com.tns.NativeScriptActivity" | ||
android:label="@string/title_activity_kimera" | ||
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout|locale|uiMode" | ||
android:theme="@style/LaunchScreenTheme"> | ||
|
||
<meta-data android:name="SET_THEME_ON_LAUNCH" android:resource="@style/AppTheme" /> | ||
|
||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
<activity android:name="com.tns.ErrorReportActivity"/> | ||
</application> | ||
<manifest | ||
xmlns:android="http://schemas.android.com/apk/res/android" package="__PACKAGE__" android:versionCode="10000" android:versionName="1.0"> | ||
<supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" /> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | ||
<application android:name="com.tns.NativeScriptApplication" android:allowBackup="true" android:icon="@drawable/icon" android:label="@string/app_name" android:theme="@style/AppTheme"> | ||
<activity android:name="com.tns.NativeScriptActivity" android:label="@string/title_activity_kimera" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout|locale|uiMode" android:theme="@style/LaunchScreenTheme"> | ||
<meta-data android:name="SET_THEME_ON_LAUNCH" android:resource="@style/AppTheme" /> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
<activity android:name="com.tns.ErrorReportActivity" /> | ||
</application> | ||
</manifest> |
Binary file modified
BIN
-432 Bytes
(88%)
App_Resources/Android/src/main/res/drawable-hdpi/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-192 Bytes
(86%)
App_Resources/Android/src/main/res/drawable-ldpi/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-240 Bytes
(88%)
App_Resources/Android/src/main/res/drawable-mdpi/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-560 Bytes
(90%)
App_Resources/Android/src/main/res/drawable-xhdpi/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-992 Bytes
(91%)
App_Resources/Android/src/main/res/drawable-xxhdpi/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+11.5 KB
(400%)
App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-57.3 KB
(22%)
App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">My Home Control</string> | ||
<string name="title_activity_kimera">My Home Control</string> | ||
</resources> |
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,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">My Home Control</string> | ||
<string name="title_activity_kimera">My Home Control</string> | ||
</resources> |
Binary file modified
BIN
-49.7 KB
(50%)
App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-483 Bytes
(61%)
App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.97 KB
(45%)
App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-4.15 KB
(38%)
App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-506 Bytes
(70%)
App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.3 KB
(51%)
App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-5.58 KB
(40%)
App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-988 Bytes
(63%)
App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png
Oops, something went wrong.
Binary file modified
BIN
-4.16 KB
(45%)
App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-9.51 KB
(35%)
App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-9.51 KB
(35%)
App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-23.4 KB
(25%)
App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-4.02 KB
(44%)
App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png
Oops, something went wrong.
Binary file modified
BIN
-15.6 KB
(30%)
App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-20.3 KB
(27%)
App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+228 KB
(240%)
App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png
Oops, something went wrong.
Binary file modified
BIN
-34.6 KB
(44%)
App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-73.3 KB
(34%)
App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-107 KB
(41%)
App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+225 KB
(240%)
App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png
Oops, something went wrong.
Binary file modified
BIN
+117 Bytes
(100%)
App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-XR.png
Oops, something went wrong.
Binary file modified
BIN
+4.33 KB
(110%)
...ources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-XS-Max.png
Oops, something went wrong.
Binary file modified
BIN
-23.9 KB
(61%)
App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png
Oops, something went wrong.
Binary file modified
BIN
-88.4 KB
(53%)
App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-125 KB
(37%)
App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+854 Bytes
(100%)
App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait-XR.png
Oops, something went wrong.
Binary file modified
BIN
+3.76 KB
(110%)
...sources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait-XS-Max.png
Oops, something went wrong.
Binary file modified
BIN
-22.1 KB
(63%)
App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png
Oops, something went wrong.
Binary file modified
BIN
-84 KB
(54%)
App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-7.65 KB
(62%)
App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png
Oops, something went wrong.
Binary file modified
BIN
-34.6 KB
(44%)
App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+3.05 KB
(280%)
...OS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png
Oops, something went wrong.
Binary file modified
BIN
+11.5 KB
(390%)
...Assets.xcassets/LaunchScreen.AspectFill.imageset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-2.35 KB
(93%)
...Assets.xcassets/LaunchScreen.AspectFill.imageset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-49.4 KB
(24%)
...ources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png
Oops, something went wrong.
Binary file modified
BIN
-165 KB
(18%)
...ces/iOS/Assets.xcassets/LaunchScreen.Center.imageset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-28.8 KB
(69%)
...ces/iOS/Assets.xcassets/LaunchScreen.Center.imageset/[email protected]
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
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,5 @@ | ||
# Why dark? | ||
|
||
It looks at least as good as a light theme and in any case it is more battery efficient and eye friendly. | ||
|
||
An optional light theme might follow. |
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 @@ | ||
# iobroker blockly files |
Oops, something went wrong.