Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

fix/PytorchDemo-App #288

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
13 changes: 9 additions & 4 deletions PyTorchDemoApp/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ android {
sourceCompatibility 1.8
targetCompatibility 1.8
}
compileSdkVersion 28
compileSdkVersion 33
defaultConfig {
applicationId "org.pytorch.demo"
minSdkVersion 21
targetSdkVersion 28
targetSdkVersion 33
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand All @@ -38,6 +38,11 @@ dependencies {
implementation "androidx.camera:camera-camera2:$camerax_version"
implementation 'com.google.android.material:material:1.0.0-beta01'

implementation 'org.pytorch:pytorch_android:1.6.0-SNAPSHOT'
implementation 'org.pytorch:pytorch_android_torchvision:1.6.0-SNAPSHOT'
implementation 'org.pytorch:pytorch_android:1.13.0-SNAPSHOT'
implementation 'org.pytorch:pytorch_android_torchvision:1.13.0-SNAPSHOT'

// Uncomment below lines for using libs from src build
// implementation(name: 'pytorch_android-release', ext:'aar')
// implementation(name: 'pytorch_android_torchvision-release', ext:'aar')

}
3 changes: 2 additions & 1 deletion PyTorchDemoApp/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
android:theme="@style/AppTheme.NoActionBar">
<activity
android:name=".WelcomeActivity"
android:label="@string/app_name">
android:label="@string/app_name"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
Expand Down
4 changes: 3 additions & 1 deletion PyTorchDemoApp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ allprojects {
repositories {
google()
jcenter()

flatDir{
dirs 'libs'
}
}
}

Expand Down