Skip to content

Commit

Permalink
Display dummy weather data & valid time on wear
Browse files Browse the repository at this point in the history
The measurements are correctly calculated and each
component is properly placed. Next task is to fetch the
real weather data from phone.
  • Loading branch information
Protino committed Feb 26, 2017
1 parent fd950cd commit daa90ea
Show file tree
Hide file tree
Showing 80 changed files with 72 additions and 0 deletions.
Binary file removed app/app-release.apk
Binary file not shown.
1 change: 1 addition & 0 deletions wear/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
27 changes: 27 additions & 0 deletions wear/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apply plugin: 'com.android.application'


android {
compileSdkVersion 25
buildToolsVersion "25.0.2"

defaultConfig {
applicationId "io.github.protino.sunshine"
minSdkVersion 21
targetSdkVersion 25
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.android.support:wearable:2.0.0'
compile 'com.google.android.gms:play-services-wearable:10.0.1'
}
17 changes: 17 additions & 0 deletions wear/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in C:\Android\sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
12 changes: 12 additions & 0 deletions wear/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.github.protino.sunshine">
<uses-feature android:name="android.hardware.type.watch"/>
<application android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@android:style/Theme.DeviceDefault">

</application>

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package io.github.protino.sunshine;

/**
* Created by Gurupad Mamadapur on 25-Feb-17.
*/

public class WeatherWatchFaceService {
}
Binary file added wear/src/main/res/drawable-hdpi/art_clear.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 added wear/src/main/res/drawable-hdpi/art_clouds.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 added wear/src/main/res/drawable-hdpi/art_fog.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 added wear/src/main/res/drawable-hdpi/art_rain.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 added wear/src/main/res/drawable-hdpi/art_snow.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 added wear/src/main/res/drawable-hdpi/art_storm.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 added wear/src/main/res/drawable-hdpi/ic_clear.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 added wear/src/main/res/drawable-hdpi/ic_cloudy.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 added wear/src/main/res/drawable-hdpi/ic_fog.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.
Binary file added wear/src/main/res/drawable-hdpi/ic_light_rain.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 added wear/src/main/res/drawable-hdpi/ic_logo.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 added wear/src/main/res/drawable-hdpi/ic_rain.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 added wear/src/main/res/drawable-hdpi/ic_snow.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 added wear/src/main/res/drawable-hdpi/ic_storm.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 added wear/src/main/res/drawable-mdpi/art_clear.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 added wear/src/main/res/drawable-mdpi/art_clouds.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 added wear/src/main/res/drawable-mdpi/art_fog.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 added wear/src/main/res/drawable-mdpi/art_rain.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 added wear/src/main/res/drawable-mdpi/art_snow.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 added wear/src/main/res/drawable-mdpi/art_storm.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 added wear/src/main/res/drawable-mdpi/ic_clear.png
Binary file added wear/src/main/res/drawable-mdpi/ic_cloudy.png
Binary file added wear/src/main/res/drawable-mdpi/ic_fog.png
Binary file added wear/src/main/res/drawable-mdpi/ic_light_clouds.png
Binary file added wear/src/main/res/drawable-mdpi/ic_light_rain.png
Binary file added wear/src/main/res/drawable-mdpi/ic_logo.png
Binary file added wear/src/main/res/drawable-mdpi/ic_rain.png
Binary file added wear/src/main/res/drawable-mdpi/ic_snow.png
Binary file added wear/src/main/res/drawable-mdpi/ic_storm.png
Binary file added wear/src/main/res/drawable-xhdpi/art_clear.png
Binary file added wear/src/main/res/drawable-xhdpi/art_clouds.png
Binary file added wear/src/main/res/drawable-xhdpi/art_fog.png
Binary file added wear/src/main/res/drawable-xhdpi/art_rain.png
Binary file added wear/src/main/res/drawable-xhdpi/art_snow.png
Binary file added wear/src/main/res/drawable-xhdpi/art_storm.png
Binary file added wear/src/main/res/drawable-xhdpi/ic_clear.png
Binary file added wear/src/main/res/drawable-xhdpi/ic_cloudy.png
Binary file added wear/src/main/res/drawable-xhdpi/ic_fog.png
Binary file added wear/src/main/res/drawable-xhdpi/ic_logo.png
Binary file added wear/src/main/res/drawable-xhdpi/ic_rain.png
Binary file added wear/src/main/res/drawable-xhdpi/ic_snow.png
Binary file added wear/src/main/res/drawable-xhdpi/ic_storm.png
Binary file added wear/src/main/res/drawable-xxhdpi/art_clear.png
Binary file added wear/src/main/res/drawable-xxhdpi/art_clouds.png
Binary file added wear/src/main/res/drawable-xxhdpi/art_fog.png
Binary file added wear/src/main/res/drawable-xxhdpi/art_rain.png
Binary file added wear/src/main/res/drawable-xxhdpi/art_snow.png
Binary file added wear/src/main/res/drawable-xxhdpi/art_storm.png
Binary file added wear/src/main/res/drawable-xxhdpi/ic_clear.png
Binary file added wear/src/main/res/drawable-xxhdpi/ic_cloudy.png
Binary file added wear/src/main/res/drawable-xxhdpi/ic_fog.png
Binary file added wear/src/main/res/drawable-xxhdpi/ic_logo.png
Binary file added wear/src/main/res/drawable-xxhdpi/ic_rain.png
Binary file added wear/src/main/res/drawable-xxhdpi/ic_snow.png
Binary file added wear/src/main/res/drawable-xxhdpi/ic_storm.png
Binary file added wear/src/main/res/mipmap-hdpi/ic_launcher.png
Binary file added wear/src/main/res/mipmap-mdpi/ic_launcher.png
Binary file added wear/src/main/res/mipmap-xhdpi/ic_launcher.png
Binary file added wear/src/main/res/mipmap-xxhdpi/ic_launcher.png
3 changes: 3 additions & 0 deletions wear/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<resources>
<string name="app_name">Sunshine</string>
</resources>
4 changes: 4 additions & 0 deletions wear/src/main/res/xml/watch_face.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">

</PreferenceScreen>

0 comments on commit daa90ea

Please sign in to comment.