Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

Add baseline-profile #257

Open
wants to merge 3 commits into
base: 4.0-dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ captures/

# IntelliJ
*.iml
.idea/

# Keystore files
# Uncomment the following line if you do not want to check your keystore files in.
Expand Down
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ android {
signingConfigs.getByName("config")
else signingConfigs.getByName("debug")
}
create("benchmark") {
initWith(buildTypes.getByName("release"))
signingConfig = signingConfigs.getByName("debug")
matchingFallbacks += listOf("release")
}
release {
isMinifyEnabled = true
isShrinkResources = true
Expand Down
44 changes: 22 additions & 22 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,15 @@
android:theme="@style/AppTheme"
android:usesCleartextTraffic="true"
tools:ignore="UnusedAttribute">

<profileable
android:shell="true"
tools:targetApi="29" />

<service
android:name=".services.OKSignService"
android:exported="true"
android:enabled="true"
android:exported="true"
android:foregroundServiceType="specialUse"
android:permission="android.permission.BIND_JOB_SERVICE"
android:process=":oksign">
Expand Down Expand Up @@ -123,23 +128,23 @@
android:enabled="true"
android:exported="true"
android:icon="@mipmap/ic_launcher_new"
android:roundIcon="@mipmap/ic_launcher_new_round"
android:launchMode="singleTop"
android:resizeableActivity="true"
android:roundIcon="@mipmap/ic_launcher_new_round"
android:theme="@style/Theme.Splash"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

<intent-filter>
<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.DEFAULT" />

<data android:scheme="tblite" />
</intent-filter>

<intent-filter android:autoVerify="true">
<data
android:host="unidispatch"
Expand All @@ -157,11 +162,11 @@
</activity>

<activity-alias
android:name=".activities.MainActivity"
android:name=".MainActivityIconOld"
android:enabled="false"
android:exported="true"
android:icon="@mipmap/ic_launcher_new"
android:roundIcon="@mipmap/ic_launcher_new_round"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:targetActivity=".MainActivityV2">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand All @@ -173,13 +178,12 @@
android:name="android.app.shortcuts"
android:resource="@xml/shortcut_new" />
</activity-alias>

<activity-alias
android:name=".MainActivityIconThemed"
android:name=".MainActivityIconInvert"
android:enabled="false"
android:exported="true"
android:icon="@mipmap/ic_launcher_new_themed"
android:roundIcon="@mipmap/ic_launcher_new_themed_round"
android:icon="@mipmap/ic_launcher_new_invert"
android:roundIcon="@mipmap/ic_launcher_new_invert_round"
android:targetActivity=".MainActivityV2">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand All @@ -191,13 +195,12 @@
android:name="android.app.shortcuts"
android:resource="@xml/shortcut_new" />
</activity-alias>

<activity-alias
android:name=".MainActivityIconInvert"
android:name=".MainActivityIconThemed"
android:enabled="false"
android:exported="true"
android:icon="@mipmap/ic_launcher_new_invert"
android:roundIcon="@mipmap/ic_launcher_new_invert_round"
android:icon="@mipmap/ic_launcher_new_themed"
android:roundIcon="@mipmap/ic_launcher_new_themed_round"
android:targetActivity=".MainActivityV2">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand All @@ -210,11 +213,11 @@
android:resource="@xml/shortcut_new" />
</activity-alias>
<activity-alias
android:name=".MainActivityIconOld"
android:name=".activities.MainActivity"
android:enabled="false"
android:exported="true"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:icon="@mipmap/ic_launcher_new"
android:roundIcon="@mipmap/ic_launcher_new_round"
android:targetActivity=".MainActivityV2">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down Expand Up @@ -246,7 +249,6 @@
<action android:name="android.service.quicksettings.action.QS_TILE" />
</intent-filter>
</service>

<service
android:name=".services.NotifyJobService"
android:exported="true"
Expand All @@ -256,12 +258,10 @@
android:name=".activities.TranslucentThemeActivity"
android:configChanges="screenSize|screenLayout|orientation|smallestScreenSize|keyboardHidden"
android:windowSoftInputMode="adjustResize" />

<activity
android:name="com.yalantis.ucrop.UCropActivity"
android:screenOrientation="portrait"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />

<activity
android:name=".ui.page.user.edit.EditProfileActivity"
android:configChanges="screenSize|screenLayout|orientation|smallestScreenSize|keyboardHidden"
Expand All @@ -279,7 +279,6 @@
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths_share_img" />
</provider>

<provider
android:name="androidx.startup.InitializationProvider"
android:authorities="com.huanchengfly.tieba.post.androidx-startup"
Expand All @@ -290,4 +289,5 @@
android:value="androidx.startup" />
</provider>
</application>

</manifest>
Loading