diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 352804db..745bd6c6 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -8,6 +8,7 @@
+
-
-
-
-
-
-
+ android:theme="@style/AppTheme" />
+
+
\ No newline at end of file
diff --git a/build.gradle b/build.gradle
index 0aa34dd7..cfc7b491 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,6 +1,8 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
-buildscript {
+buildscript {
+ ext.kotlin_version = '1.3.11'
+
ext.kotlinVersion = '1.2.71'
repositories {
google()
@@ -12,7 +14,7 @@ buildscript {
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
- }
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" }
}
allprojects {
@@ -42,4 +44,4 @@ ext {
flexboxVersion = '1.0.0'
lifecycleVersion = '1.1.1'
stellarVersion = '0.3.3'
-}
\ No newline at end of file
+}
diff --git a/settings.gradle b/settings.gradle
index e7b4def4..7d809d8e 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -1 +1 @@
-include ':app'
+include ':app', ':wearApp'
diff --git a/wearApp/.gitignore b/wearApp/.gitignore
new file mode 100644
index 00000000..796b96d1
--- /dev/null
+++ b/wearApp/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/wearApp/build.gradle b/wearApp/build.gradle
new file mode 100644
index 00000000..074d66d0
--- /dev/null
+++ b/wearApp/build.gradle
@@ -0,0 +1,34 @@
+apply plugin: 'com.android.application'
+apply plugin: 'kotlin-android'
+apply plugin: 'kotlin-android-extensions'
+android {
+ compileSdkVersion 28
+
+ defaultConfig {
+ applicationId "com.blockeq.stellarwallet"
+ minSdkVersion 23
+ targetSdkVersion 28
+ versionCode 1
+ versionName "1.0"
+ }
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ implementation fileTree(dir: 'libs', include: ['*.jar'])
+ implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
+ implementation 'com.google.android.support:wearable:2.4.0'
+ implementation 'com.google.android.gms:play-services-wearable:16.0.1'
+ implementation 'com.android.support:percent:28.0.0'
+ implementation 'com.android.support:support-v4:28.0.0'
+ implementation 'com.android.support:recyclerview-v7:28.0.0'
+ implementation 'com.android.support:wear:28.0.0'
+ compileOnly 'com.google.android.wearable:wearable:2.4.0'
+
+ implementation "com.journeyapps:zxing-android-embedded:$zxingAndroidVersion"
+}
diff --git a/wearApp/proguard-rules.pro b/wearApp/proguard-rules.pro
new file mode 100644
index 00000000..f1b42451
--- /dev/null
+++ b/wearApp/proguard-rules.pro
@@ -0,0 +1,21 @@
+# Add project specific ProGuard rules here.
+# You can control the set of applied configuration files using the
+# proguardFiles setting in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# 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 *;
+#}
+
+# Uncomment this to preserve the line number information for
+# debugging stack traces.
+#-keepattributes SourceFile,LineNumberTable
+
+# If you keep the line number information, uncomment this to
+# hide the original source file name.
+#-renamesourcefileattribute SourceFile
diff --git a/wearApp/src/main/AndroidManifest.xml b/wearApp/src/main/AndroidManifest.xml
new file mode 100644
index 00000000..a635f0a2
--- /dev/null
+++ b/wearApp/src/main/AndroidManifest.xml
@@ -0,0 +1,39 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/wearApp/src/main/java/com/blockeq/stellarwallet/MainActivity.kt b/wearApp/src/main/java/com/blockeq/stellarwallet/MainActivity.kt
new file mode 100644
index 00000000..c59cf5cd
--- /dev/null
+++ b/wearApp/src/main/java/com/blockeq/stellarwallet/MainActivity.kt
@@ -0,0 +1,26 @@
+package com.blockeq.stellarwallet
+
+import android.os.Bundle
+import android.support.wearable.activity.WearableActivity
+import android.widget.ImageView
+import com.google.zxing.BarcodeFormat
+import com.journeyapps.barcodescanner.BarcodeEncoder
+import kotlinx.android.synthetic.main.activity_main.*
+
+class MainActivity : WearableActivity() {
+
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+ setContentView(R.layout.activity_main)
+ generateQRCode("GCVZE5C7GGDWSKG7V44HHXKVQSXSFC5WKTNSAX6QG2TMZNJL2UUM476D", qr_image, 200)
+ // Enables Always-on
+ setAmbientEnabled()
+ }
+
+ private fun generateQRCode(data: String, imageView: ImageView, size: Int) {
+ val barcodeEncoder = BarcodeEncoder()
+ val bitmap = barcodeEncoder.encodeBitmap(data, BarcodeFormat.QR_CODE, size, size)
+ imageView.setImageBitmap(bitmap)
+ }
+
+}
diff --git a/wearApp/src/main/res/layout/activity_main.xml b/wearApp/src/main/res/layout/activity_main.xml
new file mode 100644
index 00000000..038301e1
--- /dev/null
+++ b/wearApp/src/main/res/layout/activity_main.xml
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/wearApp/src/main/res/mipmap-hdpi/ic_launcher.png b/wearApp/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 00000000..898f3ed5
Binary files /dev/null and b/wearApp/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/wearApp/src/main/res/mipmap-mdpi/ic_launcher.png b/wearApp/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 00000000..64ba76f7
Binary files /dev/null and b/wearApp/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/wearApp/src/main/res/mipmap-xhdpi/ic_launcher.png b/wearApp/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 00000000..e5ed4659
Binary files /dev/null and b/wearApp/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/wearApp/src/main/res/mipmap-xxhdpi/ic_launcher.png b/wearApp/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 00000000..b0907cac
Binary files /dev/null and b/wearApp/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/wearApp/src/main/res/values-round/strings.xml b/wearApp/src/main/res/values-round/strings.xml
new file mode 100644
index 00000000..452e3358
--- /dev/null
+++ b/wearApp/src/main/res/values-round/strings.xml
@@ -0,0 +1,3 @@
+
+ Hello Round World!
+
diff --git a/wearApp/src/main/res/values/dimens.xml b/wearApp/src/main/res/values/dimens.xml
new file mode 100644
index 00000000..e865b412
--- /dev/null
+++ b/wearApp/src/main/res/values/dimens.xml
@@ -0,0 +1,15 @@
+
+
+
+ 0dp
+
+
+ 5dp
+
diff --git a/wearApp/src/main/res/values/strings.xml b/wearApp/src/main/res/values/strings.xml
new file mode 100644
index 00000000..06260adb
--- /dev/null
+++ b/wearApp/src/main/res/values/strings.xml
@@ -0,0 +1,8 @@
+
+ WearWallet
+
+ Hello Square World!
+