mirror of
https://github.com/adolfintel/OpenPods.git
synced 2026-09-14 23:06:11 -04:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9cd800875f | ||
|
|
f693b9a5c5 | ||
|
|
5ab3b13350 | ||
|
|
8c462cc32c | ||
|
|
695dea99bd | ||
|
|
e0110d9264 | ||
|
|
7c21e2d464 | ||
|
|
50e6833c8d |
@@ -48,6 +48,7 @@
|
||||
* Apple AirPods 3rd gen
|
||||
* Apple AirPods Pro
|
||||
* Apple AirPods Pro 2
|
||||
* Apple AirPods Pro 3
|
||||
* Apple AirPods Max
|
||||
* Beats X
|
||||
* Beats Flex
|
||||
|
||||
+6
-6
@@ -4,14 +4,14 @@ plugins {
|
||||
|
||||
android {
|
||||
namespace 'com.dosse.airpods'
|
||||
compileSdk 34
|
||||
compileSdk = 36
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.dosse.airpods"
|
||||
minSdk 26
|
||||
targetSdk 34
|
||||
versionCode 23
|
||||
versionName '1.10'
|
||||
targetSdk 36
|
||||
versionCode 24
|
||||
versionName '1.11'
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
@@ -25,8 +25,8 @@ android {
|
||||
buildConfig true
|
||||
}
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_11
|
||||
targetCompatibility JavaVersion.VERSION_11
|
||||
sourceCompatibility JavaVersion.VERSION_17
|
||||
targetCompatibility JavaVersion.VERSION_17
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ import com.dosse.airpods.pods.models.AirPods3;
|
||||
import com.dosse.airpods.pods.models.AirPodsMax;
|
||||
import com.dosse.airpods.pods.models.AirPodsPro;
|
||||
import com.dosse.airpods.pods.models.AirPodsPro2;
|
||||
import com.dosse.airpods.pods.models.AirPodsPro3;
|
||||
import com.dosse.airpods.pods.models.BeatsFlex;
|
||||
import com.dosse.airpods.pods.models.BeatsSolo3;
|
||||
import com.dosse.airpods.pods.models.BeatsStudio3;
|
||||
@@ -82,6 +83,8 @@ public class PodsStatus {
|
||||
mPods = new AirPodsPro(leftPod, rightPod, casePod); // Airpods Pro
|
||||
} else if ("1420".equals(idFull) || "2420".equals(idFull)) {
|
||||
mPods = new AirPodsPro2(leftPod, rightPod, casePod); // Airpods Pro 2
|
||||
} else if ("2720".equals(idFull)) {
|
||||
mPods = new AirPodsPro3(leftPod, rightPod, casePod); // Airpods Pro 3
|
||||
} else if ('A' == idSingle) {
|
||||
mPods = new AirPodsMax(singlePod); // Airpods Max
|
||||
} else if ('B' == idSingle) {
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.dosse.airpods.pods.models;
|
||||
|
||||
import com.dosse.airpods.R;
|
||||
import com.dosse.airpods.pods.Pod;
|
||||
|
||||
public class AirPodsPro3 extends AirPodsPro {
|
||||
public AirPodsPro3(Pod leftPod, Pod rightPod, Pod casePod) {
|
||||
super(leftPod, rightPod, casePod);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getLeftDrawable() {
|
||||
return getPod(LEFT).isConnected() ? R.drawable.podpro3 : R.drawable.podpro3_disconnected;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRightDrawable() {
|
||||
return getPod(RIGHT).isConnected() ? R.drawable.podpro3 : R.drawable.podpro3_disconnected;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getModel() {
|
||||
return Constants.MODEL_AIRPODS_PRO_3;
|
||||
}
|
||||
}
|
||||
@@ -6,6 +6,7 @@ public final class Constants {
|
||||
static final String MODEL_AIRPODS_GEN3 = "airpods3";
|
||||
static final String MODEL_AIRPODS_PRO = "airpodspro";
|
||||
static final String MODEL_AIRPODS_PRO_2 = "airpodspro2";
|
||||
static final String MODEL_AIRPODS_PRO_3 = "airpodspro3";
|
||||
static final String MODEL_AIRPODS_MAX = "airpodsmax";
|
||||
static final String MODEL_BEATS_X = "beatsx";
|
||||
static final String MODEL_BEATS_FLEX = "beatsflex";
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 85 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 84 KiB |
@@ -62,6 +62,16 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/airpodspro" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/airpodspro2" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/airpodspro3" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -94,11 +104,6 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/airpodsmax" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/airpodspro2" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@@ -60,6 +60,11 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/airpodspro2" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/airpodspro3" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
<string name="app_name" translatable="false">OpenPods</string>
|
||||
|
||||
<string name="bg_noti_channel" translatable="false">Background Notification</string>
|
||||
<string name="bg_noti_title" tools:ignore="MissingTranslation">Běží na pozadí</string>
|
||||
@@ -27,6 +26,7 @@
|
||||
<string name="airpods3" tools:ignore="MissingTranslation">• Apple AirPods 3rd gen</string>
|
||||
<string name="airpodspro">• Apple AirPods Pro</string>
|
||||
<string name="airpodspro2" tools:ignore="MissingTranslation">• Apple AirPods Pro 2</string>
|
||||
<string name="airpodspro3">• Apple AirPods Pro 3</string>
|
||||
<string name="airpodsmax">• Apple AirPods Max</string>
|
||||
<string name="beatsx">• Beats X</string>
|
||||
<string name="beatsflex">• Beats Flex</string>
|
||||
@@ -49,13 +49,7 @@
|
||||
|
||||
<string name="about">O developerovi</string>
|
||||
<string name="about_dev">Vytvořili společně Federico Dossena a Itai Levin</string>
|
||||
<string name="fdroid" translatable="false">F-Droid</string>
|
||||
<string name="website">webová stránka</string>
|
||||
<string name="github" tools:ignore="MissingTranslation">Github</string>
|
||||
<string name="donate">Darujte</string>
|
||||
|
||||
<string name="fdroid_url" translatable="false">https://f-droid.org/packages/com.dosse.airpods/</string>
|
||||
<string name="website_url" translatable="false">https://fdossena.com/?p=openPods/index.frag</string>
|
||||
<string name="github_url" translatable="false">https://github.com/adolfintel/OpenPods</string>
|
||||
<string name="donate_url" translatable="false">https://paypal.me/sineisochronic</string>
|
||||
</resources>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
<string name="app_name" translatable="false">OpenPods</string>
|
||||
|
||||
<string name="bg_noti_channel" translatable="false">Background Notification</string>
|
||||
<string name="bg_noti_title" tools:ignore="MissingTranslation">Läuft im Hintergrund</string>
|
||||
@@ -27,6 +26,7 @@
|
||||
<string name="airpods3" tools:ignore="MissingTranslation">• Apple AirPods 3</string>
|
||||
<string name="airpodspro">• Apple AirPods Pro</string>
|
||||
<string name="airpodspro2" tools:ignore="MissingTranslation">• Apple AirPods Pro 2</string>
|
||||
<string name="airpodspro3">• Apple AirPods Pro 3</string>
|
||||
<string name="airpodsmax">• Apple AirPods Max</string>
|
||||
<string name="beatsx">• Beats X</string>
|
||||
<string name="beatsflex">• Beats Flex</string>
|
||||
@@ -49,13 +49,7 @@
|
||||
|
||||
<string name="about">Über</string>
|
||||
<string name="about_dev">Entwickelt von Federico Dossena und Itai Levin</string>
|
||||
<string name="fdroid" translatable="false">F-Droid</string>
|
||||
<string name="website">Webseite</string>
|
||||
<string name="github" tools:ignore="MissingTranslation">Github</string>
|
||||
<string name="donate">Spenden</string>
|
||||
|
||||
<string name="fdroid_url" translatable="false">https://f-droid.org/packages/com.dosse.airpods/</string>
|
||||
<string name="website_url" translatable="false">https://fdossena.com/?p=openPods/index.frag</string>
|
||||
<string name="github_url" translatable="false">https://github.com/adolfintel/OpenPods</string>
|
||||
<string name="donate_url" translatable="false">https://paypal.me/sineisochronic</string>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
<string name="airpods1">• Apple AirPods 1ª generación</string>
|
||||
<string name="airpods2">• Apple AirPods 2ª generación</string>
|
||||
<string name="airpodspro">• Apple AirPods Pro</string>
|
||||
<string name="airpodspro3">• Apple AirPods Pro 3</string>
|
||||
<string name="airpodsmax">• Apple AirPods Max</string>
|
||||
<string name="beatsx">• Beats X</string>
|
||||
<string name="beatsflex">• Beats Flex</string>
|
||||
@@ -30,4 +31,5 @@
|
||||
<string name="about_dev">Desarrollado por Federico Dossena y Itai Levin</string>
|
||||
<string name="website">Página web</string>
|
||||
<string name="donate">Donar</string>
|
||||
<string name="airpodspro2">• Apple AirPods Pro 2</string>
|
||||
</resources>
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
<string name="airpods1">• Apple AirPods 1re génération</string>
|
||||
<string name="airpods2">• Apple AirPods 2e génération</string>
|
||||
<string name="airpodspro">• Apple AirPods Pro</string>
|
||||
<string name="airpodspro2">• Apple AirPods Pro 2</string>
|
||||
<string name="airpodspro3">• Apple AirPods Pro 3</string>
|
||||
<string name="airpodsmax">• Apple AirPods Max</string>
|
||||
<string name="beatsx">• Beats X</string>
|
||||
<string name="beatsflex">• Beats Flex</string>
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
<string name="airpods1">• Apple AirPods 1st gen</string>
|
||||
<string name="airpods2">• Apple AirPods 2nd gen</string>
|
||||
<string name="airpodspro">• Apple AirPods Pro</string>
|
||||
<string name="airpodspro2">• Apple AirPods Pro 2</string>
|
||||
<string name="airpodspro3">• Apple AirPods Pro 3</string>
|
||||
<string name="airpodsmax">• Apple AirPods Max</string>
|
||||
<string name="beatsx">• Beats X</string>
|
||||
<string name="beatsflex">• Beats Flex</string>
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
<string name="airpods3">• אפל איירפודס דור שלישי</string>
|
||||
<string name="airpodspro">• אפל איירפודס פרו</string>
|
||||
<string name="airpodspro2">• אפל איירפודס פרו 2</string>
|
||||
<string name="airpodspro3">• אפל איירפודס פרו 3</string>
|
||||
<string name="airpodsmax">• אפל איירפודס מקס</string>
|
||||
<string name="beatsx">• ביטס אקס</string>
|
||||
<string name="beatsflex">• ביטס פלקס</string>
|
||||
@@ -32,6 +33,5 @@
|
||||
<string name="about">אודות</string>
|
||||
<string name="about_dev">פותח על ידי פדריקו דוסנה ואיתי לוין</string>
|
||||
<string name="website">אתר המפתח</string>
|
||||
<string name="github">קוד מקור</string>
|
||||
<string name="donate">תרומה</string>
|
||||
</resources>
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
<string name="airpods1">• Apple AirPods 1e gen.</string>
|
||||
<string name="airpods2">• Apple AirPods 2e gen.</string>
|
||||
<string name="airpodspro">• Apple AirPods Pro</string>
|
||||
<string name="airpodspro2">• Apple AirPods Pro 2</string>
|
||||
<string name="airpodspro3">• Apple AirPods Pro 3</string>
|
||||
<string name="airpodsmax">• Apple AirPods Max</string>
|
||||
<string name="beatsx">• Beats X</string>
|
||||
<string name="beatsflex">• Beats Flex</string>
|
||||
@@ -43,6 +45,5 @@
|
||||
<string name="about">Over</string>
|
||||
<string name="about_dev">Gemaakt door Federico Dossena en Itai Levin</string>
|
||||
<string name="website">Website</string>
|
||||
<string name="github">GitHub</string>
|
||||
<string name="donate">Doneren</string>
|
||||
</resources>
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<string name="app_name" translatable="false">OpenPods</string>
|
||||
|
||||
<string name="bg_noti_channel" translatable="false">Фоновое уведомление</string>
|
||||
<string name="bg_noti_title" tools:ignore="MissingTranslation">Работает в фоновом режиме</string>
|
||||
<string name="bg_noti_text" tools:ignore="MissingTranslation">Нажмите, чтобы войти в настройки уведомлений</string>
|
||||
@@ -28,6 +26,7 @@
|
||||
<string name="airpods3" tools:ignore="MissingTranslation">• Apple AirPods 3rd gen</string>
|
||||
<string name="airpodspro">• Apple AirPods Pro</string>
|
||||
<string name="airpodspro2" tools:ignore="MissingTranslation">• Apple AirPods Pro 2</string>
|
||||
<string name="airpodspro3">• Apple AirPods Pro 3</string>
|
||||
<string name="airpodsmax">• Apple AirPods Max</string>
|
||||
<string name="beatsx">• Beats X</string>
|
||||
<string name="beatsflex">• Beats Flex</string>
|
||||
@@ -50,8 +49,6 @@
|
||||
|
||||
<string name="about">О приложении</string>
|
||||
<string name="about_dev">Разработано Federico Dossena и Itai Levin</string>
|
||||
<string name="fdroid" translatable="false">F-Droid</string>
|
||||
<string name="website">Сайт</string>
|
||||
<string name="github" tools:ignore="MissingTranslation">Github</string>
|
||||
<string name="donate">Поддержать</string>
|
||||
</resources>
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
<string name="airpods1">• Apple AirPods 1st gen</string>
|
||||
<string name="airpods2">• Apple AirPods 2nd gen</string>
|
||||
<string name="airpodspro">• Apple AirPods Pro</string>
|
||||
<string name="airpodspro3">• Apple AirPods Pro 3</string>
|
||||
<string name="airpodsmax">• Apple AirPods Max</string>
|
||||
<string name="beatsx">• Beats X</string>
|
||||
<string name="beatsflex">• Beats Flex</string>
|
||||
@@ -30,4 +31,5 @@
|
||||
<string name="about_dev">Розроблено Federico Dossena й Itai Levin</string>
|
||||
<string name="website">Сайт</string>
|
||||
<string name="donate">Підтримати</string>
|
||||
<string name="airpodspro2">• Apple AirPods Pro 2</string>
|
||||
</resources>
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
<string name="airpods1">• Apple AirPods 一代</string>
|
||||
<string name="airpods2">• Apple AirPods 二代</string>
|
||||
<string name="airpodspro">• Apple AirPods Pro</string>
|
||||
<string name="airpodspro3">• Apple AirPods Pro 3</string>
|
||||
<string name="airpodsmax">• Apple AirPods Max</string>
|
||||
<string name="beatsx">• Beats X</string>
|
||||
<string name="beatsflex">• Beats Flex</string>
|
||||
@@ -26,4 +27,5 @@
|
||||
<string name="about_dev">由 Federico Dossena 和 Itai Levin 开发</string>
|
||||
<string name="website">网站</string>
|
||||
<string name="donate">捐赠</string>
|
||||
<string name="airpodspro2">• Apple AirPods Pro 2</string>
|
||||
</resources>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
<string name="app_name" translatable="false">OpenPods</string>
|
||||
<resources>
|
||||
|
||||
<string name="bg_noti_channel" translatable="false">Background Notification</string>
|
||||
<string name="bg_noti_title">背景運作中</string>
|
||||
@@ -27,6 +26,7 @@
|
||||
<string name="airpods3">• Apple AirPods 第三代</string>
|
||||
<string name="airpodspro">• Apple AirPods Pro</string>
|
||||
<string name="airpodspro2">• Apple AirPods Pro 2</string>
|
||||
<string name="airpodspro3">• Apple AirPods Pro 3</string>
|
||||
<string name="airpodsmax">• Apple AirPods Max</string>
|
||||
<string name="beatsx">• Beats X</string>
|
||||
<string name="beatsflex">• Beats Flex</string>
|
||||
@@ -49,13 +49,7 @@
|
||||
|
||||
<string name="about">關於</string>
|
||||
<string name="about_dev">由 Federico Dossena 和 Itai Levin 開發</string>
|
||||
<string name="fdroid" translatable="false">F-Droid</string>
|
||||
<string name="website">網站</string>
|
||||
<string name="github">Github</string>
|
||||
<string name="donate">贊助</string>
|
||||
|
||||
<string name="fdroid_url" translatable="false">https://f-droid.org/packages/com.dosse.airpods/</string>
|
||||
<string name="website_url" translatable="false">https://fdossena.com/?p=openPods/index.frag</string>
|
||||
<string name="github_url" translatable="false">https://github.com/adolfintel/OpenPods</string>
|
||||
<string name="donate_url" translatable="false">https://paypal.me/sineisochronic</string>
|
||||
</resources>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
<string name="app_name" translatable="false">OpenPods</string>
|
||||
|
||||
<string name="bg_noti_channel" translatable="false">Background Notification</string>
|
||||
<string name="bg_noti_channel" tools:ignore="MissingTranslation">Background Notification</string>
|
||||
<string name="bg_noti_title" tools:ignore="MissingTranslation">Running in the background</string>
|
||||
<string name="bg_noti_text" tools:ignore="MissingTranslation">Click to open notification settings</string>
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
<string name="airpods3" tools:ignore="MissingTranslation">• Apple AirPods 3rd gen</string>
|
||||
<string name="airpodspro">• Apple AirPods Pro</string>
|
||||
<string name="airpodspro2" tools:ignore="MissingTranslation">• Apple AirPods Pro 2</string>
|
||||
<string name="airpodspro3" tools:ignore="MissingTranslation">• Apple AirPods Pro 3</string>
|
||||
<string name="airpodsmax">• Apple AirPods Max</string>
|
||||
<string name="beatsx">• Beats X</string>
|
||||
<string name="beatsflex">• Beats Flex</string>
|
||||
@@ -51,7 +52,7 @@
|
||||
<string name="about_dev">Developed by Federico Dossena and Itai Levin</string>
|
||||
<string name="fdroid" translatable="false">F-Droid</string>
|
||||
<string name="website">Website</string>
|
||||
<string name="github" tools:ignore="MissingTranslation">Github</string>
|
||||
<string name="github" translatable="false">Github</string>
|
||||
<string name="donate">Donate</string>
|
||||
|
||||
<string name="fdroid_url" translatable="false">https://f-droid.org/packages/com.dosse.airpods/</string>
|
||||
|
||||
+2
-1
@@ -6,7 +6,7 @@
|
||||
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
||||
# Specifies the JVM arguments used for the daemon process.
|
||||
# The setting is particularly useful for tweaking memory settings.
|
||||
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
|
||||
org.gradle.jvmargs=-Xmx4096m -Dfile.encoding=UTF-8
|
||||
# When configured, Gradle will run in incubating parallel mode.
|
||||
# This option should only be used with decoupled projects. For more details, visit
|
||||
# https://developer.android.com/r/tools/gradle-multi-project-decoupled-projects
|
||||
@@ -15,6 +15,7 @@ org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
|
||||
# Android operating system, and which are packaged with your app's APK
|
||||
# https://developer.android.com/topic/libraries/support-library/androidx-rn
|
||||
android.useAndroidX=true
|
||||
android.enableJetifier=true
|
||||
# Enables namespacing of each library's R class so that its R class includes only the
|
||||
# resources declared in the library itself and none from the library's dependencies,
|
||||
# thereby reducing the size of the R class for that library
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[versions]
|
||||
agp = "8.3.1"
|
||||
agp = "8.13.0"
|
||||
appcompat = "1.6.1"
|
||||
preference = "1.2.1"
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
#Thu Sep 29 21:38:30 IDT 2022
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
|
||||
distributionPath=wrapper/dists
|
||||
zipStorePath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
|
||||
Reference in New Issue
Block a user