Ver Fonte

replace floating mode

tama há 9 meses atrás
pai
commit
8546c402ab

+ 2 - 1
NexilisSampleCodeFlutter-Android/android/app/src/main/java/com/example/paliolitesamplecodeflutter/MainActivity.java

@@ -58,7 +58,8 @@ public class MainActivity extends FlutterActivity {
          * 		You need to implement onSuccess(String NexilisUserID) & onFailed(String reasonCode) to handle the RESULT.
          *
          */
-        API.connect("***REPLACE***WITH***YOUR***APPLICATION***NAME***", "***REPLACE***WITH***YOUR***NEXILIS***ACCOUNT***", this, 0, new Callback() {
+        int nexilisButtonMode = 0;
+        API.connect("***REPLACE***WITH***YOUR***APPLICATION***NAME***", "***REPLACE***WITH***YOUR***NEXILIS***ACCOUNT***", this, nexilisButtonMode, new Callback() {
             @Override
             public void onSuccess(final String NexilisUserID) {
                 /**************************************

+ 2 - 1
NexilisSampleCodeIonic-Android/android/app/src/main/java/com/example/nexilissamplecodeionic/MainActivity.java

@@ -51,7 +51,8 @@ public class MainActivity extends BridgeActivity {
      * 		You need to implement onSuccess(String NexilisUserID) & onFailed(String reasonCode) to handle the RESULT.
      *
      */
-    API.connect("***REPLACE***WITH***YOUR***APPLICATION***NAME***", "***REPLACE***WITH***YOUR***NEXILIS***ACCOUNT***", this, 0, new Callback() {
+    int nexilisButtonMode = 0;
+    API.connect("***REPLACE***WITH***YOUR***APPLICATION***NAME***", "***REPLACE***WITH***YOUR***NEXILIS***ACCOUNT***", this, nexilisButtonMode, new Callback() {
       @Override
       public void onSuccess(final String NexilisUserID) {
         /**************************************

+ 2 - 1
NexilisSampleCodeReact-Android/android/app/src/main/java/com/paliolitesamplecode/MainActivity.java

@@ -79,7 +79,8 @@ public class MainActivity extends ReactActivity {
          *
          */
 
-        API.connect("***REPLACE***WITH***YOUR***APPLICATION***NAME***", "***REPLACE***WITH***YOUR***NEXILIS***ACCOUNT***", this, 0, new Callback() {
+        int nexilisButtonMode = 0;
+        API.connect("***REPLACE***WITH***YOUR***APPLICATION***NAME***", "***REPLACE***WITH***YOUR***NEXILIS***ACCOUNT***", this, nexilisButtonMode, new Callback() {
             @Override
             public void onSuccess(final String NexilisUserID) {
                 /**************************************

+ 9 - 0
main.py

@@ -1382,6 +1382,9 @@ def change(app_id: str, platform: str, mode: str, path_dest: str, features: dict
                     replaced = line
                     if app_id:
                         replaced = replaced.replace('***REPLACE***WITH***YOUR***APPLICATION***NAME***', app_id)
+                    f.write(replaced)
+                elif "int nexilisButtonMode" in line:
+                    replaced = line
                     if mode == "floating":
                         replaced = replaced.replace("0", "1")
                     f.write(replaced)
@@ -1585,6 +1588,9 @@ def change(app_id: str, platform: str, mode: str, path_dest: str, features: dict
                     replaced = line
                     if app_id:
                         replaced = replaced.replace('***REPLACE***WITH***YOUR***APPLICATION***NAME***', app_id)
+                    f.write(replaced)
+                elif "int nexilisButtonMode" in line:
+                    replaced = line
                     if mode == "floating":
                         replaced = replaced.replace("0", "1")
                     f.write(replaced)
@@ -1980,6 +1986,9 @@ def change(app_id: str, platform: str, mode: str, path_dest: str, features: dict
                     replaced = line
                     if app_id:
                         replaced = replaced.replace('***REPLACE***WITH***YOUR***APPLICATION***NAME***', app_id)
+                    f.write(replaced)
+                elif "int nexilisButtonMode" in line:
+                    replaced = line
                     if mode == "floating":
                         replaced = replaced.replace("0", "1")
                     f.write(replaced)