Skip to content

Commit

Permalink
opt: logger status checker only display when build type isnt rel
Browse files Browse the repository at this point in the history
  • Loading branch information
Sevtinge committed Jul 16, 2024
1 parent 5e8ebfe commit b87808e
Show file tree
Hide file tree
Showing 247 changed files with 4,393 additions and 242 deletions.
19 changes: 18 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?><!--
~ This file is part of HyperCeiler.
~
~ HyperCeiler is free software: you can redistribute it and/or modify
~ it under the terms of the GNU Affero General Public License as
~ published by the Free Software Foundation, either version 3 of the
~ License.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU Affero General Public License for more details.
~
~ You should have received a copy of the GNU Affero General Public License
~ along with this program. If not, see <https://www.gnu.org/licenses/>.
~
~ Copyright (C) 2023-2024 HyperCeiler Contributions
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

import androidx.annotation.Nullable;

import com.sevtinge.hyperceiler.BuildConfig;
import com.sevtinge.hyperceiler.R;
import com.sevtinge.hyperceiler.callback.IResult;
import com.sevtinge.hyperceiler.prefs.PreferenceHeader;
Expand Down Expand Up @@ -73,7 +74,7 @@ public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
new Thread(() -> SearchHelper.getAllMods(MainActivity.this, savedInstanceState != null)).start();
Helpers.checkXposedActivateState(this);
if (!IS_LOGGER_ALIVE) {
if (!IS_LOGGER_ALIVE && BuildConfig.BUILD_TYPE != "release") {
handler.post(() -> new AlertDialog.Builder(context)
.setCancelable(false)
.setTitle(getResources().getString(R.string.warn))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import androidx.core.view.WindowInsetsCompat;
import androidx.recyclerview.widget.RecyclerView;

import com.sevtinge.hyperceiler.BuildConfig;
import com.sevtinge.hyperceiler.R;
import com.sevtinge.hyperceiler.prefs.PreferenceHeader;
import com.sevtinge.hyperceiler.prefs.TipsPreference;
Expand Down Expand Up @@ -200,7 +201,7 @@ public void isOfficialRom() {
}

public void isLoggerAlive() {
if (!IS_LOGGER_ALIVE) {
if (!IS_LOGGER_ALIVE && BuildConfig.BUILD_TYPE != "release") {
mHeadtipNotice.setTitle(R.string.headtip_notice_dead_logger);
mHeadtipNotice.setVisible(true);
}
Expand Down
19 changes: 18 additions & 1 deletion app/src/main/res/color/ic_small_window_color.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?><!--
~ This file is part of HyperCeiler.
~
~ HyperCeiler is free software: you can redistribute it and/or modify
~ it under the terms of the GNU Affero General Public License as
~ published by the Free Software Foundation, either version 3 of the
~ License.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU Affero General Public License for more details.
~
~ You should have received a copy of the GNU Affero General Public License
~ along with this program. If not, see <https://www.gnu.org/licenses/>.
~
~ Copyright (C) 2023-2024 HyperCeiler Contributions
-->
<gradient xmlns:android="http://schemas.android.com/apk/res/android"
android:type="linear"
android:startX="28.0"
Expand Down
19 changes: 18 additions & 1 deletion app/src/main/res/color/ic_small_window_color2.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?><!--
~ This file is part of HyperCeiler.
~
~ HyperCeiler is free software: you can redistribute it and/or modify
~ it under the terms of the GNU Affero General Public License as
~ published by the Free Software Foundation, either version 3 of the
~ License.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU Affero General Public License for more details.
~
~ You should have received a copy of the GNU Affero General Public License
~ along with this program. If not, see <https://www.gnu.org/licenses/>.
~
~ Copyright (C) 2023-2024 HyperCeiler Contributions
-->
<gradient xmlns:android="http://schemas.android.com/apk/res/android"
android:type="linear"
android:startX="78.0"
Expand Down
19 changes: 18 additions & 1 deletion app/src/main/res/color/ic_small_window_color3.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?><!--
~ This file is part of HyperCeiler.
~
~ HyperCeiler is free software: you can redistribute it and/or modify
~ it under the terms of the GNU Affero General Public License as
~ published by the Free Software Foundation, either version 3 of the
~ License.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU Affero General Public License for more details.
~
~ You should have received a copy of the GNU Affero General Public License
~ along with this program. If not, see <https://www.gnu.org/licenses/>.
~
~ Copyright (C) 2023-2024 HyperCeiler Contributions
-->
<gradient xmlns:android="http://schemas.android.com/apk/res/android"
android:type="linear"
android:startX="78.0"
Expand Down
19 changes: 18 additions & 1 deletion app/src/main/res/color/ic_small_window_color4.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?><!--
~ This file is part of HyperCeiler.
~
~ HyperCeiler is free software: you can redistribute it and/or modify
~ it under the terms of the GNU Affero General Public License as
~ published by the Free Software Foundation, either version 3 of the
~ License.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU Affero General Public License for more details.
~
~ You should have received a copy of the GNU Affero General Public License
~ along with this program. If not, see <https://www.gnu.org/licenses/>.
~
~ Copyright (C) 2023-2024 HyperCeiler Contributions
-->
<gradient xmlns:android="http://schemas.android.com/apk/res/android"
android:type="linear"
android:startX="52.5"
Expand Down
19 changes: 18 additions & 1 deletion app/src/main/res/color/ic_small_window_color5.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?><!--
~ This file is part of HyperCeiler.
~
~ HyperCeiler is free software: you can redistribute it and/or modify
~ it under the terms of the GNU Affero General Public License as
~ published by the Free Software Foundation, either version 3 of the
~ License.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU Affero General Public License for more details.
~
~ You should have received a copy of the GNU Affero General Public License
~ along with this program. If not, see <https://www.gnu.org/licenses/>.
~
~ Copyright (C) 2023-2024 HyperCeiler Contributions
-->
<gradient xmlns:android="http://schemas.android.com/apk/res/android"
android:type="linear"
android:startX="52.5"
Expand Down
19 changes: 18 additions & 1 deletion app/src/main/res/color/preference_recommend_item_text_color.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?><!--
~ This file is part of HyperCeiler.
~
~ HyperCeiler is free software: you can redistribute it and/or modify
~ it under the terms of the GNU Affero General Public License as
~ published by the Free Software Foundation, either version 3 of the
~ License.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU Affero General Public License for more details.
~
~ You should have received a copy of the GNU Affero General Public License
~ along with this program. If not, see <https://www.gnu.org/licenses/>.
~
~ Copyright (C) 2023-2024 HyperCeiler Contributions
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:state_pressed="false"
Expand Down
19 changes: 18 additions & 1 deletion app/src/main/res/color/visual_check_text_color.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?><!--
~ This file is part of HyperCeiler.
~
~ HyperCeiler is free software: you can redistribute it and/or modify
~ it under the terms of the GNU Affero General Public License as
~ published by the Free Software Foundation, either version 3 of the
~ License.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU Affero General Public License for more details.
~
~ You should have received a copy of the GNU Affero General Public License
~ along with this program. If not, see <https://www.gnu.org/licenses/>.
~
~ Copyright (C) 2023-2024 HyperCeiler Contributions
-->
<selector>
<!--<item
android:state_checked="true"
Expand Down
19 changes: 18 additions & 1 deletion app/src/main/res/drawable/bubble_bar_pop_bg.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?><!--
~ This file is part of HyperCeiler.
~
~ HyperCeiler is free software: you can redistribute it and/or modify
~ it under the terms of the GNU Affero General Public License as
~ published by the Free Software Foundation, either version 3 of the
~ License.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU Affero General Public License for more details.
~
~ You should have received a copy of the GNU Affero General Public License
~ along with this program. If not, see <https://www.gnu.org/licenses/>.
~
~ Copyright (C) 2023-2024 HyperCeiler Contributions
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid android:color="#99838383" />
Expand Down
19 changes: 18 additions & 1 deletion app/src/main/res/drawable/card_tile_background.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?><!--
~ This file is part of HyperCeiler.
~
~ HyperCeiler is free software: you can redistribute it and/or modify
~ it under the terms of the GNU Affero General Public License as
~ published by the Free Software Foundation, either version 3 of the
~ License.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU Affero General Public License for more details.
~
~ You should have received a copy of the GNU Affero General Public License
~ along with this program. If not, see <https://www.gnu.org/licenses/>.
~
~ Copyright (C) 2023-2024 HyperCeiler Contributions
-->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape>
Expand Down
19 changes: 18 additions & 1 deletion app/src/main/res/drawable/ic_android_settings.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?><!--
~ This file is part of HyperCeiler.
~
~ HyperCeiler is free software: you can redistribute it and/or modify
~ it under the terms of the GNU Affero General Public License as
~ published by the Free Software Foundation, either version 3 of the
~ License.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU Affero General Public License for more details.
~
~ You should have received a copy of the GNU Affero General Public License
~ along with this program. If not, see <https://www.gnu.org/licenses/>.
~
~ Copyright (C) 2023-2024 HyperCeiler Contributions
-->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape>
Expand Down
19 changes: 18 additions & 1 deletion app/src/main/res/drawable/ic_arrow_edit.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?><!--
~ This file is part of HyperCeiler.
~
~ HyperCeiler is free software: you can redistribute it and/or modify
~ it under the terms of the GNU Affero General Public License as
~ published by the Free Software Foundation, either version 3 of the
~ License.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU Affero General Public License for more details.
~
~ You should have received a copy of the GNU Affero General Public License
~ along with this program. If not, see <https://www.gnu.org/licenses/>.
~
~ Copyright (C) 2023-2024 HyperCeiler Contributions
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:height="24.727268dp"
android:width="24.727268dp"
Expand Down
19 changes: 18 additions & 1 deletion app/src/main/res/drawable/ic_ationbar_back.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?><!--
~ This file is part of HyperCeiler.
~
~ HyperCeiler is free software: you can redistribute it and/or modify
~ it under the terms of the GNU Affero General Public License as
~ published by the Free Software Foundation, either version 3 of the
~ License.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU Affero General Public License for more details.
~
~ You should have received a copy of the GNU Affero General Public License
~ along with this program. If not, see <https://www.gnu.org/licenses/>.
~
~ Copyright (C) 2023-2024 HyperCeiler Contributions
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:height="36dp"
android:width="36dp"
Expand Down
19 changes: 18 additions & 1 deletion app/src/main/res/drawable/ic_audio_system.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?><!--
~ This file is part of HyperCeiler.
~
~ HyperCeiler is free software: you can redistribute it and/or modify
~ it under the terms of the GNU Affero General Public License as
~ published by the Free Software Foundation, either version 3 of the
~ License.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU Affero General Public License for more details.
~
~ You should have received a copy of the GNU Affero General Public License
~ along with this program. If not, see <https://www.gnu.org/licenses/>.
~
~ Copyright (C) 2023-2024 HyperCeiler Contributions
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="69px"
android:height="60px"
Expand Down
19 changes: 18 additions & 1 deletion app/src/main/res/drawable/ic_card_tile_mark.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?><!--
~ This file is part of HyperCeiler.
~
~ HyperCeiler is free software: you can redistribute it and/or modify
~ it under the terms of the GNU Affero General Public License as
~ published by the Free Software Foundation, either version 3 of the
~ License.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU Affero General Public License for more details.
~
~ You should have received a copy of the GNU Affero General Public License
~ along with this program. If not, see <https://www.gnu.org/licenses/>.
~
~ Copyright (C) 2023-2024 HyperCeiler Contributions
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/ic_card_tile_mark_remove" android:state_checked="true" />
<item android:drawable="@drawable/ic_card_tile_mark_add" />
Expand Down
Loading

0 comments on commit b87808e

Please sign in to comment.