ark-brighthustle / flutter_zoom_sdk

Zoom SDK from ZOOM ported to flutter as plugin with all necessary features and with Null Safety which is implementation by CodeSyncr
BSD 3-Clause "New" or "Revised" License
39 stars 84 forks source link

App Crashes on Release build in flutter_zoom_sdk: ^1.1.0+4 #93

Closed Manojdaiya1992 closed 1 year ago

Manojdaiya1992 commented 1 year ago

Hi @evilrat I create a prodguard_rules.pro file under android -> app My properties inside the file are

-keep class us.zoom.{*;} -keep class com.zipow.{;} -keep class us.zipow.*{;} -keep class org.webrtc.{;} -keep class us.google.protobuf.{;} -keep class com.google.crypto.tink.{;} -keep class androidx.security.crypto.{*;}

and my build.gradle under android -> app

def localProperties = new Properties() def localPropertiesFile = rootProject.file('local.properties') if (localPropertiesFile.exists()) { localPropertiesFile.withReader('UTF-8') { reader -> localProperties.load(reader) } }

def flutterRoot = localProperties.getProperty('flutter.sdk') if (flutterRoot == null) { throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") }

def flutterVersionCode = localProperties.getProperty('flutter.versionCode') if (flutterVersionCode == null) { flutterVersionCode = '1' }

def flutterVersionName = localProperties.getProperty('flutter.versionName') if (flutterVersionName == null) { flutterVersionName = '1.0' }

apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android { compileSdkVersion 32 ndkVersion flutter.ndkVersion

dependenciesInfo { // Disables dependency metadata when building APKs. includeInApk = false // Disables dependency metadata when building Android App Bundles. includeInBundle = false }

compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 }

kotlinOptions { jvmTarget = '1.8' }

sourceSets { main.java.srcDirs += 'src/main/kotlin' }

defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.example.flutter_zoom" // You can update the following values to match your application needs. // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration. minSdkVersion 21 targetSdkVersion 32 versionCode flutterVersionCode.toInteger() versionName flutterVersionName multiDexEnabled true

}

buildTypes { release { // TODO: Add your own signing config for the release build. // Signing with the debug keys for now, so flutter run --release works. minifyEnabled true shrinkResources true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' signingConfig signingConfigs.debug

}

} }

flutter { source '../..' }

dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" }

command i use to create build -> flutter build apk --no-shrink

What else i need to configure. My application is still crashing while joining the meeting

Manojdaiya1992 commented 1 year ago

flutter_zoom.zip

This is my project please check