react-native-background-geolocation 5.0.0-beta.3 → 5.0.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,84 +1,49 @@
1
- # JNI surface
2
- -keepnames class com.transistorsoft.locationmanager.a.A
3
- -keepclassmembers class com.transistorsoft.locationmanager.a.A {
4
- public static void r(boolean);
5
- public static boolean getDBFlag();
6
- }
7
- #######################################################################
8
- # TSConfig reflection (metadata + state + editors)
9
- #######################################################################
10
- -keepattributes *Annotation*,Signature,EnclosingMethod,InnerClasses
11
-
12
- # Keep the annotation TYPES so they exist at runtime
13
- -keep class com.transistorsoft.locationmanager.config.meta.ConfigProp { *; }
14
- -keep class com.transistorsoft.locationmanager.config.meta.ConfigSpec { *; }
15
- -keep class com.transistorsoft.locationmanager.config.meta.ConfigGroup { *; }
16
- -keep class com.transistorsoft.locationmanager.config.meta.CtorOrder { *; }
1
+ -keepnames class com.facebook.react.ReactActivity
17
2
 
18
- # Keep field names + ctors for state modules; FieldIndex uses getters/ctors by name/signature
19
- -keepnames class com.transistorsoft.locationmanager.config.state.** { *; }
20
- -keepclassmembers class com.transistorsoft.locationmanager.config.state.** {
21
- <fields>;
22
- <init>(...);
3
+ # for react-native Headless on new architecture
4
+ -keep class com.facebook.react.defaults.DefaultNewArchitectureEntryPoint {
5
+ public <methods>;
23
6
  }
24
-
25
- # Keep module field names on the aggregate ConfigState
26
- -keepnames class com.transistorsoft.locationmanager.config.state.ConfigState {
27
- <fields>;
28
- <init>(...);
7
+ -keep class com.facebook.react.ReactApplication {
8
+ public <methods>;
29
9
  }
30
-
31
- # Keep Editor and sub-editors members that routing may reflect
32
- -keepnames class com.transistorsoft.locationmanager.config.edit.Editor { *; }
33
- -keepclassmembers class com.transistorsoft.locationmanager.config.edit.Editor {
34
- <fields>;
35
- <init>(...);
10
+ -keep class com.facebook.react.ReactHost {
11
+ public <methods>;
36
12
  }
37
- -keepclassmembers class com.transistorsoft.locationmanager.config.edit.** {
38
- public <init>(...);
39
- public ** set*(...);
40
- <fields>;
13
+ -keep class * extends com.facebook.react.ReactHost {
14
+ public <methods>;
41
15
  }
42
- -keepnames class com.transistorsoft.locationmanager.config.TSConfig
43
- -keepclassmembers class com.transistorsoft.locationmanager.config.TSConfig { public static void r(boolean); }
44
- -keepnames class com.transistorsoft.locationmanager.logger.TSLog
45
- -keepclassmembers class com.transistorsoft.locationmanager.logger.TSLog { public static void r(boolean); }
46
- -keepnames class com.transistorsoft.locationmanager.service.AbstractService
47
- -keepclassmembers class com.transistorsoft.locationmanager.service.AbstractService { public static void r(boolean); }
16
+ -keep class com.facebook.react.fabric.** { *; }
48
17
 
49
- # Services (names + ctors)
50
- -keep class com.transistorsoft.locationmanager.service.** extends com.transistorsoft.locationmanager.service.AbstractService
51
- -keepclassmembers class com.transistorsoft.locationmanager.service.** extends com.transistorsoft.locationmanager.service.AbstractService { <init>(...); }
18
+ -keepnames class com.transistorsoft.rnbackgroundgeolocation.RNBackgroundGeolocation
52
19
 
53
- # Scheduler components
54
- -keep class com.transistorsoft.locationmanager.scheduler.ScheduleAlarmReceiver
55
- -keep class com.transistorsoft.locationmanager.scheduler.ScheduleJobService
56
- -keep class com.transistorsoft.locationmanager.scheduler.ScheduleService
57
- -keepclassmembers class com.transistorsoft.locationmanager.scheduler.ScheduleAlarmReceiver { <init>(...); }
58
- -keepclassmembers class com.transistorsoft.locationmanager.scheduler.ScheduleJobService { <init>(...); }
59
- -keepclassmembers class com.transistorsoft.locationmanager.scheduler.ScheduleService { <init>(...); }
20
+ -keep class com.transistorsoft** { *; }
21
+ -dontwarn com.transistorsoft.**
60
22
 
61
- # Cross-module DTOs
62
- -keepnames class com.transistorsoft.locationmanager.data.SQLQuery
63
- -keepclassmembers class com.transistorsoft.locationmanager.data.SQLQuery { public static *; }
64
- -keepnames class com.transistorsoft.locationmanager.data.LocationModel
65
- -keepclassmembers class com.transistorsoft.locationmanager.data.LocationModel { public *; }
66
-
67
- # EventBus reflection
23
+ # BackgroundGeolocation (EventBus)
68
24
  -keepattributes *Annotation*
69
- -keepclassmembers class * { @org.greenrobot.eventbus.Subscribe <methods>; }
25
+ -keepclassmembers class * {
26
+ @org.greenrobot.eventbus.Subscribe <methods>;
27
+ }
70
28
  -keep enum org.greenrobot.eventbus.ThreadMode { *; }
71
- -keep class org.greenrobot.eventbus.android.AndroidComponentsImpl
72
29
 
73
- # (Optional) Flutter plugin entry
74
- -keepnames class com.transistorsoft.flutter.backgroundgeolocation.FLTBackgroundGeolocationPlugin
30
+ # And if you use AsyncExecutor:
31
+ -keepclassmembers class * extends org.greenrobot.eventbus.util.ThrowableFailureEvent {
32
+ <init>(java.lang.Throwable);
33
+ }
75
34
 
76
- # OkHttp/logging quiets (unchanged)
35
+ # logback
36
+ -keep class ch.qos** { *; }
37
+ -keep class org.slf4j** { *; }
38
+ -dontwarn ch.qos.logback.core.net.*
39
+
40
+ # OkHttp3
77
41
  -dontwarn okio.**
78
42
  -dontwarn okhttp3.**
79
43
  -dontwarn javax.annotation.**
80
44
  -dontwarn org.conscrypt.**
45
+ # A resource is loaded with a relative path so the package of this class must be preserved.
81
46
  -keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase
82
- -keep class ch.qos** { *; }
83
- -keep class org.slf4j** { *; }
84
- -dontwarn ch.qos.logback.core.net.*
47
+
48
+ # LifecycleObserver
49
+ -keep class androidx.lifecycle.FullLifecycleObserver
package/package.json CHANGED
@@ -1,14 +1,7 @@
1
1
  {
2
2
  "name": "react-native-background-geolocation",
3
- "version": "5.0.0-beta.3",
3
+ "version": "5.0.0-beta.4",
4
4
  "description": "The most sophisticated cross-platform background location-tracking & geofencing module with battery-conscious motion-detection intelligence",
5
- "scripts": {
6
- "build": "yarn run build:expo",
7
- "test": "echo \"Error: no test specified\" && exit 1",
8
- "build:expo": "rimraf expo/plugin/build && tsc --build ./expo/plugin",
9
- "docs": "node ./scripts/generate-docs.mjs",
10
- "docs:publish": "./scripts/publish-docs.sh"
11
- },
12
5
  "codegenConfig": {
13
6
  "name": "RNBackgroundGeolocation",
14
7
  "type": "modules",
@@ -57,5 +50,12 @@
57
50
  "rimraf": "^5.0.0",
58
51
  "typedoc": "^0.28.14",
59
52
  "typescript": "^5.6.0"
53
+ },
54
+ "scripts": {
55
+ "build": "yarn run build:expo",
56
+ "test": "echo \"Error: no test specified\" && exit 1",
57
+ "build:expo": "rimraf expo/plugin/build && tsc --build ./expo/plugin",
58
+ "docs": "node ./scripts/generate-docs.mjs",
59
+ "docs:publish": "./scripts/publish-docs.sh"
60
60
  }
61
- }
61
+ }