-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from remaker17/main
Reformat code, new workflow to format Java-code
- Loading branch information
Showing
29 changed files
with
324 additions
and
381 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Java-code Formatter | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- '**.md' | ||
- '**.gradle' | ||
- '**.xml' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
formatting: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: axel-op/[email protected] | ||
with: | ||
args: '--replace --aosp --skip-reflowing-long-strings' | ||
commitMessage: "refactor: Format Java-code [skip ci]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,98 +1,82 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="nethical.digipaws" | ||
android:versionCode="1" | ||
android:versionName="1.0"> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
|
||
|
||
<uses-sdk android:minSdkVersion="24" android:targetSdkVersion="31"/> | ||
<uses-permission android:name="android.permission.QUERY_PACKAGE_NAMES" /> | ||
<uses-permission | ||
android:name="android.permission.QUERY_ALL_PACKAGES" | ||
/> | ||
<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" /> | ||
<uses-permission android:name="android.permission.MANAGE_USERS" /> | ||
<uses-permission android:name="android.permission.QUERY_PACKAGE_NAMES" /> | ||
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" /> | ||
<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" /> | ||
<uses-permission android:name="android.permission.MANAGE_USERS" /> | ||
|
||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> | ||
|
||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> | ||
<uses-permission android:name="android.permission.PACKAGE_USAGE_STATS"/> | ||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> | ||
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /> | ||
<uses-permission android:name="android.permission.EXPAND_STATUS_BAR" /> | ||
|
||
<uses-permission android:name="android.permission.PACKAGE_USAGE_STATS"/> | ||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> | ||
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /> | ||
<uses-permission android:name="android.permission.EXPAND_STATUS_BAR" /> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/> | ||
|
||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/> | ||
|
||
<application | ||
android:allowBackup="true" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:roundIcon="@mipmap/ic_launcher_round" | ||
android:supportsRtl="true" | ||
android:theme="@style/AppTheme"> | ||
|
||
<activity | ||
android:name=".LauncherActivity" | ||
android:configChanges="orientation|screenSize|keyboardHidden|smallestScreenSize|screenLayout" | ||
android:hardwareAccelerated="true" | ||
|
||
android:supportsPictureInPicture="true" | ||
android:configChanges="orientation|screenSize|keyboardHidden|smallestScreenSize|screenLayout" | ||
android:hardwareAccelerated="true" | ||
android:supportsPictureInPicture="true" | ||
android:exported="true"> | ||
|
||
<intent-filter> | ||
<category android:name="android.intent.category.HOME" /> | ||
<category android:name="android.intent.category.DEFAULT" /> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
|
||
</intent-filter> | ||
|
||
|
||
</activity> | ||
|
||
|
||
|
||
<service | ||
android:exported="true" | ||
android:name=".services.BlockerService" | ||
android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE"> | ||
<intent-filter> | ||
<action android:name="android.accessibilityservice.AccessibilityService" /> | ||
</intent-filter> | ||
|
||
|
||
|
||
<meta-data | ||
android:name="android.accessibilityservice" | ||
android:resource="@xml/stop_view_service_config" /> | ||
</service> | ||
|
||
<intent-filter> | ||
<category android:name="android.intent.category.HOME" /> | ||
<category android:name="android.intent.category.DEFAULT" /> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
|
||
<service | ||
android:exported="true" | ||
android:name=".services.BlockerService" | ||
android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE"> | ||
<intent-filter> | ||
<action android:name="android.accessibilityservice.AccessibilityService" /> | ||
</intent-filter> | ||
|
||
|
||
<receiver | ||
android:exported="false" | ||
android:name=".MyDeviceAdminReceiver" | ||
android:permission="android.permission.BIND_DEVICE_ADMIN"> | ||
<meta-data | ||
android:name="android.app.device_admin" | ||
android:resource="@xml/device_admin_receiver" /> | ||
<intent-filter> | ||
<action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> | ||
</intent-filter> | ||
</receiver> | ||
<meta-data | ||
android:name="android.accessibilityservice" | ||
android:resource="@xml/stop_view_service_config" /> | ||
</service> | ||
|
||
<receiver android:name=".view.WidgetProvider" | ||
android:exported="true"> | ||
<intent-filter> | ||
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> | ||
</intent-filter> | ||
<meta-data android:name="android.appwidget.provider" | ||
android:resource="@xml/widget_info" /> | ||
</receiver> | ||
<receiver | ||
android:exported="false" | ||
android:name=".MyDeviceAdminReceiver" | ||
android:permission="android.permission.BIND_DEVICE_ADMIN"> | ||
<intent-filter> | ||
<action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> | ||
</intent-filter> | ||
|
||
<meta-data | ||
android:name="android.app.device_admin" | ||
android:resource="@xml/device_admin_receiver" /> | ||
</receiver> | ||
|
||
<receiver | ||
android:name=".view.WidgetProvider" | ||
android:exported="true"> | ||
<meta-data | ||
android:name="android.appwidget.provider" | ||
android:resource="@xml/widget_info" /> | ||
|
||
|
||
<intent-filter> | ||
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> | ||
</intent-filter> | ||
</receiver> | ||
</application> | ||
|
||
</manifest> | ||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:orientation="vertical" | ||
android:fitsSystemWindows="true" | ||
android:clipToPadding="true"> | ||
|
||
<FrameLayout | ||
android:id="@+id/fragment_container" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:orientation="vertical" | ||
android:fitsSystemWindows="true" | ||
android:clipToPadding="true" | ||
> | ||
|
||
<FrameLayout | ||
android:id="@+id/fragment_container" | ||
android:fitsSystemWindows="true" | ||
android:clipToPadding="true" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" /> | ||
android:clipToPadding="true" | ||
android:fitsSystemWindows="true" /> | ||
|
||
</LinearLayout> | ||
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,5 @@ | ||
<LinearLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:fitsSystemWindows="true" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
|
||
android:orientation="vertical"> | ||
</LinearLayout> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:fitsSystemWindows="true" | ||
android:orientation="vertical" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,32 @@ | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:orientation="vertical"> | ||
|
||
<LinearLayout | ||
android:id="@+id/appList" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:padding="8dp" | ||
android:orientation="vertical"> | ||
<EditText | ||
android:id="@+id/searchApp" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:padding="8dp" | ||
android:gravity="center_horizontal|center_vertical" | ||
android:textSize="18sp" | ||
android:hint="Search An Application" | ||
android:textColorHint="@color/lgrey" | ||
android:textColor="@color/white" | ||
android:lines="1" | ||
android:imeOptions="actionSearch" /> | ||
<androidx.recyclerview.widget.RecyclerView | ||
android:id="@+id/appListView" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:padding="8dp" | ||
android:overScrollMode="never" /> | ||
</LinearLayout> | ||
|
||
</LinearLayout> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:orientation="vertical"> | ||
|
||
<LinearLayout | ||
android:id="@+id/appList" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:padding="8dp" | ||
android:orientation="vertical"> | ||
<EditText | ||
android:id="@+id/searchApp" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:padding="8dp" | ||
android:gravity="center_horizontal|center_vertical" | ||
android:textSize="18sp" | ||
android:hint="Search An Application" | ||
android:textColorHint="@color/lgrey" | ||
android:textColor="@color/white" | ||
android:lines="1" | ||
android:imeOptions="actionSearch" /> | ||
<androidx.recyclerview.widget.RecyclerView | ||
android:id="@+id/appListView" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:padding="8dp" | ||
android:overScrollMode="never" /> | ||
</LinearLayout> | ||
</LinearLayout> |
Oops, something went wrong.