chore: rename app and update translate

This commit is contained in:
xtaodada 2022-05-09 20:46:10 +08:00
parent c484830b81
commit 74b053d567
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
13 changed files with 60 additions and 36 deletions

View File

@ -57,7 +57,7 @@ android {
buildToolsVersion "32.0.0"
ndkVersion rootProject.ext.ndkVersion
defaultConfig.applicationId = "xyz.nextalone.nagram"
defaultConfig.applicationId = 'com.xtaolabs.pagergram'
splits {
@ -156,7 +156,7 @@ android {
signingConfigs {
release {
storeFile project.file("release.keystore")
storeFile project.file("pagergram.jks")
storePassword keystorePwd
keyAlias alias
keyPassword pwd
@ -301,7 +301,7 @@ android {
applicationVariants.all { variant ->
variant.outputs.all { output ->
outputFileName = outputFileName.replace("TMessagesProj", "Nagram-v" + versionName + "(" + versionCode + ")").replace("-release", "")
outputFileName = outputFileName.replace("TMessagesProj", "PagerGram-v" + versionName + "(" + versionCode + ")").replace("-release", "")
}
}

View File

@ -1,33 +1,62 @@
{
"project_info": {
"project_number": "454087305870",
"project_id": "nekogram-2753b",
"storage_bucket": "nekogram-2753b.appspot.com"
"project_number": "232704888307",
"project_id": "pagergram-modify",
"storage_bucket": "pagergram-modify.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:454087305870:android:5c8d8e9f3a9a0e37eb37df",
"mobilesdk_app_id": "1:232704888307:android:8e09b08e589b92c4349686",
"android_client_info": {
"package_name": "xyz.nextalone.nagram"
"package_name": "com.xtaolabs.pagergram"
}
},
"oauth_client": [
{
"client_id": "454087305870-i68bog5e0h2uq2553friqpl7ullqnuuo.apps.googleusercontent.com",
"client_id": "232704888307-vl4ilatm6g5n4t6e57oc6e1mumg61ga1.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyCPNxXY201baapXdQZCpdhLYVJ8LYN1bK8"
"current_key": "AIzaSyDUY6Lvo-VAy3nA8Y5PaimnDMz_fT_tXOw"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "454087305870-i68bog5e0h2uq2553friqpl7ullqnuuo.apps.googleusercontent.com",
"client_id": "232704888307-vl4ilatm6g5n4t6e57oc6e1mumg61ga1.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:232704888307:android:f67ba58246cddef2349686",
"android_client_info": {
"package_name": "com.xtaolabs.pagergram.beta"
}
},
"oauth_client": [
{
"client_id": "232704888307-vl4ilatm6g5n4t6e57oc6e1mumg61ga1.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyDUY6Lvo-VAy3nA8Y5PaimnDMz_fT_tXOw"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "232704888307-vl4ilatm6g5n4t6e57oc6e1mumg61ga1.apps.googleusercontent.com",
"client_type": 3
}
]

BIN
TMessagesProj/pagergram.jks Normal file

Binary file not shown.

View File

@ -7900,7 +7900,7 @@ public class ProfileActivity extends BaseFragment implements NotificationCenter.
cell.getTextView().setMovementMethod(null);
cell.setBackground(Theme.getThemedDrawable(mContext, R.drawable.greydivider_bottom, Theme.key_windowBackgroundGrayShadow));
cell.setText("Nagram v" + BuildConfig.VERSION_NAME + "(" + BuildConfig.VERSION_CODE + ") " + FileUtil.getAbi() + " " + BuildConfig.FLAVOR + " " + BuildConfig.BUILD_TYPE);
cell.setText("PagerGram v" + BuildConfig.VERSION_NAME + "(" + BuildConfig.VERSION_CODE + ") " + FileUtil.getAbi() + " " + BuildConfig.FLAVOR + " " + BuildConfig.BUILD_TYPE);
cell.getTextView().setPadding(0, AndroidUtilities.dp(14), 0, AndroidUtilities.dp(14));
view = cell;

View File

@ -21,10 +21,10 @@ public class InternalUpdater {
static final int UPDATE_METADATA_START_FROM = 0;
static final int MAX_READ_COUNT = 20;
static final long CHANNEL_METADATA_ID = 1793245134;
static final String CHANNEL_METADATA_NAME = "nagram_metadata";
static final long CHANNEL_APKS_ID = 1645699549;
static final String CHANNEL_APKS_NAME = "nagram_channel";
static final long CHANNEL_METADATA_ID = 1787231606;
static final String CHANNEL_METADATA_NAME = "pagergram_update_metadata";
static final long CHANNEL_APKS_ID = 1780943907;
static final String CHANNEL_APKS_NAME = "PagerGram_Apks";
static void retrieveUpdateMetadata(retrieveUpdateMetadataCallback callback) {
final int localVersionCode = BuildVars.BUILD_VERSION;

View File

@ -39,6 +39,8 @@ public class NekoXConfig {
// 1137038259, // NekoX APKs
1500637449, // Nagram
1645699549, // Nagram Updates
1633997447, // PagerGram Chat
1780943907, // PagerGram APKs
};
public static long[] developers = {
@ -47,7 +49,10 @@ public class NekoXConfig {
784901712, // NextAlone
457896977, // Queally
782954985, // MaiTungTM
5412523572L //blxueya
5412523572L, //blxueya
347437156, // mrwangzhe
583325201, // sam
842474872, // null
};
public static final int TITLE_TYPE_TEXT = 0;
@ -148,17 +153,7 @@ public class NekoXConfig {
}
public static boolean isDeveloper() {
if (hasDeveloper != null)
return hasDeveloper;
hasDeveloper = true; // BuildVars.DEBUG_VERSION;
for (int acc : SharedConfig.activeAccounts) {
long myId = UserConfig.getInstance(acc).clientUserId;
if (ArrayUtil.contains(NekoXConfig.developers, myId)) {
hasDeveloper = true;
break;
}
}
return hasDeveloper;
return true;
}
public static String getOpenPGPAppName() {

View File

@ -271,7 +271,7 @@
<string name="rememberAllBackMessages">记住所有点击的回复</string>
<string name="ShareMessages">分享</string>
<string name="AutoCheckUpdatePreview">预览版(不稳定)</string>
<string name="AppUpdateNekoX">更新 Nagram</string>
<string name="AppUpdateNekoX">更新 PagerGram</string>
<string name="NekoXUpdateTranslationHint">长按以翻译更新日志</string>
<string name="channelAlias">频道别名</string>
<string name="labelChannelUser">标记频道匿名身份别名</string>

View File

@ -141,7 +141,7 @@
<string name="customSavePath">Custom Storage Path</string>
<string name="customSavePathHint">Leave blank to save directly</string>
<string name="showBottomActionsWhenSelecting">Show bottom actions when selecting</string>
<string name="channelLabel">channel</string>
<string name="channelLabel">📢</string>
<string name="forceBlurInChat">Force enable Chat Blur</string>
<string name="ChatBlurAlphaValue">Chat Blur Alpha</string>
<string name="disablePremiumStickerAnimation">Disable premium sticker animation</string>

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="NekoX" translatable="false">Nagram</string>
<string name="NekoX" translatable="false">PagerGram</string>
<string name="Locked">Locked</string>
<string name="AccDescrChatAttachEnterMenu">Chat input menu</string>
<string name="ChatAttachEnterMenuRecordVideo">Record Video</string>
@ -265,7 +265,7 @@
<string name="rememberAllBackMessages">Remember all clicked replies</string>
<string name="DisableInstantCamera">Disable instant camera</string>
<string name="showSeconds">Show timestamp in seconds</string>
<string name="AppUpdateNekoX">Update Nagram</string>
<string name="AppUpdateNekoX">Update PagerGram</string>
<string name="NekoXUpdateTranslationHint">Press to translate the change log</string>
<string name="Name">Name</string>
<string name="channelAlias">Channel alias</string>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<account-authenticator xmlns:android="http://schemas.android.com/apk/res/android"
android:accountType="xyz.nextalone.nagram"
android:accountType="com.xtaolabs.pagergram"
android:icon="@mipmap/ic_launcher"
android:smallIcon="@mipmap/ic_launcher"
android:label="@string/AppName"

View File

@ -6,7 +6,7 @@
android:title="@string/AccountSettings"
android:summary="">
<intent android:action="org.telegram.messenger.OPEN_ACCOUNT"
android:targetPackage="xyz.nextalone.nagram"
android:targetPackage="com.xtaolabs.pagergram"
android:targetClass="org.telegram.ui.LaunchActivity"/>
</PreferenceScreen>
</PreferenceScreen>

View File

@ -1,3 +1,3 @@
<sync-adapter xmlns:android="http://schemas.android.com/apk/res/android"
android:contentAuthority="com.android.contacts"
android:accountType="xyz.nextalone.nagram"/>
android:accountType="com.xtaolabs.pagergram"/>

View File

@ -1 +1 @@
Nagram
PagerGram