Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 3d0c57ef authored by Inhishonor's avatar Inhishonor Committed by Luca Stefani
Browse files

DeskClock: Add the dev suffix to the debug build

Change-Id: I3fe76ea6a4436afc78f7b82b8c5c5c0916763855
parent 2b68c47a
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -166,7 +166,7 @@

        <provider
            android:name=".provider.ClockProvider"
            android:authorities="com.android.deskclock"
            android:authorities="${applicationId}"
            android:directBootAware="true"
            android:exported="false" />

@@ -281,7 +281,7 @@

            <meta-data
                android:name="android.appwidget.oldName"
                android:value="com.android.deskclock.AnalogAppWidgetProvider" />
                android:value="${applicationId}.AnalogAppWidgetProvider" />
            <meta-data
                android:name="android.appwidget.provider"
                android:resource="@xml/analog_appwidget" />
@@ -297,8 +297,8 @@
                <action android:name="android.intent.action.LOCALE_CHANGED" />
                <action android:name="android.intent.action.TIME_SET" />
                <action android:name="android.intent.action.TIMEZONE_CHANGED" />
                <action android:name="com.android.deskclock.ON_DAY_CHANGE" />
                <action android:name="com.android.deskclock.WORLD_CITIES_CHANGED" />
                <action android:name="${applicationId}.ON_DAY_CHANGE" />
                <action android:name="${applicationId}.WORLD_CITIES_CHANGED" />
                <action android:name="android.intent.action.CONFIGURATION_CHANGED" />
            </intent-filter>
            <meta-data
+11 −0
Original line number Diff line number Diff line
@@ -7,10 +7,21 @@ android {
    compileSdk 34

    defaultConfig {
        applicationId "com.android.deskclock"
        minSdkVersion 27
        targetSdkVersion 34
    }

    buildTypes {
        debug {
            applicationIdSuffix ".dev"
        }
        release {
            minifyEnabled true
            proguardFiles 'proguard.flags'
        }
    }

    sourceSets {
        main {
            res.srcDirs = ['res']
+2 −1
Original line number Diff line number Diff line
@@ -61,6 +61,7 @@ import android.widget.TextView;

import androidx.annotation.NonNull;

import com.android.deskclock.BuildConfig;
import com.android.deskclock.DeskClock;
import com.android.deskclock.LogUtils;
import com.android.deskclock.R;
@@ -107,7 +108,7 @@ public class DigitalAppWidgetProvider extends AppWidgetProvider {
     * the default TimeZone changes days. This affects the widget display because the day-of-week is
     * only visible when the world city day-of-week differs from the default TimeZone's day-of-week.
     */
    private static final String ACTION_ON_DAY_CHANGE = "com.android.deskclock.ON_DAY_CHANGE";
    private static final String ACTION_ON_DAY_CHANGE = BuildConfig.APPLICATION_ID + ".ON_DAY_CHANGE";

    /** Intent used to deliver the {@link #ACTION_ON_DAY_CHANGE} callback. */
    private static final Intent DAY_CHANGE_INTENT = new Intent(ACTION_ON_DAY_CHANGE);
+2 −1
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@ import android.view.View;
import androidx.annotation.Keep;
import androidx.annotation.StringRes;

import com.android.deskclock.BuildConfig;
import com.android.deskclock.Predicate;
import com.android.deskclock.R;
import com.android.deskclock.timer.TimerService;
@@ -153,7 +154,7 @@ public final class DataModel {
    }

    public static final String ACTION_WORLD_CITIES_CHANGED =
            "com.android.deskclock.WORLD_CITIES_CHANGED";
            BuildConfig.APPLICATION_ID + ".WORLD_CITIES_CHANGED";

    /** The single instance of this data model that exists for the life of the application. */
    private static final DataModel sDataModel = new DataModel();