Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Commit

Permalink
Auto-update
Browse files Browse the repository at this point in the history
  • Loading branch information
google-automerger committed Apr 11, 2019
1 parent 3129ec1 commit 27250c3
Show file tree
Hide file tree
Showing 22 changed files with 194 additions and 203 deletions.
26 changes: 11 additions & 15 deletions Application/build.gradle
@@ -1,37 +1,35 @@

buildscript {
repositories {
jcenter()
google()
jcenter()
}

dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.android.tools.build:gradle:3.3.2'
}
}

apply plugin: 'com.android.application'

repositories {
jcenter()
google()
jcenter()
}

dependencies {


implementation "com.android.support:support-v4:27.1.1"
implementation "com.android.support:support-v13:27.1.1"
implementation "com.android.support:cardview-v7:27.1.1"
implementation "com.android.support:appcompat-v7:27.1.1"

implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.legacy:legacy-support-v13:1.0.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'com.google.android.support:wearable:2.4.0'

implementation 'com.google.android.support:wearable:2.3.0'


implementation 'com.google.android.gms:play-services-wearable:15.0.1'
implementation 'com.google.android.gms:play-services-wearable:16.0.1'

implementation 'com.android.support:support-v13:27.1.1'

wearApp project(':Wearable')

Expand All @@ -46,13 +44,11 @@ List<String> dirs = [
'template'] // boilerplate code that is generated by the sample template process

android {
compileSdkVersion 27

buildToolsVersion "27.0.3"
compileSdkVersion 28

defaultConfig {
minSdkVersion 18
targetSdkVersion 27
targetSdkVersion 28
}

compileOptions {
Expand Down
3 changes: 0 additions & 3 deletions Application/src/main/AndroidManifest.xml
Expand Up @@ -17,9 +17,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.android.wearable.watchface" >

<uses-sdk android:minSdkVersion="18"
android:targetSdkVersion="25" />

<!-- Permissions required by the wearable app -->
<uses-permission android:name="android.permission.WAKE_LOCK" />

Expand Down
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -46,8 +46,8 @@ unsure how to do this, please review the "Run Starter project" section in the
Pre-requisites
--------------

- Android SDK 27
- Android Build Tools v27.0.3
- Android SDK 28
- Android Build Tools v28.0.3
- Android Support Repository

Screenshots
Expand Down Expand Up @@ -76,7 +76,7 @@ submitting a pull request through GitHub. Please see CONTRIBUTING.md for more de
License
-------

Copyright 2017 The Android Open Source Project, Inc.
Copyright 2019 The Android Open Source Project, Inc.

Licensed to the Apache Software Foundation (ASF) under one or more contributor
license agreements. See the NOTICE file distributed with this work for
Expand Down
24 changes: 12 additions & 12 deletions Wearable/build.gradle
@@ -1,37 +1,37 @@

buildscript {
repositories {
jcenter()
google()
jcenter()
}

dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.android.tools.build:gradle:3.3.2'
}
}

apply plugin: 'com.android.application'

repositories {
jcenter()
google()
jcenter()
}



dependencies {

implementation 'com.android.support:palette-v7:27.1.0'
implementation 'com.android.support:wear:27.1.0'
implementation 'androidx.palette:palette:1.0.0'
implementation 'androidx.wear:wear:1.0.0'
implementation 'androidx.legacy:legacy-support-v13:1.0.0'


implementation 'com.google.android.gms:play-services-wearable:15.0.1'
implementation 'com.google.android.gms:play-services-wearable:16.0.1'

implementation 'com.android.support:support-v13:27.1.1'

compileOnly 'com.google.android.wearable:wearable:2.3.0'
compileOnly 'com.google.android.wearable:wearable:2.4.0'

implementation 'com.google.android.support:wearable:2.3.0'
implementation 'com.google.android.support:wearable:2.4.0'

}

Expand All @@ -45,17 +45,17 @@ List<String> dirs = [

android {

compileSdkVersion 26
compileSdkVersion 28

buildToolsVersion "27.0.3"
buildToolsVersion "28.0.3"

defaultConfig {
versionCode 1
versionName "1.0"

minSdkVersion 24

targetSdkVersion 26
targetSdkVersion 28

multiDexEnabled true

Expand Down
4 changes: 0 additions & 4 deletions Wearable/src/main/AndroidManifest.xml
Expand Up @@ -17,10 +17,6 @@
<manifest package="com.example.android.wearable.watchface"
xmlns:android="http://schemas.android.com/apk/res/android">

<uses-sdk
android:minSdkVersion="21"
android:targetSdkVersion="25"/>

<uses-feature android:name="android.hardware.type.watch"/>

<!-- Required to act as a custom watch face. -->
Expand Down
Expand Up @@ -18,12 +18,13 @@
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.wear.widget.WearableRecyclerView;
import android.support.wearable.complications.ComplicationProviderInfo;
import android.support.wearable.complications.ProviderChooserIntent;
import android.util.Log;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.wear.widget.WearableRecyclerView;

import com.example.android.wearable.watchface.R;
import com.example.android.wearable.watchface.model.AnalogComplicationConfigData;
import com.example.android.wearable.watchface.watchface.AnalogComplicationWatchFaceService;
Expand Down
Expand Up @@ -27,8 +27,6 @@
import android.graphics.PorterDuff;
import android.graphics.PorterDuffColorFilter;
import android.graphics.drawable.Drawable;
import android.support.annotation.Nullable;
import android.support.v7.widget.RecyclerView;
import android.support.wearable.complications.ComplicationHelperActivity;
import android.support.wearable.complications.ComplicationProviderInfo;
import android.support.wearable.complications.ProviderInfoRetriever;
Expand All @@ -45,6 +43,9 @@
import android.widget.Switch;
import android.widget.Toast;

import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView;

import com.example.android.wearable.watchface.R;
import com.example.android.wearable.watchface.model.AnalogComplicationConfigData.BackgroundComplicationConfigItem;
import com.example.android.wearable.watchface.model.AnalogComplicationConfigData.ColorConfigItem;
Expand Down
Expand Up @@ -17,16 +17,16 @@

import android.app.Activity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.wear.widget.WearableRecyclerView;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.wear.widget.WearableRecyclerView;

import com.example.android.wearable.watchface.R;
import com.example.android.wearable.watchface.model.AnalogComplicationConfigData;

/**
* Allows user to select color for something on the watch face (background, highlight,etc.) and
* saves it to {@link android.content.SharedPreferences} in
* {@link android.support.v7.widget.RecyclerView.Adapter}.
* saves it to {@link android.content.SharedPreferences} in RecyclerView.Adapter.
*/
public class ColorSelectionActivity extends Activity {

Expand Down
Expand Up @@ -18,13 +18,14 @@
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.support.v7.widget.RecyclerView;
import android.support.wearable.view.CircledImageView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.recyclerview.widget.RecyclerView;

import com.example.android.wearable.watchface.R;

import java.util.ArrayList;
Expand Down
Expand Up @@ -22,8 +22,6 @@
import android.content.Context;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import android.support.wear.widget.BoxInsetLayout;
import android.support.wearable.view.CircledImageView;
import android.support.wearable.view.WearableListView;
import android.util.Log;
Expand All @@ -33,15 +31,17 @@
import android.widget.LinearLayout;
import android.widget.TextView;

import androidx.recyclerview.widget.RecyclerView;
import androidx.wear.widget.BoxInsetLayout;

import com.example.android.wearable.watchface.R;
import com.example.android.wearable.watchface.util.DigitalWatchFaceUtil;
import com.example.android.wearable.watchface.watchface.DigitalWatchFaceService;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.wearable.DataMap;
import com.google.android.gms.wearable.Wearable;

import com.example.android.wearable.watchface.watchface.DigitalWatchFaceService;
import com.example.android.wearable.watchface.util.DigitalWatchFaceUtil;
import com.example.android.wearable.watchface.R;

/**
* The watch-side config activity for {@link DigitalWatchFaceService}, which allows for setting the
* background color.
Expand Down
Expand Up @@ -17,13 +17,14 @@

import android.content.Context;
import android.graphics.Color;
import android.support.v7.widget.RecyclerView.ViewHolder;
import android.support.v7.widget.RecyclerView;

import androidx.recyclerview.widget.RecyclerView;
import androidx.recyclerview.widget.RecyclerView.ViewHolder;

import com.example.android.wearable.watchface.R;
import com.example.android.wearable.watchface.config.AnalogComplicationConfigActivity;
import com.example.android.wearable.watchface.config.AnalogComplicationConfigRecyclerViewAdapter;
import com.example.android.wearable.watchface.config.ColorSelectionActivity;
import com.example.android.wearable.watchface.config.AnalogComplicationConfigActivity;
import com.example.android.wearable.watchface.watchface.AnalogComplicationWatchFaceService;

import java.util.ArrayList;
Expand Down
Expand Up @@ -28,7 +28,6 @@
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.v4.content.ContextCompat;
import android.support.wearable.watchface.CanvasWatchFaceService;
import android.support.wearable.watchface.WatchFaceService;
import android.support.wearable.watchface.WatchFaceStyle;
Expand All @@ -37,6 +36,10 @@
import android.view.SurfaceHolder;
import android.view.WindowInsets;

import androidx.core.content.ContextCompat;

import com.example.android.wearable.watchface.R;
import com.example.android.wearable.watchface.util.DigitalWatchFaceUtil;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.wearable.DataApi;
Expand All @@ -47,9 +50,6 @@
import com.google.android.gms.wearable.DataMapItem;
import com.google.android.gms.wearable.Wearable;

import com.example.android.wearable.watchface.util.DigitalWatchFaceUtil;
import com.example.android.wearable.watchface.R;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
Expand Down
Expand Up @@ -21,7 +21,7 @@
android:background="@color/dark_grey"
android:paddingStart="@dimen/activity_config_padding"
android:paddingEnd="@dimen/activity_config_padding">
<android.support.wear.widget.WearableRecyclerView
<androidx.wear.widget.WearableRecyclerView
android:id="@+id/wearable_recycler_view"
android:layout_height="wrap_content"
android:layout_width="match_parent" />
Expand Down
Expand Up @@ -23,7 +23,7 @@
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
tools:context="com.example.android.wearable.watchface.config.ColorSelectionActivity">
<android.support.wear.widget.WearableRecyclerView
<androidx.wear.widget.WearableRecyclerView
android:id="@+id/wearable_recycler_view"
android:layout_height="wrap_content"
android:layout_width="match_parent" />
Expand Down
4 changes: 2 additions & 2 deletions Wearable/src/main/res/layout/activity_digital_config.xml
Expand Up @@ -13,7 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<android.support.wear.widget.BoxInsetLayout
<androidx.wear.widget.BoxInsetLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/content"
Expand All @@ -37,4 +37,4 @@
android:layout_height="match_parent"
android:background="@android:color/transparent"
app:boxedEdges="left|right"/>
</android.support.wear.widget.BoxInsetLayout>
</androidx.wear.widget.BoxInsetLayout>

0 comments on commit 27250c3

Please sign in to comment.