Bläddra i källkod

ionic android gradle

tama 1 år sedan
förälder
incheckning
66af8f0f56

+ 8 - 0
NexilisSampleCode/local.properties

@@ -0,0 +1,8 @@
+## This file must *NOT* be checked into Version Control Systems,
+# as it contains information specific to your local configuration.
+#
+# Location of the SDK. This is only used by Gradle.
+# For customization when using a Version Control System, please read the
+# header note.
+#Tue Jun 11 16:49:00 WIB 2024
+sdk.dir=/home/easysoft054/Android/Sdk

+ 3 - 3
NexilisSampleCodeIonic-Android/android/app/src/main/AndroidManifest.xml

@@ -1,5 +1,6 @@
 <?xml version='1.0' encoding='utf-8'?>
-<manifest xmlns:android="http://schemas.android.com/apk/res/android">
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:tools="http://schemas.android.com/tools">
 
     <!-- use Camera permission -->
      <uses-permission android:name="android.permission.CAMERA" />
@@ -37,7 +38,7 @@
     
     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
     <uses-permission android:name="android.permission.INTERNET" />
-    <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme" android:usesCleartextTraffic="true">
+    <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme" android:usesCleartextTraffic="true" tools:replace="android:usesCleartextTraffic,android:allowBackup">
         <activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode" android:exported="true" android:label="@string/title_activity_main" android:launchMode="singleTask" android:name=".MainActivity" android:theme="@style/AppTheme.NoActionBarLaunch">
             <intent-filter>
                 <action android:name="android.intent.action.MAIN" />
@@ -48,5 +49,4 @@
             <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths" />
         </provider>
     </application>
-    <uses-permission android:name="android.permission.INTERNET" />
 </manifest>

+ 1 - 1
NexilisSampleCodeIonic-Android/android/gradle/wrapper/gradle-wrapper.properties

@@ -1,6 +1,6 @@
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-all.zip
 networkTimeout=10000
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/dists

+ 8 - 0
NexilisSampleCodeIonic-Android/android/local.properties

@@ -0,0 +1,8 @@
+## This file must *NOT* be checked into Version Control Systems,
+# as it contains information specific to your local configuration.
+#
+# Location of the SDK. This is only used by Gradle.
+# For customization when using a Version Control System, please read the
+# header note.
+#Wed Jun 12 11:01:29 WIB 2024
+sdk.dir=C\:\\Users\\User\\AppData\\Local\\Android\\Sdk

+ 2 - 0
NexilisSampleCodeIonic-Android/ios/App/App/AppDelegate.swift

@@ -18,6 +18,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate, ConnectDelegate {
     func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
         // Override point for customization after application launch.
         _ = NativeCap.self
+        //FLOATING
+        APIS.connect(apiKey: "***REPLACE***WITH***YOUR***ACCOUNT***", delegate: self, showButton: false)
         return true
     }
 

+ 1 - 0
NexilisSampleCodeIonic-Android/ios/App/App/NativeCap.m

@@ -21,4 +21,5 @@ CAP_PLUGIN(NativeCap, "NativeCap",
            CAP_PLUGIN_METHOD(openScreenSharing, CAPPluginReturnPromise);
            CAP_PLUGIN_METHOD(openWhiteboard, CAPPluginReturnPromise);
            CAP_PLUGIN_METHOD(openProfile, CAPPluginReturnPromise);
+           CAP_PLUGIN_METHOD(openNotificationCenter, CAPPluginReturnPromise);
            )

+ 5 - 0
NexilisSampleCodeIonic-Android/ios/App/App/NativeCap.swift

@@ -84,4 +84,9 @@ public class NativeCap: CAPPlugin {
             APIS.openWhiteboard()
         }
     }
+    @objc func openNotificationCenter(_ call: CAPPluginCall) {
+        DispatchQueue.main.async {
+            APIS.openNotificationCenter()
+        }
+    }
 }

+ 1 - 1
NexilisSampleCodeIonic-iOS/android/app/build.gradle

@@ -54,7 +54,7 @@ dependencies {
   androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
   androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
   implementation project(':capacitor-cordova-android-plugins')
-  implementation('io.nexilis:nexilis-lite:2.2.113') {
+  implementation('***REPLACE***WITH***NEXILIS***VERSION***LIBRARY***') {
     transitive = true
   }
 }

+ 15 - 0
NexilisSampleCodeIonic-iOS/android/app/src/main/java/com/example/paliolitesamplecodeionic/NativePlugin.java

@@ -116,4 +116,19 @@ public class NativePlugin extends Plugin {
     ret.put("response", response);
     call.resolve(ret);
   }
+  @PluginMethod
+  public void openSecureFolder(PluginCall call) {
+    String response = API.openSecureFolder();
+    JSObject ret = new JSObject();
+    ret.put("response", response);
+    call.resolve(ret);
+  }
+
+  @PluginMethod
+  public void openNotificationCenter(PluginCall call) {
+    String response = API.openNotificationCenter();
+    JSObject ret = new JSObject();
+    ret.put("response", response);
+    call.resolve(ret);
+  }
 }

+ 1 - 1
NexilisSampleCodeIonic-iOS/android/gradle/wrapper/gradle-wrapper.properties

@@ -1,6 +1,6 @@
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-all.zip
 networkTimeout=10000
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/dists