Skip to content

Commit

Permalink
<upgrade> upgrade version 3.1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
TranHoaiHung committed Dec 11, 2023
1 parent d375fdc commit 308734d
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 23 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file.

## 3.1.9
- Update OMI core android to version 2.1.39
- Remove flag excludeFromRecents , taskAffinity in AndroidMainifest.
- Fix notification error when calling and shutting down the application.


## 3.1.8
- Update core android to version 2.1.27
- Update ios to version 1.6.34
Expand Down
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ You can refer <a href="https://github.com/VIHATTeam/OMICALL-Flutter-SDK/blob/mai
android:showOnLockScreen="true"
android:launchMode="singleTask"
android:largeHeap="true"
android:taskAffinity=""
android:excludeFromRecents="true"
android:alwaysRetainTaskState="true"
android:exported="true"
...... // Your config
Expand All @@ -117,9 +115,7 @@ You can refer <a href="https://github.com/VIHATTeam/OMICALL-Flutter-SDK/blob/mai
<action
android:name="com.omicall.sdk.CallingActivity"
android:launchMode="singleTask"
android:taskAffinity=""
android:largeHeap="true"
android:excludeFromRecents="true"
android:alwaysRetainTaskState="true"
/>
<category android:name="android.intent.category.DEFAULT" />
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ android {

dependencies {

api 'vn.vihat.omicall:omi-sdk:2.1.27'
api 'vn.vihat.omicall:omi-sdk:2.1.39'
implementation "androidx.security:security-crypto:1.1.0-alpha06"

implementation("androidx.work:work-runtime:2.8.1")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import io.flutter.plugin.common.PluginRegistry
import kotlinx.coroutines.*
import vn.vihat.omicall.omicallsdk.constants.*
import vn.vihat.omicall.omicallsdk.state.CallState
import vn.vihat.omicall.omicallsdk.video_call.FLLocalCameraFactory
import vn.vihat.omicall.omicallsdk.video_call.FLRemoteCameraFactory
import vn.vihat.omicall.omicallsdk.videoCall.FLLocalCameraFactory
import vn.vihat.omicall.omicallsdk.videoCall.FLRemoteCameraFactory
import vn.vihat.omicall.omisdk.OmiAccountListener
import vn.vihat.omicall.omisdk.OmiClient
import vn.vihat.omicall.omisdk.OmiListener
Expand Down Expand Up @@ -209,7 +209,6 @@ class OmicallsdkPlugin : FlutterPlugin, MethodCallHandler, ActivityAware,
Log.d("SDK", "onAttachedToEngine! ---- $applicationContext")

OmiClient.getInstance(applicationContext!!)
OmiClient.isAppReady = true;
OmiClient.getInstance(applicationContext!!).addCallStateListener(this)
OmiClient.getInstance(applicationContext!!).setDebug(false)
} catch(e: Throwable) {
Expand Down Expand Up @@ -572,16 +571,16 @@ class OmicallsdkPlugin : FlutterPlugin, MethodCallHandler, ActivityAware,
}

companion object {
var applicationContext: Context? = null
fun onDestroy() {
// OmiClient.instance.disconnect()
}

fun onResume() {
fun onResume(applicationContext: Context ) {
applicationContext?.let { context ->
if (!OmiClient.getInstance(context).isRegistering) {
OmiClient.autoRegister();
OmiClient.autoRegister(true);
}
OmiClient.isAppReady = true
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package vn.vihat.omicall.omicallsdk.video_call
package vn.vihat.omicall.omicallsdk.videoCall

import android.content.Context
import io.flutter.plugin.common.BinaryMessenger
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package vn.vihat.omicall.omicallsdk.video_call
package vn.vihat.omicall.omicallsdk.videoCall

import android.Manifest
import android.content.Context
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package vn.vihat.omicall.omicallsdk.video_call
package vn.vihat.omicall.omicallsdk.videoCall

import android.content.Context
import io.flutter.plugin.common.BinaryMessenger
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package vn.vihat.omicall.omicallsdk.video_call
package vn.vihat.omicall.omicallsdk.videoCall

import android.content.Context
import android.graphics.SurfaceTexture
Expand Down
4 changes: 0 additions & 4 deletions example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
android:showOnLockScreen="true"
android:launchMode="singleTask"
android:largeHeap="true"
android:taskAffinity=""
android:excludeFromRecents="true"
android:alwaysRetainTaskState="true"

>
Expand Down Expand Up @@ -64,9 +62,7 @@
<action
android:name="com.omicall.sdk.CallingActivity"
android:launchMode="singleTask"
android:taskAffinity=""
android:largeHeap="true"
android:excludeFromRecents="true"
android:alwaysRetainTaskState="true"
/>
<category android:name="android.intent.category.DEFAULT" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class MainActivity: FlutterActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
try {
OmicallsdkPlugin.applicationContext = this;
val callPermissions = arrayOf(
Manifest.permission.RECORD_AUDIO,
)
Expand All @@ -38,7 +37,7 @@ class MainActivity: FlutterActivity() {

override fun onResume(){
super.onResume()
OmicallsdkPlugin.onResume();
OmicallsdkPlugin.onResume(this);
}

fun isGrantedPermission(permission: String): Boolean {
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: omicall_flutter_plugin
description: OmiKit Flutter is wrapper SDK for OmiCall for Application easy integrate features of Omicall Like Call App2App/App2Phone, Video Call.
version: 3.1.8
version: 3.1.9
homepage: https://github.com/VIHATTeam/OMICALL-Flutter-SDK

environment:
sdk: '>=2.14.0 <3.0.0'
sdk: '>=2.14.0 <4.0.0'
flutter: ">=2.5.0"

dependencies:
Expand Down

0 comments on commit 308734d

Please sign in to comment.