Skip to content

Commit

Permalink
适配API 34
Browse files Browse the repository at this point in the history
  • Loading branch information
flyun committed Dec 3, 2024
1 parent ee3e087 commit f7fb577
Show file tree
Hide file tree
Showing 27 changed files with 128 additions and 70 deletions.
14 changes: 7 additions & 7 deletions TMessagesProj/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ dependencies {
implementation 'com.googlecode.mp4parser:isoparser:1.0.6'
implementation 'com.stripe:stripe-android:2.0.2'
implementation 'com.google.mlkit:language-id:16.1.1'
implementation 'com.android.billingclient:billing:5.1.0'
implementation 'com.android.billingclient:billing:6.0.1'
implementation 'com.google.code.gson:gson:2.10'
implementation 'com.google.guava:guava:31.1-android'

Expand All @@ -55,7 +55,7 @@ dependencies {
api 'com.google.firebase:firebase-analytics'

implementation project(':openai_service')
annotationProcessor 'org.projectlombok:lombok:1.18.24'
annotationProcessor 'org.projectlombok:lombok:1.18.30'

implementation project(':markwon-core')
implementation project(':markwon-ext-tables')
Expand All @@ -78,7 +78,7 @@ dependencies {

def isWindows = String.valueOf(DefaultNativePlatform.currentOperatingSystem.toFamilyName() == OperatingSystemFamily.WINDOWS)
android {
compileSdkVersion 33
compileSdkVersion 34
buildToolsVersion '33.0.0'
ndkVersion "21.4.7075529"

Expand All @@ -101,8 +101,8 @@ android {
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11

coreLibraryDesugaringEnabled true
}
Expand All @@ -111,7 +111,7 @@ android {

defaultConfig {
minSdkVersion 19
targetSdkVersion 33
targetSdkVersion 34
versionName "8.9.0"

vectorDrawables.generatedDensities = ['mdpi', 'hdpi', 'xhdpi', 'xxhdpi']
Expand All @@ -121,7 +121,7 @@ android {
externalNativeBuild {
cmake {
version '3.10.2'
arguments '-DANDROID_STL=c++_static', '-DANDROID_PLATFORM=android-16', "-j=16"
arguments '-DANDROID_STL=c++_static', '-DANDROID_PLATFORM=android-16'
}
}
}
Expand Down
7 changes: 7 additions & 0 deletions TMessagesProj/config/debug/AndroidManifest_SDK23.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
<!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />-->
<!-- <uses-permission android:name="android.permission.READ_CALL_LOG" />-->

<!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />-->
<!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" />-->
<!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" />-->
<!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE_CAMERA" />-->
<!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE_LOCATION" />-->
<!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MICROPHONE" />-->

<!-- <uses-permission android:name="android.permission.READ_CONTACTS" tools:node="remove"/>-->
<!-- <uses-permission android:name="android.permission.WRITE_CONTACTS" tools:node="remove"/>-->
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" tools:node="remove"/>
Expand Down
7 changes: 7 additions & 0 deletions TMessagesProj/config/release/AndroidManifest_SDK23.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
<uses-permission android:name="android.permission.READ_PHONE_STATE" tools:node="remove"/>


<!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />-->
<!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" />-->
<!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" />-->
<!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE_CAMERA" />-->
<!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE_LOCATION" />-->
<!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MICROPHONE" />-->

<application
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
Expand Down
10 changes: 10 additions & 0 deletions TMessagesProj/config/release/AndroidManifest_standalone.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@
<uses-permission android:name="android.permission.READ_PHONE_NUMBERS" tools:node="remove"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE" tools:node="remove"/>


<!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />-->
<!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE_REMOTE_MESSAGING" />-->
<!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" />-->
<!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" />-->
<!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE_CAMERA" />-->
<!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE_LOCATION" />-->
<!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MICROPHONE" />-->
<!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE_PHONE_CALL" />-->

<application
android:icon="@mipmap/ic_launcher_sa"
android:roundIcon="@mipmap/ic_launcher_sa"
Expand Down
2 changes: 1 addition & 1 deletion TMessagesProj/google-services.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"client_info": {
"mobilesdk_app_id": "1:25984797783:android:c49a53d9ab31179af2e712",
"android_client_info": {
"package_name": "info.flyun.chatair"
"package_name": "org.telegram.messenger"
}
},
"oauth_client": [
Expand Down
10 changes: 5 additions & 5 deletions TMessagesProj_App/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ dependencies {
}

android {
compileSdkVersion 33
buildToolsVersion '33.0.0'
compileSdkVersion 34
buildToolsVersion '34.0.0'

defaultConfig.applicationId = APP_PACKAGE

Expand Down Expand Up @@ -53,8 +53,8 @@ android {
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11

coreLibraryDesugaringEnabled true
}
Expand Down Expand Up @@ -189,7 +189,7 @@ android {

defaultConfig {
minSdkVersion 19
targetSdkVersion 33
targetSdkVersion 34
versionName APP_VERSION_NAME
ndkVersion "21.4.7075529"

Expand Down
11 changes: 8 additions & 3 deletions TMessagesProj_App/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,16 @@
<!-- <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" tools:node="remove"/>-->
<uses-permission android:name="android.permission.READ_PHONE_NUMBERS" tools:node="remove"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE" tools:node="remove"/>
<uses-permission android:name="android.permission.USE_FULL_SCREEN_INTENT" tools:node="remove" />
<!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" tools:node="remove" />-->
<!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" tools:node="remove" />-->
<!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" tools:node="remove" />-->
<!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MICROPHONE" tools:node="remove" />-->

<application android:name="org.telegram.messenger.ApplicationLoaderImpl" tools:replace="name">
<service android:name="org.telegram.messenger.GoogleVoiceClientService" android:exported="true"/>
<application android:name="info.flyun.chatair.ApplicationLoaderImpl" tools:replace="name">
<service android:name="info.flyun.chatair.GoogleVoiceClientService" android:exported="true"/>
<activity
android:name="org.telegram.messenger.GoogleVoiceClientActivity"
android:name="info.flyun.chatair.GoogleVoiceClientActivity"
android:exported="true">
<intent-filter>
<action android:name="com.google.android.voicesearch.SEND_MESSAGE_TO_CONTACTS" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.telegram.messenger;
package info.flyun.chatair;

import org.telegram.messenger.ApplicationLoader;
import org.telegram.messenger.regular.BuildConfig;

public class ApplicationLoaderImpl extends ApplicationLoader {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Copyright Nikolai Kudashov, 2013-2018.
*/

package org.telegram.messenger;
package info.flyun.chatair;

import com.google.android.search.verification.client.SearchActionVerificationClientActivity;
import com.google.android.search.verification.client.SearchActionVerificationClientService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
* Copyright Nikolai Kudashov, 2013-2018.
*/

package org.telegram.messenger;
package info.flyun.chatair;

import android.content.Intent;
import android.os.Bundle;

import com.google.android.search.verification.client.SearchActionVerificationClientService;

import org.telegram.messenger.AndroidUtilities;

public class GoogleVoiceClientService extends SearchActionVerificationClientService {

@Override
Expand Down
10 changes: 5 additions & 5 deletions TMessagesProj_AppHockeyApp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ dependencies {
}

android {
compileSdkVersion 33
buildToolsVersion '33.0.0'
compileSdkVersion 34
buildToolsVersion '34.0.0'

defaultConfig.applicationId = APP_PACKAGE

Expand All @@ -43,8 +43,8 @@ android {
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11

coreLibraryDesugaringEnabled true
}
Expand Down Expand Up @@ -143,7 +143,7 @@ android {

defaultConfig {
minSdkVersion 19
targetSdkVersion 33
targetSdkVersion 34
versionName APP_VERSION_NAME
ndkVersion "21.4.7075529"

Expand Down
5 changes: 4 additions & 1 deletion TMessagesProj_AppHockeyApp/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
android:installLocation="auto">

<application android:name="org.telegram.messenger.ApplicationLoaderImpl" tools:replace="name">
<service android:name="org.telegram.messenger.GoogleVoiceClientService" android:exported="true"/>
<service android:name="org.telegram.messenger.GoogleVoiceClientService"
android:exported="true"/>
<!-- android:foregroundServiceType="dataSync"-->
<!-- />-->
<activity
android:name="org.telegram.messenger.GoogleVoiceClientActivity"
android:exported="true">
Expand Down
8 changes: 4 additions & 4 deletions TMessagesProj_AppHuawei/agconnect-services.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@
"project_id":"9105385871708127577",
"app_id":"101184875",
"api_key":"DAEDAEehEkTAPVhW2szdQNNLzBVS1Re7Pw98QkLMvgGZaEEUc8JLBVi2qhMh2vWw9h/Yq2PwtSGxZzFrSmLAQIysf7Tvo4BAadcblA==",
"package_name":"org.telegram.messenger"
"package_name":"info.flyun.chatair"
},
"oauth_client":{
"client_id":"101184875",
"client_type":1
},
"app_info":{
"app_id":"101184875",
"package_name":"org.telegram.messenger"
"package_name":"info.flyun.chatair"
},
"service":{
"analytics":{
Expand Down Expand Up @@ -75,12 +75,12 @@
"configuration_version":"3.0",
"appInfos":[
{
"package_name":"org.telegram.messenger",
"package_name":"info.flyun.chatair",
"client":{
"app_id":"101184875"
},
"app_info":{
"package_name":"org.telegram.messenger",
"package_name":"info.flyun.chatair",
"app_id":"101184875"
},
"oauth_client":{
Expand Down
10 changes: 5 additions & 5 deletions TMessagesProj_AppHuawei/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ dependencies {
}

android {
compileSdkVersion 33
buildToolsVersion '33.0.0'
compileSdkVersion 34
buildToolsVersion '34.0.0'

defaultConfig.applicationId = APP_PACKAGE

Expand All @@ -47,8 +47,8 @@ android {
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11

coreLibraryDesugaringEnabled true
}
Expand Down Expand Up @@ -137,7 +137,7 @@ android {

defaultConfig {
minSdkVersion 19
targetSdkVersion 33
targetSdkVersion 34
versionName APP_VERSION_NAME
ndkVersion "21.4.7075529"

Expand Down
5 changes: 4 additions & 1 deletion TMessagesProj_AppHuawei/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
</queries>

<application android:name="org.telegram.messenger.HuaweiApplicationLoader" tools:replace="name">
<service android:name="org.telegram.messenger.GoogleVoiceClientService" android:exported="true"/>
<service android:name="org.telegram.messenger.GoogleVoiceClientService"
android:exported="true"/>
<!-- android:foregroundServiceType="dataSync"-->
<!-- />-->
<activity
android:name="org.telegram.messenger.GoogleVoiceClientActivity"
android:exported="true">
Expand Down
8 changes: 4 additions & 4 deletions base/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ repositories {

dependencies {

compileOnly 'org.projectlombok:lombok:1.18.24'
annotationProcessor 'org.projectlombok:lombok:1.18.24'
compileOnly 'org.projectlombok:lombok:1.18.30'
annotationProcessor 'org.projectlombok:lombok:1.18.30'

}

java {
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_11
sourceCompatibility JavaVersion.VERSION_11
}
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ buildscript {
maven { url 'https://developer.huawei.com/repo/' }
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.3'
classpath 'com.google.gms:google-services:4.3.10'
classpath 'com.android.tools.build:gradle:7.2.2'
classpath 'com.google.gms:google-services:4.3.15'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.5'
classpath 'com.huawei.agconnect:agcp:1.6.0.300'
classpath 'com.huawei.agconnect:agcp:1.9.1.301'
}
}
repositories {
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
#Sat Mar 12 05:53:50 MSK 2016
APP_VERSION_CODE=14
APP_VERSION_NAME=1.1.4
APP_VERSION_CODE=19
APP_VERSION_NAME=1.1.9
APP_PACKAGE=info.flyun.chatair
RELEASE_KEY_PASSWORD=android
RELEASE_KEY_ALIAS=androidkey
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
10 changes: 7 additions & 3 deletions markwon-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@ apply plugin: 'com.android.library'

android {

compileSdkVersion 29
buildToolsVersion '29.0.3'
compileSdkVersion 34
buildToolsVersion '34.0.0'

defaultConfig {
minSdkVersion 16
targetSdkVersion 29
targetSdkVersion 34
versionCode 1
versionName version
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
}

repositories {
Expand Down
Loading

0 comments on commit f7fb577

Please sign in to comment.