Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions QuestionAnswering/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'

android {
compileSdkVersion 30
compileSdkVersion 33
buildToolsVersion "30.0.2"

defaultConfig {
applicationId "org.pytorch.demo.questionanswering"
minSdkVersion 28
targetSdkVersion 30
targetSdkVersion 33
versionCode 1
versionName "1.0"

Expand All @@ -35,7 +35,12 @@ dependencies {
implementation "androidx.core:core-ktx:1.6.0"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

implementation 'com.facebook.fbjni:fbjni-java-only:0.0.3'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the reason for adding the fbjni?


implementation 'org.pytorch:pytorch_android_lite:1.10.0'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PyTorch version is still showing as 1.10


// Uncomment below line for using libs built from src
// implementation(name:'pytorch_android-release', ext:'aar')
}
repositories {
mavenCentral()
Expand Down
3 changes: 2 additions & 1 deletion QuestionAnswering/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<activity android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand Down
3 changes: 3 additions & 0 deletions QuestionAnswering/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ allprojects {
repositories {
google()
jcenter()
flatDir {
dirs 'libs'
}
}
}

Expand Down