Point to chat.rocket.android

This commit is contained in:
Diego Mello 2023-06-20 17:32:48 -03:00
parent 31481e4ce3
commit 654e19b95b
24 changed files with 34 additions and 35 deletions

View File

@ -106,7 +106,7 @@ android {
compileSdkVersion rootProject.ext.compileSdkVersion
// Can't set this, since it causes issues to Official flavor
// namespace APPLICATION_ID
namespace "chat.rocket.android"
defaultConfig {
applicationId APPLICATION_ID
minSdkVersion rootProject.ext.minSdkVersion
@ -118,7 +118,7 @@ android {
manifestPlaceholders = [BugsnagAPIKey: BugsnagAPIKey as String]
missingDimensionStrategy "RNNotifications.reactNativeVersion", "reactNative60" // See note below!
}
resValue "string", "rn_config_reader_custom_package", "chat.rocket.reactnative"
resValue "string", "rn_config_reader_custom_package", APPLICATION_ID
testBuildType System.getProperty('testBuildType', 'debug')
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}

View File

@ -1,5 +1,5 @@
// Replace "com.example" here and below with your app's package name from the top of MainActivity.java
package chat.rocket.reactnative;
package chat.rocket.android;
import com.wix.detox.Detox;
import com.wix.detox.config.DetoxConfig;
@ -18,14 +18,14 @@ public class DetoxTest {
@Rule
// Replace 'MainActivity' with the value of android:name entry in
// <activity> in AndroidManifest.xml
public ActivityTestRule<chat.rocket.reactnative.MainActivity> mActivityRule = new ActivityTestRule<>(chat.rocket.reactnative.MainActivity.class, false, false);
public ActivityTestRule<chat.rocket.android.MainActivity> mActivityRule = new ActivityTestRule<>(chat.rocket.android.MainActivity.class, false, false);
@Test
public void runDetoxTests() {
DetoxConfig detoxConfig = new DetoxConfig();
detoxConfig.idlePolicyConfig.masterTimeoutSec = 90;
detoxConfig.idlePolicyConfig.idleResourceTimeoutSec = 60;
detoxConfig.rnContextLoadTimeoutSec = (chat.rocket.reactnative.BuildConfig.DEBUG ? 180 : 60);
detoxConfig.rnContextLoadTimeoutSec = (chat.rocket.android.BuildConfig.DEBUG ? 180 : 60);
Detox.runTests(mActivityRule, detoxConfig);
}

View File

@ -3,7 +3,7 @@
xmlns:tools="http://schemas.android.com/tools">
<application
android:name="chat.rocket.reactnative.MainDebugApplication"
android:name=".MainDebugApplication"
tools:ignore="GoogleAppIndexingWarning"
tools:replace="android:name"
tools:targetApi="28"

View File

@ -1,4 +1,4 @@
package chat.rocket.reactnative;
package chat.rocket.android;
import android.content.Context;
import com.facebook.flipper.android.AndroidFlipperClient;
import com.facebook.flipper.android.utils.FlipperUtils;

View File

@ -1,4 +1,4 @@
package chat.rocket.reactnative;
package chat.rocket.android;
import android.app.Application;

View File

@ -1,6 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="chat.rocket.reactnative">
xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
@ -15,7 +14,7 @@
<uses-permission android:name="android.permission.BLUETOOTH" />
<application
android:name="chat.rocket.reactnative.MainApplication"
android:name=".MainApplication"
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
@ -26,7 +25,7 @@
android:hardwareAccelerated="true"
tools:replace="android:allowBackup">
<activity
android:name="chat.rocket.reactnative.MainActivity"
android:name=".MainActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
android:exported="true"
android:label="@string/app_name"
@ -63,7 +62,7 @@
</intent-filter>
</activity>
<activity
android:name="chat.rocket.reactnative.share.ShareActivity"
android:name=".share.ShareActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
android:label="@string/share_extension_name"
android:noHistory="true"

View File

@ -1,4 +1,4 @@
package chat.rocket.reactnative;
package chat.rocket.android;
import android.content.Intent;
import android.content.res.Configuration;

View File

@ -1,4 +1,4 @@
package chat.rocket.reactnative;
package chat.rocket.android;
import android.app.Application;
@ -21,7 +21,7 @@ import expo.modules.ReactNativeHostWrapper;
import java.util.Arrays;
import java.util.List;
import chat.rocket.reactnative.networking.SSLPinningPackage;
import chat.rocket.android.networking.SSLPinningPackage;
public class MainApplication extends Application implements ReactApplication {

View File

@ -1,4 +1,4 @@
package chat.rocket.reactnative.networking;
package chat.rocket.android.networking;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule;

View File

@ -1,4 +1,4 @@
package chat.rocket.reactnative.networking;
package chat.rocket.android.networking;
import java.util.Arrays;
import java.util.Collections;

View File

@ -1,4 +1,4 @@
package chat.rocket.reactnative.share;
package chat.rocket.android.share;
import com.facebook.react.ReactActivity;

View File

@ -1,6 +1,6 @@
package chat.rocket.reactnative.share;
package chat.rocket.android.share;
import chat.rocket.reactnative.BuildConfig;
import chat.rocket.android.BuildConfig;
import chat.rocket.SharePackage;

View File

@ -3,18 +3,18 @@
xmlns:tools="http://schemas.android.com/tools">
<application
android:name="chat.rocket.reactnative.MainPlayApplication"
android:name=".MainPlayApplication"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:networkSecurityConfig="@xml/network_security_config"
tools:replace="android:name"
>
<receiver
android:name="chat.rocket.reactnative.ReplyBroadcast"
android:name=".ReplyBroadcast"
android:enabled="true"
android:exported="true" />
<receiver
android:name="chat.rocket.reactnative.DismissNotification"
android:name=".DismissNotification"
android:enabled="true"
android:exported="true" >
</receiver>

View File

@ -1,4 +1,4 @@
package chat.rocket.reactnative;
package chat.rocket.android;
import android.app.Application;

View File

@ -1,4 +1,4 @@
package chat.rocket.reactnative;
package chat.rocket.android;
import android.os.Bundle;

View File

@ -1,4 +1,4 @@
package chat.rocket.reactnative;
package chat.rocket.android;
import static com.wix.reactnativenotifications.Defs.NOTIFICATION_RECEIVED_EVENT_NAME;

View File

@ -1,4 +1,4 @@
package chat.rocket.reactnative;
package chat.rocket.android;
import android.content.BroadcastReceiver;
import android.content.Context;

View File

@ -1,4 +1,4 @@
package chat.rocket.reactnative;
package chat.rocket.android;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.Callback;

View File

@ -1,4 +1,4 @@
package chat.rocket.reactnative;
package chat.rocket.android;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;

View File

@ -1,4 +1,4 @@
package chat.rocket.reactnative;
package chat.rocket.android;
import android.os.Bundle;

View File

@ -1,4 +1,4 @@
package chat.rocket.reactnative;
package chat.rocket.android;
import android.content.Context;
import android.os.Bundle;

View File

@ -1,4 +1,4 @@
package chat.rocket.reactnative;
package chat.rocket.android;
import android.app.Notification;
import android.app.NotificationChannel;

View File

@ -1,4 +1,4 @@
package chat.rocket.reactnative;
package chat.rocket.android;
import android.content.Context;
import com.facebook.react.ReactInstanceManager;
/**

View File

@ -42,7 +42,7 @@ newArchEnabled=false
hermesEnabled=true
# Application ID
APPLICATION_ID=chat.rocket.reactnative
APPLICATION_ID=chat.rocket.android
# App properties
VERSIONCODE=999999999