xiongzhu 2 年之前
父節點
當前提交
640b57e9a2
共有 4 個文件被更改,包括 18 次插入6 次删除
  1. 二進制
      android/app/src/main/assets/cdvasset.manifest
  2. 3 3
      android/app/src/main/res/values/styles.xml
  3. 8 1
      jsconfig.json
  4. 7 2
      src/main.js

二進制
android/app/src/main/assets/cdvasset.manifest


+ 3 - 3
android/app/src/main/res/values/styles.xml

@@ -7,14 +7,14 @@
         <item name="colorPrimary">@color/colorPrimary</item>
         <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
         <item name="colorAccent">@color/colorAccent</item>
-        <item name="android:windowBackground">#121325</item>
+        <item name="android:windowBackground">#1C1C1C</item>
     </style>
 
     <style name="AppTheme.NoActionBar" parent="Theme.AppCompat.DayNight.NoActionBar">
         <item name="windowActionBar">false</item>
         <item name="windowNoTitle">true</item>
         <item name="android:background">@null</item>
-        <item name="android:windowBackground">#121325</item>
+        <item name="android:windowBackground">#1C1C1C</item>
     </style>
 
 
@@ -23,7 +23,7 @@
 <!--    </style>-->
     <style name="AppTheme.NoActionBarLaunch" parent="Theme.SplashScreen">
         <!-- Set the splash screen background, animated icon, and animation duration. -->
-        <item name="windowSplashScreenBackground">#121325</item>
+        <item name="windowSplashScreenBackground">#1C1C1C</item>
 
         <!-- Use windowSplashScreenAnimatedIcon to add either a drawable or an
              animated drawable. One of these is required. -->

+ 8 - 1
jsconfig.json

@@ -1 +1,8 @@
-{}
+{
+    "compilerOptions": {
+        "paths": {
+            "@/*": ["./src/*"]
+        }
+    },
+    "include": ["./src/**/*"]
+}

+ 7 - 2
src/main.js

@@ -172,8 +172,13 @@ const initAF = () => {
         .catch(e => {
             console.log('initSDK error: ', e)
         })
-    AppsFlyer.addListener(AFConstants.CONVERSION_CALLBACK, res => {
-        console.log('CONVERSION_CALLBACK:', res)
+    AppsFlyer.addListener(AFConstants.CONVERSION_CALLBACK, event => {
+        if (event.callbackName === AFConstants.onConversionDataSuccess) {
+            console.log('ConversionData: ', event.data)
+            if (event.data.invitor) {
+                localStorage.setItem('invitor', event.data.invitor)
+            }
+        }
     })
     AppsFlyer.addListener(AFConstants.OAOA_CALLBACK, res => {
         console.log('OAOA_CALLBACK: ', res)