Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,7 @@ app.*.map.json
/firebase.json
/.fvm
/.tmp
/.worktrees/
/caches
/.fvmrc
/.fvmrc
/artifacts/
36 changes: 16 additions & 20 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
plugins {
id "com.android.application"
id "org.jetbrains.kotlin.android"
id "dev.flutter.flutter-gradle-plugin"
id "com.google.gms.google-services"
}

def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
Expand All @@ -6,11 +13,6 @@ if (localPropertiesFile.exists()) {
}
}

def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new Exception("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}

def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '4'
Expand All @@ -21,28 +23,24 @@ if (flutterVersionName == null) {
flutterVersionName = '0.2.1'
}

apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}

android {
compileSdkVersion 34
namespace "com.ccextractor.ultimate_alarm_clock"
compileSdk 36
ndkVersion flutter.ndkVersion

defaultConfig {
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.

applicationId "com.ccextractor.ultimate_alarm_clock"
minSdkVersion 24
targetSdkVersion 34 // Updated to latest targetSdkVersion
minSdk 24
targetSdk 34
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
multiDexEnabled true
Expand All @@ -51,12 +49,12 @@ android {


compileOptions {
sourceCompatibility JavaVersion.VERSION_17 // Updated to Java 17
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}

kotlinOptions {
jvmTarget = '17' // Updated to Java 17
jvmTarget = '17'
}

sourceSets {
Expand Down Expand Up @@ -93,12 +91,10 @@ flutter {
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib:1.7.10"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10"
implementation platform('com.google.firebase:firebase-bom:32.0.0') // Updated Firebase BOM to latest
implementation platform('com.google.firebase:firebase-bom:32.0.0')
implementation 'com.google.firebase:protolite-well-known-types:18.0.0'
implementation("com.android.volley:volley:1.2.1")
implementation("com.google.code.gson:gson:2.10.1")
implementation("androidx.multidex:multidex:2.0.1")
}
testImplementation "junit:junit:4.13.2"
}
11 changes: 6 additions & 5 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.ccextractor.ultimate_alarm_clock">
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
Expand Down Expand Up @@ -45,8 +44,7 @@
android:name="${applicationName}"
android:allowBackup="true"
android:icon="@mipmap/launcher_icon"
android:label="Ultimate Alarm Clock"
tools:replace="android:label">
android:label="Ultimate Alarm Clock">
<service
android:name="com.ccextractor.ultimate_alarm_clock.ScreenMonitorService"
android:enabled="true"
Expand All @@ -73,9 +71,12 @@
<receiver
android:name=".BootReceiver"
android:enabled="true"
android:directBootAware="true"
android:exported="true">
<intent-filter android:priority="999">
<action android:name="android.intent.action.LOCKED_BOOT_COMPLETED" />
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.USER_UNLOCKED" />
</intent-filter>
</receiver>
<receiver
Expand Down Expand Up @@ -131,4 +132,4 @@
android:value="2" />
</application>

</manifest>
</manifest>
Loading