Skip to content

Commit

Permalink
优化 项目代码格式化 (#167)
Browse files Browse the repository at this point in the history
* 优化 项目编辑器格式配置

Signed-off-by: Naomi <[email protected]>

* 优化 ci触发规则

Signed-off-by: Naomi <[email protected]>

* 优化 项目代码格式化

Signed-off-by: Naomi <[email protected]>

---------

Signed-off-by: Naomi <[email protected]>
  • Loading branch information
Henvy-Mango authored Jun 7, 2023
1 parent 2e79a78 commit 30f1d61
Show file tree
Hide file tree
Showing 588 changed files with 7,360 additions and 6,846 deletions.
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.xml]
insert_final_newline = false

[*.yml]
indent_size = 2
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/FEATURE-REQUEST.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ body:
id: requirement
attributes:
label: "需求内容"
description: "简单说明你的需求"
description: "简单说明你的需求"
placeholder: 请添加...
validations:
required: true
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/MIGRATION-REQUEST.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ body:
id: requirement
attributes:
label: "移植内容"
description: "简单说明需要移植的内容"
description: "简单说明需要移植的内容"
placeholder: 移植...软件的...功能
validations:
required: true
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
name: Android Ci Release
on:
push:
branches: ["main"]
branches: [ "main" ]
pull_request:
branches: ["main"]
branches: [ "main" ]
paths-ignore:
- "README.md"
- "README_en-US.md"
- ".github/**"
- "!.github/workflows/**"
- ".idea/"
- "doc/*"
- "*.md"
jobs:
build:
runs-on: ubuntu-latest
Expand Down
354 changes: 241 additions & 113 deletions app/src/main/AndroidManifest.xml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions app/src/main/java/com/sevtinge/cemiuiler/XposedInit.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class XposedInit : BaseXposedInit(), IXposedHookInitPackageResources {
if (mPrefsMap.getBoolean("system_framework_clean_share_menu")) CleanShareMenu.initRes()
if (mPrefsMap.getBoolean("system_framework_clean_open_menu")) CleanOpenMenu.initRes()
if (mPrefsMap.getBoolean("system_framework_volume_separate_control")) VolumeSeparateControlForSettings.initRes()
//if (mPrefsMap.getBoolean("various_theme_crack")) ThemeCrack.initRes()
// if (mPrefsMap.getBoolean("various_theme_crack")) ThemeCrack.initRes()
if (startupParam != null) {
BackgroundBlurDrawable().initZygote(startupParam)
SystemFrameworkForCorePatch().initZygote(startupParam)
Expand Down Expand Up @@ -68,4 +68,4 @@ class XposedInit : BaseXposedInit(), IXposedHookInitPackageResources {

}
}
}
}
17 changes: 9 additions & 8 deletions app/src/main/java/com/sevtinge/cemiuiler/data/LocationData.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@

public class LocationData {

private String Title; //备注
private Double Longitude; //经度
private Double Latitude; //纬度
private String Title; // 备注
private Double Longitude; // 经度
private Double Latitude; // 纬度
private int Offset;
private int RegionCode; //区域代码
private int BaseStationCode; //基站代码
private int RegionCode; // 区域代码
private int BaseStationCode; // 基站代码
private int f;
private String Remarks; //备注
private String Remarks; // 备注

public LocationData() {}
public LocationData() {
}

//标题,经度,纬度,偏移
// 标题,经度,纬度,偏移
public LocationData(String title, Double longitude, Double latitude, int offset, int regionCode, int baseStationCode, String remarks, int i4) {
Title = title;
Longitude = longitude;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class AppDataAdapter extends RecyclerView.Adapter<AppDataAdapter.ViewHold
private int mType;


public void setData (List<AppData> appInfoList) {
public void setData(List<AppData> appInfoList) {
this.appInfoList = appInfoList;
notifyDataSetChanged();
}
Expand All @@ -42,9 +42,10 @@ public AppDataAdapter(Context context, String key, int type) {

/**
* 在Adapter中设置一个过滤方法,目的是为了将过滤后的数据传入Adapter中并刷新数据
*
* @param locationListModels
*/
public void setFilter(List<AppData> locationListModels ) {
public void setFilter(List<AppData> locationListModels) {
appInfoList = new ArrayList<>();
appInfoList.addAll(locationListModels);
notifyDataSetChanged();
Expand Down Expand Up @@ -101,8 +102,8 @@ public ViewHolder(View itemView) {
}
}

public interface onItemClickListener{
void onItemClick(View view, int position, AppData appData , boolean isCheck);
public interface onItemClickListener {
void onItemClick(View view, int position, AppData appData, boolean isCheck);
}

}
10 changes: 5 additions & 5 deletions app/src/main/java/com/sevtinge/cemiuiler/module/Aireco.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package com.sevtinge.cemiuiler.module;

import com.sevtinge.cemiuiler.module.base.BaseModule;
import com.sevtinge.cemiuiler.module.aireco.DeviceModify;
import com.sevtinge.cemiuiler.module.base.BaseModule;

public class Aireco extends BaseModule {

@Override
public void handleLoadPackage() {
initHook(new DeviceModify(), mPrefsMap.getBoolean("aireco_device_modify"));
}
@Override
public void handleLoadPackage() {
initHook(new DeviceModify(), mPrefsMap.getBoolean("aireco_device_modify"));
}
}



Expand Down
3 changes: 2 additions & 1 deletion app/src/main/java/com/sevtinge/cemiuiler/module/Browser.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package com.sevtinge.cemiuiler.module;

import com.sevtinge.cemiuiler.module.base.BaseModule;
import com.sevtinge.cemiuiler.module.browser.*;
import com.sevtinge.cemiuiler.module.browser.BrowserDexKit;
import com.sevtinge.cemiuiler.module.browser.DebugMode;

public class Browser extends BaseModule {

Expand Down
58 changes: 51 additions & 7 deletions app/src/main/java/com/sevtinge/cemiuiler/module/Camera.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,57 @@
package com.sevtinge.cemiuiler.module;

import com.sevtinge.cemiuiler.module.base.BaseModule;
import com.sevtinge.cemiuiler.module.camera.*;
import com.sevtinge.cemiuiler.module.camera.EnableLabOptions;
import com.sevtinge.cemiuiler.module.camera.Unlock120Fps;
import com.sevtinge.cemiuiler.module.camera.Unlock60Fps;
import com.sevtinge.cemiuiler.module.camera.UnlockAiEnhance;
import com.sevtinge.cemiuiler.module.camera.UnlockAiShutter;
import com.sevtinge.cemiuiler.module.camera.UnlockAiWatermark;
import com.sevtinge.cemiuiler.module.camera.UnlockAmbilight;
import com.sevtinge.cemiuiler.module.camera.UnlockAudioZoom;
import com.sevtinge.cemiuiler.module.camera.UnlockClone;
import com.sevtinge.cemiuiler.module.camera.UnlockColorEnhance;
import com.sevtinge.cemiuiler.module.camera.UnlockCosmeticMirror;
import com.sevtinge.cemiuiler.module.camera.UnlockCvlens;
import com.sevtinge.cemiuiler.module.camera.UnlockCyberFocusVersion2;
import com.sevtinge.cemiuiler.module.camera.UnlockDoc;
import com.sevtinge.cemiuiler.module.camera.UnlockDualcam;
import com.sevtinge.cemiuiler.module.camera.UnlockDuration;
import com.sevtinge.cemiuiler.module.camera.UnlockFilm;
import com.sevtinge.cemiuiler.module.camera.UnlockFilmDelay;
import com.sevtinge.cemiuiler.module.camera.UnlockFilmDollyZoom;
import com.sevtinge.cemiuiler.module.camera.UnlockFilmDream;
import com.sevtinge.cemiuiler.module.camera.UnlockFilmSlowShutter;
import com.sevtinge.cemiuiler.module.camera.UnlockFilmTimeBackflow;
import com.sevtinge.cemiuiler.module.camera.UnlockFilmTimeFreeze;
import com.sevtinge.cemiuiler.module.camera.UnlockHandGesture;
import com.sevtinge.cemiuiler.module.camera.UnlockHdr;
import com.sevtinge.cemiuiler.module.camera.UnlockHeic;
import com.sevtinge.cemiuiler.module.camera.UnlockIdcard;
import com.sevtinge.cemiuiler.module.camera.UnlockLog;
import com.sevtinge.cemiuiler.module.camera.UnlockMakeup;
import com.sevtinge.cemiuiler.module.camera.UnlockMenMakeup;
import com.sevtinge.cemiuiler.module.camera.UnlockMilive;
import com.sevtinge.cemiuiler.module.camera.UnlockMoon;
import com.sevtinge.cemiuiler.module.camera.UnlockNevus;
import com.sevtinge.cemiuiler.module.camera.UnlockNewBeauty;
import com.sevtinge.cemiuiler.module.camera.UnlockPano;
import com.sevtinge.cemiuiler.module.camera.UnlockPixel;
import com.sevtinge.cemiuiler.module.camera.UnlockPortrait;
import com.sevtinge.cemiuiler.module.camera.UnlockRaw;
import com.sevtinge.cemiuiler.module.camera.UnlockSlow;
import com.sevtinge.cemiuiler.module.camera.UnlockTrackEyes;
import com.sevtinge.cemiuiler.module.camera.UnlockTrackFeature;
import com.sevtinge.cemiuiler.module.camera.UnlockTrackFocus;
import com.sevtinge.cemiuiler.module.camera.UnlockVideosky;
import com.sevtinge.cemiuiler.module.camera.UnlockVlog;
import com.sevtinge.cemiuiler.module.camera.UnlockVlogPro;

public class Camera extends BaseModule {

@Override
public void handleLoadPackage() {
//功能
// 功能
initHook(new UnlockAiWatermark(), mPrefsMap.getBoolean("camera_features_unlock_aiwatermark"));
initHook(new UnlockAmbilight(), mPrefsMap.getBoolean("camera_features_unlock_ambilight"));
initHook(new UnlockClone(), mPrefsMap.getBoolean("camera_features_unlock_clone"));
Expand All @@ -33,27 +77,27 @@ public void handleLoadPackage() {
initHook(new UnlockFilmTimeBackflow(), mPrefsMap.getBoolean("camera_features_unlock_film_timebackflow"));
initHook(new UnlockFilmTimeFreeze(), mPrefsMap.getBoolean("camera_features_unlock_film_timefreeze"));

//拍照
// 拍照
initHook(new UnlockMakeup(), mPrefsMap.getBoolean("camera_shot_makeup"));
initHook(new UnlockColorEnhance(), mPrefsMap.getBoolean("camera_shot_color_enhance"));
initHook(new UnlockHandGesture(), mPrefsMap.getBoolean("camera_shot_hand_gesture"));

//录像
// 录像
initHook(new Unlock60Fps(), mPrefsMap.getBoolean("camera_record_60fps"));
initHook(new Unlock120Fps(), mPrefsMap.getBoolean("camera_record_120fps"));
initHook(new UnlockHdr(), mPrefsMap.getBoolean("camera_record_hdr"));
initHook(new UnlockAiEnhance(), mPrefsMap.getBoolean("camera_record_ai"));
initHook(new UnlockAudioZoom(), mPrefsMap.getBoolean("camera_record_audio_zoom"));

//人像
// 人像
initHook(new UnlockCvlens(), mPrefsMap.getBoolean("camera_portrait_cvlens"));
initHook(new UnlockNewBeauty(), mPrefsMap.getBoolean("camera_portrait_new_beauty"));

//专业
// 专业
initHook(new UnlockRaw(), mPrefsMap.getBoolean("camera_pro_raw"));
initHook(new UnlockLog(), mPrefsMap.getBoolean("camera_pro_log"));

//设置
// 设置
initHook(new UnlockTrackFeature(), (mPrefsMap.getBoolean("camera_settings_track_eyes") || mPrefsMap.getBoolean("camera_settings_track_focus")));
initHook(new UnlockHeic(), mPrefsMap.getBoolean("camera_settings_heic"));
initHook(new UnlockTrackFocus(), mPrefsMap.getBoolean("camera_settings_track_focus"));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
package com.sevtinge.cemiuiler.module;

import com.sevtinge.cemiuiler.module.base.BaseModule;
import com.sevtinge.cemiuiler.module.clock.EnableHourGlass;
import com.sevtinge.cemiuiler.module.contentextension.DoublePress;
import com.sevtinge.cemiuiler.module.contentextension.LinkOpenMode;
import com.sevtinge.cemiuiler.module.contentextension.SuperImage;
import com.sevtinge.cemiuiler.module.contentextension.UseThirdPartyBrowser;

public class ContentExtension extends BaseModule {

@Override
public void handleLoadPackage() {
initHook(new UseThirdPartyBrowser(), mPrefsMap.getBoolean("content_extension_browser"));
initHook(new DoublePress(), mPrefsMap.getBoolean("content_extension_double_press"));
initHook(new SuperImage(), mPrefsMap.getBoolean("content_extension_super_image"));
initHook(new LinkOpenMode());
}
@Override
public void handleLoadPackage() {
initHook(new UseThirdPartyBrowser(), mPrefsMap.getBoolean("content_extension_browser"));
initHook(new DoublePress(), mPrefsMap.getBoolean("content_extension_double_press"));
initHook(new SuperImage(), mPrefsMap.getBoolean("content_extension_super_image"));
initHook(new LinkOpenMode());
}
}

12 changes: 11 additions & 1 deletion app/src/main/java/com/sevtinge/cemiuiler/module/Gallery.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
package com.sevtinge.cemiuiler.module;

import com.sevtinge.cemiuiler.module.base.BaseModule;
import com.sevtinge.cemiuiler.module.gallery.*;
import com.sevtinge.cemiuiler.module.gallery.EnableHdrEnhance;
import com.sevtinge.cemiuiler.module.gallery.EnableIdPhoto;
import com.sevtinge.cemiuiler.module.gallery.EnableMagicSky;
import com.sevtinge.cemiuiler.module.gallery.EnableOcr;
import com.sevtinge.cemiuiler.module.gallery.EnableOcrForm;
import com.sevtinge.cemiuiler.module.gallery.EnablePdf;
import com.sevtinge.cemiuiler.module.gallery.EnablePhotoMovie;
import com.sevtinge.cemiuiler.module.gallery.EnableRemover2;
import com.sevtinge.cemiuiler.module.gallery.EnableTextYanhua;
import com.sevtinge.cemiuiler.module.gallery.EnableVideoPost;
import com.sevtinge.cemiuiler.module.gallery.UnlockSuperClipboard;

public class Gallery extends BaseModule {

Expand Down
Loading

0 comments on commit 30f1d61

Please sign in to comment.