Skip to content

Commit

Permalink
Native Library support for QTI backend.
Browse files Browse the repository at this point in the history
1. Add native library namespace required for QTI backend.
2. Change gradle version to 7.2 to support native library tag.
  • Loading branch information
AasheeshT committed Jun 6, 2022
1 parent 9ae167a commit 0dfbe85
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion flutter/android/app/build.gradle
Expand Up @@ -44,7 +44,7 @@ android {
defaultConfig {
applicationId "org.mlcommons.android.mlperfbench"
minSdkVersion 16
targetSdkVersion 30
targetSdkVersion 31
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand Down
7 changes: 6 additions & 1 deletion flutter/android/app/src/main/AndroidManifest.xml
Expand Up @@ -7,9 +7,14 @@
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />


<application
android:label="MLPerf Mobile"
android:icon="@mipmap/ic_launcher">
<uses-native-library
android:name="libcdsprpc.so"
android:required="false"
/>
<activity
android:name=".MainActivity"
android:exported="true"
Expand All @@ -25,7 +30,7 @@
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
/>
<!-- Displays an Android View that continues showing the launch screen
Drawable until Flutter paints its first frame, then this splash
screen fades out. A splash screen is useful to avoid any visual
Expand Down
2 changes: 1 addition & 1 deletion flutter/android/build.gradle
Expand Up @@ -6,7 +6,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:4.1.0'
classpath 'com.android.tools.build:gradle:7.1.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand Down
2 changes: 1 addition & 1 deletion flutter/android/gradle/wrapper/gradle-wrapper.properties
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip

0 comments on commit 0dfbe85

Please sign in to comment.