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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .classpath

This file was deleted.

33 changes: 0 additions & 33 deletions .project

This file was deleted.

3 changes: 0 additions & 3 deletions .settings/org.eclipse.jdt.ui.prefs

This file was deleted.

48 changes: 0 additions & 48 deletions AndroidManifest.xml

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ FakeDawn
Android app: an artificial dawn alarm to help you wake up gently in the morning.

Copyright (C) 2012 Francesco Balducci
Copyright 2026 Olivier Vialatte

Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
Expand All @@ -12,4 +13,4 @@ Copyright (C) 2012 Francesco Balducci
Primary repository: https://github.com/balau/FakeDawn

FakeDawn is an open source project. See the file COPYING for copying conditions.


40 changes: 40 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
plugins {
id 'com.android.application'
}

android {
namespace 'org.balau.fakedawn'
compileSdk 34

defaultConfig {
applicationId "org.balau.fakedawn"
minSdk 21 // On monte à 21 (Android 5.0) pour la compatibilité moderne
targetSdk 34
versionCode 5
versionName "3.5"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
}

dependencies {
// Bibliothèques de compatibilité modernes (AndroidX)
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.11.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'

// Pour les préférences (très utilisé dans les vieux projets)
implementation 'androidx.preference:preference:1.2.1'
}
65 changes: 65 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.balau.fakedawn">
<!--android:versionCode="4"
android:versionName="1.3" -->

<!--uses-sdk android:minSdkVersion="10" android:targetSdkVersion="19"/-->
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />
<uses-permission android:name="android.permission.USE_EXACT_ALARM" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission android:name="android.permission.USE_FULL_SCREEN_INTENT" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<!--supports-screens android:xlargeScreens="true" android:largeScreens="true"/-->

<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.AppCompat.Light"> <!-- Ajout d'un thème moderne -->
<activity android:name=".Preferences" android:exported="true" android:taskAffinity="@string/affinity_preferences">
<intent-filter>
<category android:name="android.intent.category.LAUNCHER"/>
<action android:name="android.intent.action.MAIN"/>
</intent-filter>
</activity>
<service android:name=".Alarm" android:enabled="true" android:foregroundServiceType="specialUse" android:exported="false"></service>
<activity
android:name=".Dawn"
android:theme="@style/Theme.FakeDawn.FullScreen"
android:exported="false"
android:taskAffinity="@string/affinity_dawn"
android:excludeFromRecents="true"
android:noHistory="true"
android:launchMode="singleInstance"
android:screenOrientation="portrait"></activity>
<receiver android:name=".StartAtBoot" android:exported="true">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
</intent-filter>
</receiver>
<service android:name=".DawnSound" android:exported="false"></service>
<activity android:name=".License" android:exported="false"></activity>
<receiver android:name=".AlarmReceiver" android:exported="true">
<intent-filter>
<action android:name="org.balau.fakedawn.AlarmReceiver.ACTION_START_ALARM"/>
</intent-filter>
<intent-filter>
<action android:name="org.balau.fakedawn.AlarmReceiver.ACTION_STOP_ALARM"/>
</intent-filter>
</receiver>
<receiver android:name=".InstallationReceiver" android:exported="true">
<intent-filter>
<action android:name="android.intent.action.PACKAGE_REPLACED"/>
<data android:scheme="package"/>
</intent-filter>
</receiver>
</application>

</manifest>
Loading