This file contains hidden or 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
C:\Users\Devonte\AndroidStudioProjects\YourPerfectSleep\app\src\main\AndroidManifest.xml:<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
package="com.devanda.yourperfectsleep"> | |
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" /> | |
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" /> | |
<uses-permission android:name="android.permission.VIBRATE" /> | |
<uses-permission android:name="com.android.alarm.permission.SET_ALARM"/> | |
<uses-feature |
This file contains hidden or 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
pluginManagement { | |
repositories { | |
google() | |
mavenCentral() | |
gradlePluginPortal() | |
// other repositories... | |
maven { url "https://jitpack.io" } | |
} | |
} |
This file contains hidden or 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
plugins { | |
id 'com.android.application' | |
id 'org.jetbrains.kotlin.android' | |
id 'kotlin-kapt' | |
} | |
android { | |
compileSdk 33 |
This file contains hidden or 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
plugins { | |
id 'com.android.application' | |
id 'org.jetbrains.kotlin.android' | |
id 'kotlin-kapt' | |
} | |
android { | |
namespace 'com.devanda.yourperfectsleep' | |
compileSdk 33 |
This file contains hidden or 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
buildscript { | |
ext { | |
wear_compose_version = '1.0.0' | |
horologist_version = '0.1.5' | |
wear_tiles_version = '1.1.0' | |
kotlin_version = '1.8.21' | |
android_gradle_plugin_version = '8.0.1' // Update to the desired Android Gradle Plugin version | |
} | |
repositories { | |
mavenCentral() |
This file contains hidden or 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
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.devanda.yourperfectcompanion"> | |
<uses-feature | |
android:name="android.hardware.type.watch" | |
android:required="true"/> | |
<uses-permission android:name="android.permission.WAKE_LOCK" /> | |
<uses-permission android:name="com.google.android.gms.permission.BIND_NETWORK_TASK_SERVICE" /> | |
<uses-permission android:name="com.google.android.gms.permission.BIND_WEARABLE_DATA_CONSUMER_SERVICE" /> |
This file contains hidden or 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
package com.devanda.yourperfectcompanion | |
import android.os.Bundle | |
import android.widget.Button | |
import android.widget.Toast | |
import androidx.appcompat.app.AppCompatActivity | |
import com.devanda.yourperfectsleep.CustomTimePickerDialog | |
import com.google.android.gms.wearable.DataClient | |
import com.google.android.gms.wearable.DataEvent | |
import com.google.android.gms.wearable.DataEventBuffer |
This file contains hidden or 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
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
package="com.devanda.yourperfectsleep"> | |
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" /> | |
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" /> | |
<uses-permission android:name="android.permission.VIBRATE" /> | |
<uses-permission android:name="com.android.alarm.permission.SET_ALARM"/> | |
<uses-feature |
This file contains hidden or 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
package com.devanda.yourperfectsleep | |
import android.app.Dialog | |
import android.os.Bundle | |
import android.widget.NumberPicker | |
import androidx.appcompat.app.AlertDialog | |
import androidx.fragment.app.DialogFragment | |
class CustomTimePickerDialog : DialogFragment() { |
This file contains hidden or 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
package com.devanda.yourperfectsleep | |
import android.app.AlarmManager | |
import android.app.PendingIntent | |
import android.content.Context | |
import android.content.Intent | |
import android.os.Bundle | |
import android.widget.Button | |
import android.widget.Toast | |
import androidx.appcompat.app.AppCompatActivity |
NewerOlder