) {
42 | setOnClickListener { relay.accept(Unit) }
43 | }
44 |
45 | fun EditText.changes(handler: (String) -> Unit) {
46 | addTextChangedListener(object : TextWatcher {
47 | override fun afterTextChanged(s: Editable) {}
48 |
49 | override fun beforeTextChanged(s: CharSequence, start: Int, count: Int, after: Int) {}
50 |
51 | override fun onTextChanged(s: CharSequence, start: Int, before: Int, count: Int) {
52 | handler.invoke(s.toString())
53 | }
54 | })
55 | }
56 |
57 | fun View.showWithAlphaAnimation(
58 | duration: Long = ANIMATION_DURATION,
59 | animateFully: Boolean = true,
60 | endCallback: (() -> Unit)? = null
61 | ): ViewPropertyAnimator {
62 | if (animateFully) {
63 | alpha = 0.0f
64 | }
65 | show()
66 | return animate()
67 | .setDuration(duration)
68 | .alpha(1.0f)
69 | .setInterpolator(AccelerateDecelerateInterpolator())
70 | .setListener(object : AnimatorListenerAdapter() {
71 | override fun onAnimationEnd(animation: Animator) {
72 | alpha = 1.0f
73 | show()
74 | endCallback?.invoke()
75 | }
76 | })
77 | }
78 |
79 | fun View.hideWithAlphaAnimation(
80 | duration: Long = ANIMATION_DURATION,
81 | animateFully: Boolean = true,
82 | endCallback: (() -> Unit)? = null
83 | ): ViewPropertyAnimator {
84 | if (animateFully) {
85 | alpha = 1.0f
86 | }
87 | return animate()
88 | .setDuration(duration)
89 | .alpha(0.0f)
90 | .setInterpolator(AccelerateDecelerateInterpolator())
91 | .setListener(object : AnimatorListenerAdapter() {
92 | override fun onAnimationEnd(animation: Animator) {
93 | hide()
94 | alpha = 1.0f
95 | endCallback?.invoke()
96 | }
97 | })
98 | }
99 |
100 | const val ANIMATION_DURATION: Long = 250
101 |
--------------------------------------------------------------------------------
/app/src/main/java/com/tomclaw/appsend_rb/util/ZipParcelable.kt:
--------------------------------------------------------------------------------
1 | package com.tomclaw.appsend_rb.util
2 |
3 | import android.os.Parcel
4 | import android.os.Parcelable
5 | import com.tomclaw.appsend_rb.util.Parcels.readBool
6 | import com.tomclaw.appsend_rb.util.Parcels.writeBool
7 |
8 | class ZipParcelable : Parcelable {
9 |
10 | private var raw: ByteArray? = null
11 | private var zip: Boolean? = null
12 | private var nested: Parcelable? = null
13 |
14 | constructor(nested: Parcelable?) {
15 | this.nested = nested
16 | }
17 |
18 | private constructor(raw: ByteArray, zip: Boolean) {
19 | this.raw = raw
20 | this.zip = zip
21 | }
22 |
23 | private fun writeNestedParcel(nested: Parcelable, parcel: Parcel, flags: Int) {
24 | parcel.writeParcelable(nested, flags)
25 | }
26 |
27 | private fun readNestedParcel(clazz: Class
, parcel: Parcel): Parcelable? {
28 | @Suppress("DEPRECATION")
29 | return parcel.readParcelable(clazz.classLoader)
30 | }
31 |
32 | inline fun restore() = restore(T::class.java) as? T
33 |
34 | fun restore(clazz: Class
): Parcelable? {
35 | if (nested != null) return nested as Parcelable
36 |
37 | val data = raw?.takeIf { it.isNotEmpty() } ?: return null
38 |
39 | val array = when (zip ?: false) {
40 | true -> try {
41 | data.unzip()
42 | } catch (throwable: Throwable) {
43 | return null
44 | }
45 |
46 | else -> data
47 | }
48 | return readNestedParcel(clazz, array.unmarshallToParcel())
49 | }
50 |
51 | override fun writeToParcel(out: Parcel, flags: Int) = with(out) {
52 | when (val nested = nested) {
53 | null -> writeBool(false)
54 | else -> {
55 | writeBool(value = true)
56 | val originalArray = parcelableToByteArray { writeNestedParcel(nested, it, flags) }
57 | try {
58 | val zip = originalArray.zip()
59 | writeBool(value = true)
60 | writeByteArrayWithSize(zip)
61 | } catch (throwable: Throwable) {
62 | writeBool(value = false)
63 | writeByteArrayWithSize(originalArray)
64 | }
65 | }
66 | }
67 | }
68 |
69 | private fun Parcel.writeByteArrayWithSize(array: ByteArray) {
70 | writeInt(array.size)
71 | writeByteArray(array)
72 | }
73 |
74 | override fun describeContents() = 0
75 |
76 | companion object {
77 |
78 | @JvmField
79 | val CREATOR = Parcels.creator {
80 | create(this) { raw, zip ->
81 | ZipParcelable(raw, zip)
82 | }
83 | }
84 |
85 | @JvmStatic
86 | fun create(
87 | parcel: Parcel,
88 | creator: (ByteArray, Boolean) -> ZipParcelable
89 | ): ZipParcelable = with(parcel) {
90 | var zip = false
91 | val data = when (readBool()) {
92 | true -> {
93 | zip = readBool()
94 | val size = readInt()
95 | ByteArray(size).apply {
96 | readByteArray(this)
97 | }
98 | }
99 |
100 | else -> ByteArray(size = 0)
101 | }
102 | return creator(data, zip)
103 | }
104 | }
105 | }
106 |
107 | fun parcelableToByteArray(writer: (Parcel) -> Unit): ByteArray {
108 | val parcel = Parcel.obtain()
109 | writer(parcel)
110 | val bytes = parcel.marshall()
111 | parcel.recycle()
112 | return bytes
113 | }
114 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable-nodpi/app_placeholder.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/solkin/appsend-android/23b283bf86062537879addbb7cdc3acfbd9d14ac/app/src/main/res/drawable-nodpi/app_placeholder.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxhdpi/ic_logo_ab.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/solkin/appsend-android/23b283bf86062537879addbb7cdc3acfbd9d14ac/app/src/main/res/drawable-xxhdpi/ic_logo_ab.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-xxxhdpi/ic_logo_ab.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/solkin/appsend-android/23b283bf86062537879addbb7cdc3acfbd9d14ac/app/src/main/res/drawable-xxxhdpi/ic_logo_ab.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/delete.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/floppy.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/google_play.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
6 |
8 |
14 |
20 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/lock_open.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/magnify.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/refresh.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/run.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/settings_box.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/share.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/about_activity.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
11 |
12 |
13 |
14 |
20 |
21 |
26 |
27 |
34 |
35 |
41 |
42 |
49 |
50 |
51 |
52 |
57 |
58 |
67 |
68 |
77 |
78 |
79 |
80 |
81 |
82 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/app_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
33 |
34 |
40 |
41 |
47 |
48 |
58 |
59 |
63 |
64 |
73 |
74 |
85 |
86 |
87 |
88 |
92 |
93 |
106 |
107 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/apps_activity.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
12 |
13 |
19 |
20 |
21 |
22 |
27 |
28 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/permission_safe.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
20 |
21 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/permission_unsafe.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
20 |
21 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/permissions_activity.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
18 |
19 |
23 |
24 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/progress_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
15 |
16 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/settings_activity.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
10 |
15 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/toolbar.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
15 |
16 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/main_menu.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/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.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/solkin/appsend-android/23b283bf86062537879addbb7cdc3acfbd9d14ac/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/solkin/appsend-android/23b283bf86062537879addbb7cdc3acfbd9d14ac/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/solkin/appsend-android/23b283bf86062537879addbb7cdc3acfbd9d14ac/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/solkin/appsend-android/23b283bf86062537879addbb7cdc3acfbd9d14ac/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/solkin/appsend-android/23b283bf86062537879addbb7cdc3acfbd9d14ac/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/solkin/appsend-android/23b283bf86062537879addbb7cdc3acfbd9d14ac/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/solkin/appsend-android/23b283bf86062537879addbb7cdc3acfbd9d14ac/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/solkin/appsend-android/23b283bf86062537879addbb7cdc3acfbd9d14ac/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/values-ru/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | AppSend
4 | %d Б
5 | %.1f КБ
6 | %.1f МБ
7 | %.1f ГБ
8 | Пожалуйста, подождите…
9 | Успешно извлечено в директорию <b>Downloads</b>
10 | Не удалось извлечь приложение :(
11 | Обновить
12 | TomClaw Software
13 | Версия %1$s (%2$d)
14 | Информация
15 | Оценить приложение
16 | Все приложения автора
17 | Основные настройки
18 | Показывать системные приложения в общем списке
19 | Показывать только исполнимые приложения
20 | Системные приложения
21 | Исполнимые пакеты
22 | Понятно
23 | Внимание!
24 | Системные приложения хранятся в несколько ином виде и их экспорт и последующая работоспособность не гарантированы!
25 | Настройки
26 | Поделиться через
27 | Тип сортировки
28 | А - Я
29 | Я - А
30 | По размеру
31 | Времени установки
32 | Времени обновления
33 | Варианты сортировки списка приложений
34 | Извлечь apk в Downloads
35 | Поделиться приложением
36 | Найти в Google Play
37 | Очистить кеш
38 | Удалить все ранее извлечённые в папку Downloads APK файлы
39 | Кеш успешно очищен
40 | Ошибка очистки кеша
41 | Чтобы сохранить извлечённый файл приложения, необходимо разрешить запись на диск
42 | Поиск
43 | Запустить приложение
44 | Этот пакет нельзя запустить.
45 | Показать детали
46 | Помощь проекту
47 | Угостите разработчика!
48 | И он продолжит радовать обновлениями :)
49 | Подарить шоколадку
50 | Произошёл сбой. Попробуйте ещё раз, пожалуйста.
51 | Спасибо за поддержку!
52 | Тёмная тема
53 | Тёмные цвета в оформлении приложения
54 | Удалить
55 | Неизвестное разрешение
56 | Требуемые разрешения
57 | Не удалось получить список требуемых разрешений приложения
58 | Приложение не требует специальных разрешений.
59 |
60 |
--------------------------------------------------------------------------------
/app/src/main/res/values/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | - @string/sort_order_ascending
5 | - @string/sort_order_descending
6 | - @string/sort_order_app_size
7 | - @string/sort_order_install_time
8 | - @string/sort_order_update_time
9 |
10 |
11 |
12 | - @string/sort_order_ascending_value
13 | - @string/sort_order_descending_value
14 | - @string/sort_order_app_size_value
15 | - @string/sort_order_install_time_value
16 | - @string/sort_order_update_time_value
17 |
18 |
19 | sort_order_ascending
20 | sort_order_descending
21 | sort_order_app_size
22 | sort_order_install_time
23 | sort_order_update_time
24 |
25 |
--------------------------------------------------------------------------------
/app/src/main/res/values/attr.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/app/src/main/res/values/defaults.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | false
4 | false
5 | false
6 | @string/sort_order_ascending_value
7 | true
8 | 0
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/values/dimen.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 2dp
4 |
--------------------------------------------------------------------------------
/app/src/main/res/values/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #334A5E
4 |
--------------------------------------------------------------------------------
/app/src/main/res/values/pref_keys.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | pref_base_settings
4 | pref_dark_theme
5 | pref_show_system
6 | pref_runnable
7 | pref_sort_order
8 | pref_clear_cache
9 |
10 | pref_responsibility_denial
11 | pref_count_time
12 |
--------------------------------------------------------------------------------
/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | AppSend
4 | %d B
5 | %.1f KB
6 | %.1f MB
7 | %.1f GB
8 | Please, wait…
9 | Successfully extracted to <b>Downloads</b> directory
10 | Exporting failed :(
11 | Refresh
12 | TomClaw Software
13 | Version %1$s (%2$d)
14 | Info
15 | Rate this application
16 | Author\'s applications
17 | Base settings
18 | Show system applications in list
19 | Show runnable packages only
20 | System apps
21 | Runnable packages
22 | Got it!
23 | Warning!
24 | System apps are not usual apps and there is no warranty of its
25 | successful export!
26 |
27 | Settings
28 | Share with
29 | Sort order
30 | A - Z
31 | Z - A
32 | By app size
33 | By install time
34 | By update time
35 | Apps list sort order variants
36 | Extract apk into Downloads
37 | Share apk via apps
38 | Find in Google Play
39 | Clear cache
40 | Remove all previously extracted APK files in Downloads directory
41 | Cache cleared successfully
42 | Cache clearing failed
43 | In order to save application file you will need to grant storage permission
44 | Search
45 | Run application
46 | This package is not runnable.
47 | Show details
48 | Dark theme
49 | Dark colors in application appearance
50 | Remove
51 | Unknown permission
52 | Required permissions
53 | Unable to get list or app\'s required permissions
54 | App does not have requested permissions.
55 |
56 |
--------------------------------------------------------------------------------
/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | #5d886e
5 | #1e6942
6 | #185536
7 |
8 | #f79406
9 |
10 | #FF020404
11 | #FF0b1415
12 | #FFFFFFFF
13 |
14 | #def1e8
15 | #0C1D15
16 |
17 | #EF6C00
18 | #a34900
19 |
20 | #dadada
21 | #424242
22 |
23 | #c40e72
24 |
25 | #6a6a6a
26 | #E1E1E1
27 |
28 | #baffffff
29 |
30 |
61 |
62 |
94 |
95 |
98 |
99 |
102 |
103 |
104 |
105 |
106 |
107 |
110 |
111 |
114 |
115 |
119 |
120 |
121 |
--------------------------------------------------------------------------------
/app/src/main/res/values/values.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/app/src/main/res/xml/appcenter_backup_rule.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
9 |
12 |
16 |
20 |
21 |
--------------------------------------------------------------------------------
/app/src/main/res/xml/preferences.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
12 |
17 |
22 |
29 |
33 |
34 |
--------------------------------------------------------------------------------
/app/src/main/res/xml/provider_paths.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 | buildscript {
3 | ext.kotlin_version = '1.8.21'
4 | repositories {
5 | mavenCentral()
6 | maven { url "https://jitpack.io" }
7 | maven {
8 | url 'https://maven.google.com/'
9 | name 'Google'
10 | }
11 | google()
12 | }
13 | dependencies {
14 | classpath 'com.android.tools.build:gradle:8.7.0'
15 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
16 | }
17 | }
18 |
19 | allprojects {
20 | repositories {
21 | mavenCentral()
22 | maven { url "https://jitpack.io" }
23 | google()
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | android.defaults.buildfeatures.buildconfig=true
2 | android.enableJetifier=true
3 | android.nonFinalResIds=false
4 | android.nonTransitiveRClass=false
5 | android.useAndroidX=true
6 | org.gradle.jvmargs=-Xmx5120M
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/solkin/appsend-android/23b283bf86062537879addbb7cdc3acfbd9d14ac/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 |
--------------------------------------------------------------------------------
/gradlew:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | #
4 | # Copyright © 2015-2021 the original authors.
5 | #
6 | # Licensed under the Apache License, Version 2.0 (the "License");
7 | # you may not use this file except in compliance with the License.
8 | # You may obtain a copy of the License at
9 | #
10 | # https://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 | #
18 |
19 | ##############################################################################
20 | #
21 | # Gradle start up script for POSIX generated by Gradle.
22 | #
23 | # Important for running:
24 | #
25 | # (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
26 | # noncompliant, but you have some other compliant shell such as ksh or
27 | # bash, then to run this script, type that shell name before the whole
28 | # command line, like:
29 | #
30 | # ksh Gradle
31 | #
32 | # Busybox and similar reduced shells will NOT work, because this script
33 | # requires all of these POSIX shell features:
34 | # * functions;
35 | # * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
36 | # «${var#prefix}», «${var%suffix}», and «$( cmd )»;
37 | # * compound commands having a testable exit status, especially «case»;
38 | # * various built-in commands including «command», «set», and «ulimit».
39 | #
40 | # Important for patching:
41 | #
42 | # (2) This script targets any POSIX shell, so it avoids extensions provided
43 | # by Bash, Ksh, etc; in particular arrays are avoided.
44 | #
45 | # The "traditional" practice of packing multiple parameters into a
46 | # space-separated string is a well documented source of bugs and security
47 | # problems, so this is (mostly) avoided, by progressively accumulating
48 | # options in "$@", and eventually passing that to Java.
49 | #
50 | # Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
51 | # and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
52 | # see the in-line comments for details.
53 | #
54 | # There are tweaks for specific operating systems such as AIX, CygWin,
55 | # Darwin, MinGW, and NonStop.
56 | #
57 | # (3) This script is generated from the Groovy template
58 | # https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
59 | # within the Gradle project.
60 | #
61 | # You can find Gradle at https://github.com/gradle/gradle/.
62 | #
63 | ##############################################################################
64 |
65 | # Attempt to set APP_HOME
66 |
67 | # Resolve links: $0 may be a link
68 | app_path=$0
69 |
70 | # Need this for daisy-chained symlinks.
71 | while
72 | APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
73 | [ -h "$app_path" ]
74 | do
75 | ls=$( ls -ld "$app_path" )
76 | link=${ls#*' -> '}
77 | case $link in #(
78 | /*) app_path=$link ;; #(
79 | *) app_path=$APP_HOME$link ;;
80 | esac
81 | done
82 |
83 | APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
84 |
85 | APP_NAME="Gradle"
86 | APP_BASE_NAME=${0##*/}
87 |
88 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
89 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
90 |
91 | # Use the maximum available, or set MAX_FD != -1 to use that value.
92 | MAX_FD=maximum
93 |
94 | warn () {
95 | echo "$*"
96 | } >&2
97 |
98 | die () {
99 | echo
100 | echo "$*"
101 | echo
102 | exit 1
103 | } >&2
104 |
105 | # OS specific support (must be 'true' or 'false').
106 | cygwin=false
107 | msys=false
108 | darwin=false
109 | nonstop=false
110 | case "$( uname )" in #(
111 | CYGWIN* ) cygwin=true ;; #(
112 | Darwin* ) darwin=true ;; #(
113 | MSYS* | MINGW* ) msys=true ;; #(
114 | NONSTOP* ) nonstop=true ;;
115 | esac
116 |
117 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
118 |
119 |
120 | # Determine the Java command to use to start the JVM.
121 | if [ -n "$JAVA_HOME" ] ; then
122 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
123 | # IBM's JDK on AIX uses strange locations for the executables
124 | JAVACMD=$JAVA_HOME/jre/sh/java
125 | else
126 | JAVACMD=$JAVA_HOME/bin/java
127 | fi
128 | if [ ! -x "$JAVACMD" ] ; then
129 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
130 |
131 | Please set the JAVA_HOME variable in your environment to match the
132 | location of your Java installation."
133 | fi
134 | else
135 | JAVACMD=java
136 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
137 |
138 | Please set the JAVA_HOME variable in your environment to match the
139 | location of your Java installation."
140 | fi
141 |
142 | # Increase the maximum file descriptors if we can.
143 | if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144 | case $MAX_FD in #(
145 | max*)
146 | MAX_FD=$( ulimit -H -n ) ||
147 | warn "Could not query maximum file descriptor limit"
148 | esac
149 | case $MAX_FD in #(
150 | '' | soft) :;; #(
151 | *)
152 | ulimit -n "$MAX_FD" ||
153 | warn "Could not set maximum file descriptor limit to $MAX_FD"
154 | esac
155 | fi
156 |
157 | # Collect all arguments for the java command, stacking in reverse order:
158 | # * args from the command line
159 | # * the main class name
160 | # * -classpath
161 | # * -D...appname settings
162 | # * --module-path (only if needed)
163 | # * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
164 |
165 | # For Cygwin or MSYS, switch paths to Windows format before running java
166 | if "$cygwin" || "$msys" ; then
167 | APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
168 | CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
169 |
170 | JAVACMD=$( cygpath --unix "$JAVACMD" )
171 |
172 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
173 | for arg do
174 | if
175 | case $arg in #(
176 | -*) false ;; # don't mess with options #(
177 | /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
178 | [ -e "$t" ] ;; #(
179 | *) false ;;
180 | esac
181 | then
182 | arg=$( cygpath --path --ignore --mixed "$arg" )
183 | fi
184 | # Roll the args list around exactly as many times as the number of
185 | # args, so each arg winds up back in the position where it started, but
186 | # possibly modified.
187 | #
188 | # NB: a `for` loop captures its iteration list before it begins, so
189 | # changing the positional parameters here affects neither the number of
190 | # iterations, nor the values presented in `arg`.
191 | shift # remove old arg
192 | set -- "$@" "$arg" # push replacement arg
193 | done
194 | fi
195 |
196 | # Collect all arguments for the java command;
197 | # * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
198 | # shell script including quotes and variable substitutions, so put them in
199 | # double quotes to make sure that they get re-expanded; and
200 | # * put everything else in single quotes, so that it's not re-expanded.
201 |
202 | set -- \
203 | "-Dorg.gradle.appname=$APP_BASE_NAME" \
204 | -classpath "$CLASSPATH" \
205 | org.gradle.wrapper.GradleWrapperMain \
206 | "$@"
207 |
208 | # Use "xargs" to parse quoted args.
209 | #
210 | # With -n1 it outputs one arg per line, with the quotes and backslashes removed.
211 | #
212 | # In Bash we could simply go:
213 | #
214 | # readarray ARGS < <( xargs -n1 <<<"$var" ) &&
215 | # set -- "${ARGS[@]}" "$@"
216 | #
217 | # but POSIX shell has neither arrays nor command substitution, so instead we
218 | # post-process each arg (as a line of input to sed) to backslash-escape any
219 | # character that might be a shell metacharacter, then use eval to reverse
220 | # that process (while maintaining the separation between arguments), and wrap
221 | # the whole thing up as a single "set" statement.
222 | #
223 | # This will of course break if any of these variables contains a newline or
224 | # an unmatched quote.
225 | #
226 |
227 | eval "set -- $(
228 | printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
229 | xargs -n1 |
230 | sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
231 | tr '\n' ' '
232 | )" '"$@"'
233 |
234 | exec "$JAVACMD" "$@"
235 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/graphics/App Shortcut icons.sketch:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/solkin/appsend-android/23b283bf86062537879addbb7cdc3acfbd9d14ac/graphics/App Shortcut icons.sketch
--------------------------------------------------------------------------------
/graphics/AppSend.sketch:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/solkin/appsend-android/23b283bf86062537879addbb7cdc3acfbd9d14ac/graphics/AppSend.sketch
--------------------------------------------------------------------------------
/graphics/Appteka Colored.sketch:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/solkin/appsend-android/23b283bf86062537879addbb7cdc3acfbd9d14ac/graphics/Appteka Colored.sketch
--------------------------------------------------------------------------------
/graphics/Appteka.sketch:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/solkin/appsend-android/23b283bf86062537879addbb7cdc3acfbd9d14ac/graphics/Appteka.sketch
--------------------------------------------------------------------------------
/graphics/web_hi_res_512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/solkin/appsend-android/23b283bf86062537879addbb7cdc3acfbd9d14ac/graphics/web_hi_res_512.png
--------------------------------------------------------------------------------
/preference-fragment/README.md:
--------------------------------------------------------------------------------
1 | Support PreferenceFragment
2 | =====================================
3 |
4 | Unofficial PreferenceFragment compatibility layer for Android 1.6 and up.
5 |
6 | ###About the status of the library
7 | This project is not abandoned, i just haven't had time to spare for it; I accept pull-requests and all the good Github open-source stuff though.
8 |
9 | It is in my plans to actually give it the holo love it deserves [soon](http://www.wowwiki.com/Soon) (tm).
10 |
11 | How to reference this library?
12 | ====================================
13 |
14 | Make sure you have maven central listed as a repository on your build.gradle like this:
15 |
16 | ```groovy
17 | repositories {
18 | mavenCentral()
19 | }
20 | ```
21 |
22 | Add the dependency to your build.gradle file like this:
23 |
24 | ```groovy
25 | compile 'com.github.machinarius:preferencefragment:0.1.1'
26 | ```
27 | The fix has been deployed, no more @aar suffix
28 |
29 | How to use it?
30 | ===================================
31 |
32 | Just extend PreferenceFragment and follow the Settings developer guide like if this layer wasn't even there to begin with.
33 |
34 | http://developer.android.com/guide/topics/ui/settings.html
35 |
36 | Roadmap
37 | ==================================
38 | - Bump the presentation of the settings on Gingerbread and lower with some Holo love
39 | - Include a handful of useful extra preferences
40 |
--------------------------------------------------------------------------------
/preference-fragment/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.library'
2 | apply plugin: 'kotlin-android'
3 |
4 | android {
5 | compileSdk 34
6 |
7 | defaultConfig {
8 | minSdkVersion 16
9 | targetSdkVersion 33
10 | }
11 |
12 | dependencies {
13 | implementation 'androidx.appcompat:appcompat:1.6.1'
14 | }
15 | namespace 'com.github.machinarius.preferencefragment'
16 | }
17 | dependencies {
18 | implementation "androidx.core:core-ktx:1.12.0"
19 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
20 | }
21 | repositories {
22 | mavenCentral()
23 | }
24 |
--------------------------------------------------------------------------------
/preference-fragment/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/preference-fragment/src/main/res/layout/preference_list_fragment.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
25 |
26 |
39 |
40 |
46 |
47 |
52 |
53 |
60 |
65 |
66 |
73 |
74 |
80 |
81 |
82 |
--------------------------------------------------------------------------------
/preference-fragment/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 | 0dp
24 |
25 | 0dp
26 |
27 | 0x02000000
28 |
29 |
30 |
--------------------------------------------------------------------------------
/preference-fragment/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 | Back
24 | Next
25 |
26 |
27 | Skip
28 |
29 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app', ":preference-fragment", ":statusbar-util"
2 |
--------------------------------------------------------------------------------
/statusbar-util/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/statusbar-util/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.library'
2 |
3 | version = "1.5.1"
4 |
5 | android {
6 | compileSdk 34
7 |
8 | resourcePrefix "statusbarutil_"
9 |
10 | defaultConfig {
11 | minSdkVersion 14
12 | targetSdkVersion 33
13 | }
14 | buildTypes {
15 | release {
16 | minifyEnabled false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18 | }
19 | }
20 | namespace 'com.jaeger.library'
21 | }
22 |
23 | dependencies {
24 | implementation 'androidx.annotation:annotation:1.7.0'
25 | implementation 'androidx.coordinatorlayout:coordinatorlayout:1.2.0'
26 | implementation 'com.google.android.material:material:1.10.0'
27 | }
28 |
--------------------------------------------------------------------------------
/statusbar-util/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /Users/Jaeger/Develop/android/sdk/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
--------------------------------------------------------------------------------
/statusbar-util/src/androidTest/java/com/example/library/ApplicationTest.java:
--------------------------------------------------------------------------------
1 | package com.example.library;
2 |
3 | import android.app.Application;
4 | import android.test.ApplicationTestCase;
5 |
6 | /**
7 | * Testing Fundamentals
8 | */
9 | public class ApplicationTest extends ApplicationTestCase {
10 | public ApplicationTest() {
11 | super(Application.class);
12 | }
13 | }
--------------------------------------------------------------------------------
/statusbar-util/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/statusbar-util/src/main/res/values/ids.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/statusbar-util/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/tomclaw.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/solkin/appsend-android/23b283bf86062537879addbb7cdc3acfbd9d14ac/tomclaw.keystore
--------------------------------------------------------------------------------