-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
weiqiangliu
committed
Apr 28, 2023
1 parent
05d975f
commit f247fbf
Showing
30 changed files
with
354 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.idea |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+0 Bytes
(100%)
...4/UniSensorsAnalyticsModule.framework/Frameworks/SensorsAnalyticsSDK.framework/Info.plist
Binary file not shown.
Binary file modified
BIN
+45.5 KB
(100%)
...orsAnalyticsModule.framework/Frameworks/SensorsAnalyticsSDK.framework/SensorsAnalyticsSDK
Binary file not shown.
Binary file modified
BIN
-1.84 MB
(76%)
...-arm64/UniSensorsAnalyticsModule.framework/Frameworks/SensorsFocus.framework/SensorsFocus
100644 → 100755
Binary file not shown.
Binary file modified
BIN
+1.71 KB
(100%)
...odule.xcframework/ios-arm64/UniSensorsAnalyticsModule.framework/UniSensorsAnalyticsModule
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...r/UniSensorsAnalyticsModule.framework/Frameworks/SensorsAnalyticsSDK.framework/Info.plist
Binary file not shown.
Binary file modified
BIN
-131 KB
(98%)
...orsAnalyticsModule.framework/Frameworks/SensorsAnalyticsSDK.framework/SensorsAnalyticsSDK
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-934 KB
(71%)
...ulator/UniSensorsAnalyticsModule.framework/Frameworks/SensorsFocus.framework/SensorsFocus
100644 → 100755
Binary file not shown.
Binary file removed
BIN
-157 Bytes
...sAnalyticsModule.framework/Frameworks/SensorsFocus.framework/_CodeSignature/CodeDirectory
Binary file not shown.
Binary file removed
BIN
-12 Bytes
...alyticsModule.framework/Frameworks/SensorsFocus.framework/_CodeSignature/CodeRequirements
Binary file not shown.
Binary file removed
BIN
-205 Bytes
...yticsModule.framework/Frameworks/SensorsFocus.framework/_CodeSignature/CodeRequirements-1
Binary file not shown.
Empty file.
Binary file modified
BIN
+1.9 KB
(100%)
.../ios-arm64_x86_64-simulator/UniSensorsAnalyticsModule.framework/UniSensorsAnalyticsModule
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...s-arm64_x86_64-simulator/UniSensorsAnalyticsModule.framework/_CodeSignature/CodeDirectory
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...64_x86_64-simulator/UniSensorsAnalyticsModule.framework/_CodeSignature/CodeRequirements-1
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
...ataUniPlugin/src/main/java/com/sensorsdata/uniapp/property/UniSAGlobalPropertyPlugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package com.sensorsdata.uniapp.property; | ||
|
||
import com.sensorsdata.analytics.android.sdk.data.persistent.PersistentLoader; | ||
import com.sensorsdata.analytics.android.sdk.plugin.property.SAPropertyPlugin; | ||
import com.sensorsdata.analytics.android.sdk.plugin.property.SAPropertyPluginPriority; | ||
import com.sensorsdata.analytics.android.sdk.plugin.property.beans.SAPropertiesFetcher; | ||
import com.sensorsdata.analytics.android.sdk.plugin.property.beans.SAPropertyFilter; | ||
import com.sensorsdata.uniapp.util.JSONUtils; | ||
|
||
import org.json.JSONObject; | ||
|
||
public class UniSAGlobalPropertyPlugin extends SAPropertyPlugin { | ||
private JSONObject mProperties; | ||
|
||
public UniSAGlobalPropertyPlugin(JSONObject globalProperties) { | ||
mProperties = globalProperties; | ||
} | ||
|
||
@Override | ||
public boolean isMatchedWithFilter(SAPropertyFilter filter) { | ||
return filter.getType().isTrack(); | ||
} | ||
|
||
@Override | ||
public void properties(SAPropertiesFetcher fetcher) { | ||
if (mProperties == null || mProperties.length() == 0) { | ||
return; | ||
} | ||
JSONObject properties = PersistentLoader.getInstance().getSuperPropertiesPst().get(); | ||
try { | ||
JSONUtils.mergeSuperJSONObject(mProperties, properties); | ||
PersistentLoader.getInstance().getSuperPropertiesPst().commit(properties); | ||
mProperties = null; | ||
} catch (Exception ignored) { | ||
} | ||
} | ||
|
||
@Override | ||
public SAPropertyPluginPriority priority() { | ||
return SAPropertyPluginPriority.LOW; | ||
} | ||
|
||
} |
Oops, something went wrong.