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

Commit 01c50545 authored by Greg Kaiser's avatar Greg Kaiser
Browse files

BouncyBall: Remove some dependencies

To further simplify this app (which helps when building against
older SDKs), we remove our androidx dependency, as well as our
AppTheme.

Bug: 441133956
Test: App builds and launches as before across same devices
Flag: EXEMPT TEST_ONLY
Change-Id: Ib950c2d03a56c0f4e4b4f4f213c421117528d651
parent 111725aa
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -11,7 +11,6 @@ android_app {
    name: "BouncyBallTest",
    manifest: "app/src/main/AndroidManifest.xml",
    srcs: ["app/src/main/java/**/*.java"],
    static_libs: ["com.google.android.material_material"],
    resource_dirs: ["app/src/main/res"],
    sdk_version: "current",
}
+0 −1
Original line number Diff line number Diff line
@@ -20,7 +20,6 @@
    <application android:allowBackup="true"
         android:icon="@mipmap/ic_launcher"
         android:label="@string/app_name"
         android:theme="@style/AppTheme"
        android:resizeableActivity="true" >
        <activity android:name=".BouncyBallActivity"
             android:label="@string/app_name"
+2 −3
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package com.android.test.bouncyball;

import android.app.Activity;
import android.hardware.display.DisplayManager;
import android.os.Bundle;
import android.os.Trace;
@@ -25,11 +26,9 @@ import android.view.Display;
import android.view.Window;
import android.view.WindowManager;

import androidx.appcompat.app.AppCompatActivity;

import java.util.concurrent.Executors;

public class BouncyBallActivity extends AppCompatActivity {
public class BouncyBallActivity extends Activity {
    // Since logging (to logcat) takes system resources, we chose not to log
    // data every frame by default.
    private static final boolean LOG_EVERY_FRAME = false;
+0 −24
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2025 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<resources>

    <!-- Base application theme. -->
    <style name="AppTheme" parent="Theme.MaterialComponents.Light.DarkActionBar">
        <!-- Customize your theme here. -->
        <item name="android:windowLayoutInDisplayCutoutMode">default</item>
    </style>

</resources>