]> hydra-www.ietfng.org Git - acmetensortoys-watchviz/commitdiff
Add a skeletal phone app for eventual store delivery?
authorNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Wed, 8 Jun 2016 18:35:07 +0000 (14:35 -0400)
committerNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Thu, 9 Jun 2016 03:56:01 +0000 (23:56 -0400)
17 files changed:
phoneapp/.gitignore [new file with mode: 0644]
phoneapp/build.gradle [new file with mode: 0644]
phoneapp/proguard-rules.pro [new file with mode: 0644]
phoneapp/src/main/AndroidManifest.xml [new file with mode: 0644]
phoneapp/src/main/java/com/acmetensortoys/watchviz/MainActivity.java [new file with mode: 0644]
phoneapp/src/main/res/layout/activity_main.xml [new file with mode: 0644]
phoneapp/src/main/res/mipmap-hdpi/ic_launcher.png [new file with mode: 0644]
phoneapp/src/main/res/mipmap-mdpi/ic_launcher.png [new file with mode: 0644]
phoneapp/src/main/res/mipmap-xhdpi/ic_launcher.png [new file with mode: 0644]
phoneapp/src/main/res/mipmap-xxhdpi/ic_launcher.png [new file with mode: 0644]
phoneapp/src/main/res/mipmap-xxxhdpi/ic_launcher.png [new file with mode: 0644]
phoneapp/src/main/res/values-w820dp/dimens.xml [new file with mode: 0644]
phoneapp/src/main/res/values/colors.xml [new file with mode: 0644]
phoneapp/src/main/res/values/dimens.xml [new file with mode: 0644]
phoneapp/src/main/res/values/strings.xml [new file with mode: 0644]
phoneapp/src/main/res/values/styles.xml [new file with mode: 0644]
settings.gradle

diff --git a/phoneapp/.gitignore b/phoneapp/.gitignore
new file mode 100644 (file)
index 0000000..796b96d
--- /dev/null
@@ -0,0 +1 @@
+/build
diff --git a/phoneapp/build.gradle b/phoneapp/build.gradle
new file mode 100644 (file)
index 0000000..e46e822
--- /dev/null
@@ -0,0 +1,29 @@
+apply plugin: 'com.android.application'
+
+android {
+    compileSdkVersion 23
+    buildToolsVersion "23.0.3"
+
+    defaultConfig {
+        applicationId "com.acmetensortoys.watchviz"
+        minSdkVersion 9
+        targetSdkVersion 23
+        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.android.support:appcompat-v7:23.4.0'
+}
+
+dependencies {
+    wearApp project(':app')
+}
\ No newline at end of file
diff --git a/phoneapp/proguard-rules.pro b/phoneapp/proguard-rules.pro
new file mode 100644 (file)
index 0000000..23c6bbc
--- /dev/null
@@ -0,0 +1,17 @@
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in /home/nwf/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 *;
+#}
diff --git a/phoneapp/src/main/AndroidManifest.xml b/phoneapp/src/main/AndroidManifest.xml
new file mode 100644 (file)
index 0000000..8c6a921
--- /dev/null
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    package="com.acmetensortoys.watchviz">
+
+    <uses-permission android:name="android.permission.RECORD_AUDIO" />
+
+    <application
+        android:allowBackup="true"
+        android:icon="@mipmap/ic_launcher"
+        android:label="@string/app_name"
+        android:supportsRtl="true"
+        android:theme="@style/AppTheme">
+        <activity android:name=".MainActivity">
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN" />
+                <category android:name="android.intent.category.LAUNCHER" />
+            </intent-filter>
+        </activity>
+    </application>
+
+</manifest>
\ No newline at end of file
diff --git a/phoneapp/src/main/java/com/acmetensortoys/watchviz/MainActivity.java b/phoneapp/src/main/java/com/acmetensortoys/watchviz/MainActivity.java
new file mode 100644 (file)
index 0000000..e433b80
--- /dev/null
@@ -0,0 +1,13 @@
+package com.acmetensortoys.watchviz;
+
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+
+public class MainActivity extends AppCompatActivity {
+
+    @Override
+    protected void onCreate(Bundle savedInstanceState) {
+        super.onCreate(savedInstanceState);
+        setContentView(R.layout.activity_main);
+    }
+}
diff --git a/phoneapp/src/main/res/layout/activity_main.xml b/phoneapp/src/main/res/layout/activity_main.xml
new file mode 100644 (file)
index 0000000..9216fa3
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:tools="http://schemas.android.com/tools"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    android:paddingBottom="@dimen/activity_vertical_margin"
+    android:paddingLeft="@dimen/activity_horizontal_margin"
+    android:paddingRight="@dimen/activity_horizontal_margin"
+    android:paddingTop="@dimen/activity_vertical_margin"
+    tools:context="com.acmetensortoys.watchviz.MainActivity">
+
+    <TextView
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:text="Nothing to see here, this is just designed to get the app to your wearable." />
+</RelativeLayout>
diff --git a/phoneapp/src/main/res/mipmap-hdpi/ic_launcher.png b/phoneapp/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644 (file)
index 0000000..ccf9e0d
Binary files /dev/null and b/phoneapp/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/phoneapp/src/main/res/mipmap-mdpi/ic_launcher.png b/phoneapp/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644 (file)
index 0000000..e2e13f5
Binary files /dev/null and b/phoneapp/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/phoneapp/src/main/res/mipmap-xhdpi/ic_launcher.png b/phoneapp/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644 (file)
index 0000000..ff42227
Binary files /dev/null and b/phoneapp/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/phoneapp/src/main/res/mipmap-xxhdpi/ic_launcher.png b/phoneapp/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644 (file)
index 0000000..7e4bc3d
Binary files /dev/null and b/phoneapp/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/phoneapp/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/phoneapp/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644 (file)
index 0000000..87baa26
Binary files /dev/null and b/phoneapp/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/phoneapp/src/main/res/values-w820dp/dimens.xml b/phoneapp/src/main/res/values-w820dp/dimens.xml
new file mode 100644 (file)
index 0000000..63fc816
--- /dev/null
@@ -0,0 +1,6 @@
+<resources>
+    <!-- Example customization of dimensions originally defined in res/values/dimens.xml
+         (such as screen margins) for screens with more than 820dp of available width. This
+         would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). -->
+    <dimen name="activity_horizontal_margin">64dp</dimen>
+</resources>
diff --git a/phoneapp/src/main/res/values/colors.xml b/phoneapp/src/main/res/values/colors.xml
new file mode 100644 (file)
index 0000000..3ab3e9c
--- /dev/null
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <color name="colorPrimary">#3F51B5</color>
+    <color name="colorPrimaryDark">#303F9F</color>
+    <color name="colorAccent">#FF4081</color>
+</resources>
diff --git a/phoneapp/src/main/res/values/dimens.xml b/phoneapp/src/main/res/values/dimens.xml
new file mode 100644 (file)
index 0000000..47c8224
--- /dev/null
@@ -0,0 +1,5 @@
+<resources>
+    <!-- Default screen margins, per the Android Design guidelines. -->
+    <dimen name="activity_horizontal_margin">16dp</dimen>
+    <dimen name="activity_vertical_margin">16dp</dimen>
+</resources>
diff --git a/phoneapp/src/main/res/values/strings.xml b/phoneapp/src/main/res/values/strings.xml
new file mode 100644 (file)
index 0000000..03a8490
--- /dev/null
@@ -0,0 +1,3 @@
+<resources>
+    <string name="app_name">WatchViz</string>
+</resources>
diff --git a/phoneapp/src/main/res/values/styles.xml b/phoneapp/src/main/res/values/styles.xml
new file mode 100644 (file)
index 0000000..5885930
--- /dev/null
@@ -0,0 +1,11 @@
+<resources>
+
+    <!-- Base application theme. -->
+    <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
+        <!-- Customize your theme here. -->
+        <item name="colorPrimary">@color/colorPrimary</item>
+        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
+        <item name="colorAccent">@color/colorAccent</item>
+    </style>
+
+</resources>
index e7b4def49cb53d9aa04228dd3edb14c9e635e003..b8c9776dbd920f7d0ac20ad1361d2b0f18315e49 100644 (file)
@@ -1 +1 @@
-include ':app'
+include ':app', ':phoneapp'