Skip to content

Commit

Permalink
fix: separate app for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Batorian committed May 10, 2024
1 parent e7b3407 commit ffc7b3d
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions android/app/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ android_library(

android_build_config(
name = "build_config",
package = "com.rajarsheechatterjee.LNReader",
package = "com.rajarsheechatterjee.LNReaderTesting",
)

android_resource(
name = "res",
package = "com.rajarsheechatterjee.LNReader",
package = "com.rajarsheechatterjee.LNReaderTesting",
res = "src/main/res",
)

Expand Down
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ android {
ndkVersion rootProject.ext.ndkVersion

compileSdkVersion rootProject.ext.compileSdkVersion
namespace "com.rajarsheechatterjee.LNReader"
namespace "com.rajarsheechatterjee.LNReaderTesting"
defaultConfig {
applicationId 'com.rajarsheechatterjee.LNReader'
applicationId 'com.rajarsheechatterjee.LNReaderTesting'
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
// Generated version code. Supports versions up to 1024.1024.2048
Expand Down
4 changes: 2 additions & 2 deletions android/app/google-services.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
"client_info": {
"mobilesdk_app_id": "1:523872485654:android:169cd062458db962ce1037",
"android_client_info": {
"package_name": "com.rajarsheechatterjee.LNReader"
"package_name": "com.rajarsheechatterjee.LNReaderTesting"
}
},
"oauth_client": [
{
"client_id": "523872485654-14jtut8orr7dbrk2chea279d7k8889sr.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "com.rajarsheechatterjee.LNReader",
"package_name": "com.rajarsheechatterjee.LNReaderTesting",
"certificate_hash": "5e8f16062ea3cd2c4a0d547876baa6f38cabf625"
}
},
Expand Down
8 changes: 4 additions & 4 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.rajarsheechatterjee.LNReader">
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.rajarsheechatterjee.LNReaderTesting">

<!-- Internet -->
<uses-permission android:name="android.permission.INTERNET" />
Expand Down Expand Up @@ -58,8 +58,8 @@
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="lnreader" />
<data android:scheme="com.rajarsheechatterjee.LNReader" />
<data android:scheme="lnreadertesting" />
<data android:scheme="com.rajarsheechatterjee.LNReaderTesting" />
</intent-filter>
</activity>

Expand All @@ -68,4 +68,4 @@
<service android:name="com.asterinet.react.bgactions.RNBackgroundActionsTask" />

</application>
</manifest>
</manifest>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.rajarsheechatterjee.LNReader;
package com.rajarsheechatterjee.LNReaderTesting;

import android.graphics.Color;
import android.os.Build;
Expand All @@ -18,7 +18,7 @@
import org.devio.rn.splashscreen.SplashScreen;

public class MainActivity extends ReactActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.rajarsheechatterjee.LNReader;
package com.rajarsheechatterjee.LNReaderTesting;

import android.app.Application;
import android.content.res.Configuration;
Expand All @@ -25,7 +25,7 @@

public class MainApplication extends Application implements ReactApplication {

private final ReactNativeHost mReactNativeHost =
private final ReactNativeHost mReactNativeHost =
new ReactNativeHostWrapper(this, new DefaultReactNativeHost(this) {
@Override
public boolean getUseDeveloperSupport() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* directory of this source tree.
*/
package com.rajarsheechatterjee.LNReader;
package com.rajarsheechatterjee.LNReaderTesting;

import android.content.Context;
import com.facebook.react.ReactInstanceManager;
Expand Down
6 changes: 3 additions & 3 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"expo": {
"name": "LNReader",
"slug": "LNReader",
"scheme": "lnreader",
"name": "LNReaderTesting",
"slug": "LNReaderTesting",
"scheme": "lnreadertesting",
"plugins": [
"expo-localization"
]
Expand Down
6 changes: 3 additions & 3 deletions pidcat.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@

package = args.package
if len(package) == 0:
package.append('com.rajarsheechatterjee.LNReader')
package.append('com.rajarsheechatterjee.LNReaderTesting')

# enabling Windows 10 VT100 support
def enableVT100():
Expand Down Expand Up @@ -296,7 +296,7 @@ def parse_start_proc(line):
return line_package, '', line_pid, line_uid, ''
return None

def tag_in_tags_regex(tag, tags):
def tag_in_tags_regex(tag, tags):
return any(re.match(r'^' + t + r'$', tag) for t in map(str.strip, tags))

ps_command = base_adb_command + ['shell', 'ps']
Expand Down Expand Up @@ -407,4 +407,4 @@ def tag_in_tags_regex(tag, tags):
output(linebuf)

if (output_file):
output_file.close()
output_file.close()

0 comments on commit ffc7b3d

Please sign in to comment.