{
9 | @Override
10 | public int compare(T sequence1, T sequence2) {
11 | int len1 = sequence1.length(), len2 = sequence2.length();
12 | int idx1 = 0, idx2 = 0;
13 |
14 | while (idx1 < len1 && idx2 < len2) {
15 | char c1 = sequence1.charAt(idx1++);
16 | char c2 = sequence2.charAt(idx2++);
17 |
18 | boolean isDigit1 = isDigit(c1);
19 | boolean isDigit2 = isDigit(c2);
20 |
21 | if (isDigit1 && !isDigit2) {
22 | return -1;
23 | } else if (!isDigit1 && isDigit2) {
24 | return 1;
25 | } else if (!isDigit1) {
26 | int c = compareChars(c1, c2);
27 | if (c != 0) {
28 | return c;
29 | }
30 | } else {
31 | long num1 = parse(c1);
32 | while (idx1 < len1) {
33 | char digit = sequence1.charAt(idx1++);
34 | if (isDigit(digit)) {
35 | num1 = num1 * 10 + parse(digit);
36 | } else {
37 | idx1--;
38 | break;
39 | }
40 | }
41 |
42 | long num2 = parse(c2);
43 | while (idx2 < len2) {
44 | char digit = sequence2.charAt(idx2++);
45 | if (isDigit(digit)) {
46 | num2 = num2 * 10 + parse(digit);
47 | } else {
48 | idx2--;
49 | break;
50 | }
51 | }
52 |
53 | if (num1 != num2) {
54 | return compareUnsigned(num1, num2);
55 | }
56 | }
57 | }
58 |
59 | if (idx1 < len1) {
60 | return 1;
61 | } else if (idx2 < len2) {
62 | return -1;
63 | } else {
64 | return 0;
65 | }
66 | }
67 |
68 | abstract int compareChars(char c1, char c2);
69 |
70 | private static int compareUnsigned(long num1, long num2) {
71 | return compare(num1 + Long.MIN_VALUE, num2 + Long.MIN_VALUE);
72 | }
73 |
74 | private static int compare(long x, long y) {
75 | return Long.compare(x, y);
76 | }
77 |
78 | private static long parse(char c1) {
79 | return c1 - '0';
80 | }
81 |
82 | private static boolean isDigit(char c) {
83 | return '0' <= c & c <= '9';
84 | }
85 | }
86 |
--------------------------------------------------------------------------------
/app/src/main/java/com/salt/video/util/sort/SimpleNaturalComparator.java:
--------------------------------------------------------------------------------
1 | package com.salt.video.util.sort;
2 |
3 | import java.util.Comparator;
4 |
5 | /**
6 | * Compares Strings (or any other CharSequence subclass) using the
7 | * natural sort /
8 | * alphanum algorithm which gives a more
9 | * "natural" ordering when presenting the sorted list of strings to humans.
10 | *
11 | *
12 | * This is a fast implementation of the original algorithm which produces no garbage during its run.
13 | * There is also a case-insensitive variant you might want to use:
14 | * CaseInsensitiveSimpleNaturalComparator. This is a fully self-contained implementation
15 | * compiled with Java 1.6 for maximum compatibility which does not add any additional dependencies
16 | * to your project.
17 | *
18 | *
19 | * There are still limitations of this implementation to be aware of (which hopefully will be
20 | * addressed in future releases):
21 | *
22 | *
23 | * - Does not play nice with Unicode, especially characters which are outside of the BMP (ie.
24 | * codepoints with values larger than {@link Character#MAX_VALUE}).
25 | * - Does not handle fractions or grouping characters properly.
26 | * - Only understands integer values up to 2^64-1.
27 | *
28 | */
29 | public final class SimpleNaturalComparator
30 | extends AbstractSimpleNaturalComparator implements Comparator {
31 | @SuppressWarnings("rawtypes")
32 | private static final Comparator INSTANCE = new SimpleNaturalComparator();
33 |
34 | private SimpleNaturalComparator() {
35 | // to be instantiated only internally
36 | }
37 |
38 | @Override
39 | int compareChars(char c1, char c2) {
40 | return c1 - c2;
41 | }
42 |
43 | @SuppressWarnings("unchecked")
44 | public static Comparator getInstance() {
45 | return INSTANCE;
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/background_seek_bar_music.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
5 |
6 |
7 |
8 |
9 |
10 | -
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | -
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/background_seek_bar_thumb.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | -
15 |
16 |
17 |
18 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bg_button.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bg_player_ui_bottom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bg_player_ui_top.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/cursor_xsm.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
5 |
6 |
7 |
8 | -
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_about.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_add.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_arrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Moriafly/SaltVideo/6c7295b22070ef010fef0308dbf88078bf038821/app/src/main/res/drawable/ic_arrow.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_audio_file.xml:
--------------------------------------------------------------------------------
1 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_avatar_test.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Moriafly/SaltVideo/6c7295b22070ef010fef0308dbf88078bf038821/app/src/main/res/drawable/ic_avatar_test.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_back.xml:
--------------------------------------------------------------------------------
1 |
8 |
11 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_cloud.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Moriafly/SaltVideo/6c7295b22070ef010fef0308dbf88078bf038821/app/src/main/res/drawable/ic_cloud.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_copyright.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_cpu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Moriafly/SaltVideo/6c7295b22070ef010fef0308dbf88078bf038821/app/src/main/res/drawable/ic_cpu.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_fast_forward.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_folder.xml:
--------------------------------------------------------------------------------
1 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_foot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Moriafly/SaltVideo/6c7295b22070ef010fef0308dbf88078bf038821/app/src/main/res/drawable/ic_foot.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_forward.xml:
--------------------------------------------------------------------------------
1 |
8 |
11 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_hide_file.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Moriafly/SaltVideo/6c7295b22070ef010fef0308dbf88078bf038821/app/src/main/res/drawable/ic_hide_file.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_hide_source.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_hide_video.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Moriafly/SaltVideo/6c7295b22070ef010fef0308dbf88078bf038821/app/src/main/res/drawable/ic_hide_video.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_home.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_internet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Moriafly/SaltVideo/6c7295b22070ef010fef0308dbf88078bf038821/app/src/main/res/drawable/ic_internet.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_kayaking.xml:
--------------------------------------------------------------------------------
1 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Moriafly/SaltVideo/6c7295b22070ef010fef0308dbf88078bf038821/app/src/main/res/drawable/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
15 |
20 |
25 |
30 |
35 |
40 |
45 |
50 |
55 |
60 |
65 |
70 |
75 |
80 |
85 |
90 |
95 |
100 |
105 |
110 |
115 |
120 |
125 |
130 |
135 |
140 |
145 |
150 |
155 |
160 |
165 |
170 |
171 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
11 |
12 |
15 |
20 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_license.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Moriafly/SaltVideo/6c7295b22070ef010fef0308dbf88078bf038821/app/src/main/res/drawable/ic_license.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_loading.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Moriafly/SaltVideo/6c7295b22070ef010fef0308dbf88078bf038821/app/src/main/res/drawable/ic_loading.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_main_bottom_video.xml:
--------------------------------------------------------------------------------
1 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_mini_player_pause.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
15 |
16 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_mini_player_play.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_movies_folder.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Moriafly/SaltVideo/6c7295b22070ef010fef0308dbf88078bf038821/app/src/main/res/drawable/ic_movies_folder.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_orange.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
12 |
15 |
18 |
21 |
24 |
27 |
28 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_pause.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_picture_in_picture.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_play.xml:
--------------------------------------------------------------------------------
1 |
7 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_salt_video.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
11 |
16 |
21 |
22 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_screen_rotation.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_settings.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_snowman.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Moriafly/SaltVideo/6c7295b22070ef010fef0308dbf88078bf038821/app/src/main/res/drawable/ic_snowman.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_tv.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Moriafly/SaltVideo/6c7295b22070ef010fef0308dbf88078bf038821/app/src/main/res/drawable/ic_tv.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_video.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Moriafly/SaltVideo/6c7295b22070ef010fef0308dbf88078bf038821/app/src/main/res/drawable/ic_video.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_video_file.xml:
--------------------------------------------------------------------------------
1 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_wifi_tethering.xml:
--------------------------------------------------------------------------------
1 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/seek_bar_thumb_btn.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
8 |
9 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_local_folder.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
16 |
17 |
26 |
27 |
40 |
41 |
50 |
51 |
57 |
58 |
59 |
60 |
66 |
67 |
74 |
75 |
81 |
82 |
83 |
84 |
85 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
16 |
17 |
30 |
31 |
37 |
38 |
39 |
40 |
47 |
48 |
54 |
55 |
71 |
72 |
73 |
74 |
82 |
83 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/fragment_my.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
17 |
18 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/fragment_video.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/rv_home.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
18 |
19 |
32 |
33 |
42 |
43 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/rv_home_footer.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
26 |
27 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/rv_media_source.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
18 |
19 |
32 |
33 |
42 |
43 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/rv_video.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
18 |
19 |
31 |
32 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/menu_main_bottom.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Moriafly/SaltVideo/6c7295b22070ef010fef0308dbf88078bf038821/app/src/main/res/mipmap-hdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Moriafly/SaltVideo/6c7295b22070ef010fef0308dbf88078bf038821/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Moriafly/SaltVideo/6c7295b22070ef010fef0308dbf88078bf038821/app/src/main/res/mipmap-mdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Moriafly/SaltVideo/6c7295b22070ef010fef0308dbf88078bf038821/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Moriafly/SaltVideo/6c7295b22070ef010fef0308dbf88078bf038821/app/src/main/res/mipmap-xhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Moriafly/SaltVideo/6c7295b22070ef010fef0308dbf88078bf038821/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Moriafly/SaltVideo/6c7295b22070ef010fef0308dbf88078bf038821/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Moriafly/SaltVideo/6c7295b22070ef010fef0308dbf88078bf038821/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Moriafly/SaltVideo/6c7295b22070ef010fef0308dbf88078bf038821/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Moriafly/SaltVideo/6c7295b22070ef010fef0308dbf88078bf038821/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/app/src/main/res/values-night/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #191919
4 | #FFFFFF
5 | #80FFFFFF
6 | #40FFFFFF
7 |
--------------------------------------------------------------------------------
/app/src/main/res/values-v27/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
13 |
--------------------------------------------------------------------------------
/app/src/main/res/values-v29/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
16 |
--------------------------------------------------------------------------------
/app/src/main/res/values-zh/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 椒盐视频
4 | 本地
5 | 云端
6 | 视频
7 | 我的
8 | 错误
9 | 确认
10 | 取消
11 | 文件列表不显示隐藏文件夹
12 | 关于
13 |
--------------------------------------------------------------------------------
/app/src/main/res/values/attrs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFBB86FC
4 | #FF6200EE
5 | #FF3700B3
6 | #FF03DAC5
7 | #FF018786
8 | #FF000000
9 | #FFFFFFFF
10 |
11 | #FFFFFF
12 | #000000
13 | #80000000
14 | #40000000
15 |
--------------------------------------------------------------------------------
/app/src/main/res/values/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #0470E6
4 |
--------------------------------------------------------------------------------
/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Salt Video
4 | Local
5 | Cloud
6 | Video
7 | My
8 | Error
9 | Confirm
10 | Cancel
11 | File list show hidden folders
12 | 关于
13 |
--------------------------------------------------------------------------------
/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
18 |
19 |
25 |
26 |
--------------------------------------------------------------------------------
/app/src/main/res/xml/backup_rules.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
13 |
--------------------------------------------------------------------------------
/app/src/main/res/xml/data_extraction_rules.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
12 |
13 |
19 |
--------------------------------------------------------------------------------
/app/src/test/java/com/salt/video/ExampleUnitTest.kt:
--------------------------------------------------------------------------------
1 | package com.salt.video
2 |
3 | import org.junit.Test
4 |
5 | import org.junit.Assert.*
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * See [testing documentation](http://d.android.com/tools/testing).
11 | */
12 | class ExampleUnitTest {
13 | @Test
14 | fun addition_isCorrect() {
15 | assertEquals(4, 2 + 2)
16 | }
17 | }
--------------------------------------------------------------------------------
/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 | plugins {
3 | id 'com.android.application' version '8.2.0-alpha09' apply false
4 | id 'com.android.library' version '8.2.0-alpha09' apply false
5 | id 'org.jetbrains.kotlin.android' version '1.8.20' apply false
6 | }
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 | # IDE (e.g. Android Studio) users:
3 | # Gradle settings configured through the IDE *will override*
4 | # any settings specified in this file.
5 | # For more details on how to configure your build environment visit
6 | # http://www.gradle.org/docs/current/userguide/build_environment.html
7 | # Specifies the JVM arguments used for the daemon process.
8 | # The setting is particularly useful for tweaking memory settings.
9 | org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
10 | # When configured, Gradle will run in incubating parallel mode.
11 | # This option should only be used with decoupled projects. More details, visit
12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13 | # org.gradle.parallel=true
14 | # AndroidX package structure to make it clearer which packages are bundled with the
15 | # Android operating system, and which are packaged with your app's APK
16 | # https://developer.android.com/topic/libraries/support-library/androidx-rn
17 | android.useAndroidX=true
18 | # Kotlin code style for this project: "official" or "obsolete":
19 | kotlin.code.style=official
20 | # Enables namespacing of each library's R class so that its R class includes only the
21 | # resources declared in the library itself and none from the library's dependencies,
22 | # thereby reducing the size of the R class for that library
23 | android.nonTransitiveRClass=true
24 | android.nonFinalResIds=false
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Moriafly/SaltVideo/6c7295b22070ef010fef0308dbf88078bf038821/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Sun Dec 18 20:02:15 CST 2022
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-bin.zip
5 | zipStoreBase=GRADLE_USER_HOME
6 | zipStorePath=wrapper/dists
7 |
--------------------------------------------------------------------------------
/gradlew.bat:
--------------------------------------------------------------------------------
1 | @rem
2 | @rem Copyright 2015 the original author or authors.
3 | @rem
4 | @rem Licensed under the Apache License, Version 2.0 (the "License");
5 | @rem you may not use this file except in compliance with the License.
6 | @rem You may obtain a copy of the License at
7 | @rem
8 | @rem https://www.apache.org/licenses/LICENSE-2.0
9 | @rem
10 | @rem Unless required by applicable law or agreed to in writing, software
11 | @rem distributed under the License is distributed on an "AS IS" BASIS,
12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @rem See the License for the specific language governing permissions and
14 | @rem limitations under the License.
15 | @rem
16 |
17 | @if "%DEBUG%" == "" @echo off
18 | @rem ##########################################################################
19 | @rem
20 | @rem Gradle startup script for Windows
21 | @rem
22 | @rem ##########################################################################
23 |
24 | @rem Set local scope for the variables with windows NT shell
25 | if "%OS%"=="Windows_NT" setlocal
26 |
27 | set DIRNAME=%~dp0
28 | if "%DIRNAME%" == "" set DIRNAME=.
29 | set APP_BASE_NAME=%~n0
30 | set APP_HOME=%DIRNAME%
31 |
32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter.
33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34 |
35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
37 |
38 | @rem Find java.exe
39 | if defined JAVA_HOME goto findJavaFromJavaHome
40 |
41 | set JAVA_EXE=java.exe
42 | %JAVA_EXE% -version >NUL 2>&1
43 | if "%ERRORLEVEL%" == "0" goto execute
44 |
45 | echo.
46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
47 | echo.
48 | echo Please set the JAVA_HOME variable in your environment to match the
49 | echo location of your Java installation.
50 |
51 | goto fail
52 |
53 | :findJavaFromJavaHome
54 | set JAVA_HOME=%JAVA_HOME:"=%
55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
56 |
57 | if exist "%JAVA_EXE%" goto execute
58 |
59 | echo.
60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
61 | echo.
62 | echo Please set the JAVA_HOME variable in your environment to match the
63 | echo location of your Java installation.
64 |
65 | goto fail
66 |
67 | :execute
68 | @rem Setup the command line
69 |
70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
71 |
72 |
73 | @rem Execute Gradle
74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
75 |
76 | :end
77 | @rem End local scope for the variables with windows NT shell
78 | if "%ERRORLEVEL%"=="0" goto mainEnd
79 |
80 | :fail
81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
82 | rem the _cmd.exe /c_ return code!
83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84 | exit /b 1
85 |
86 | :mainEnd
87 | if "%OS%"=="Windows_NT" endlocal
88 |
89 | :omega
90 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | maven { url 'https://jitpack.io' }
6 | gradlePluginPortal()
7 | }
8 | }
9 | dependencyResolutionManagement {
10 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
11 | repositories {
12 | google()
13 | mavenCentral()
14 | maven { url 'https://jitpack.io' }
15 | }
16 | }
17 | rootProject.name = "SaltVideo"
18 | include ':app'
19 |
--------------------------------------------------------------------------------