diff --git a/PyTorchDemoApp/app/build.gradle b/PyTorchDemoApp/app/build.gradle index 06bb95f4..c8d5ce2a 100644 --- a/PyTorchDemoApp/app/build.gradle +++ b/PyTorchDemoApp/app/build.gradle @@ -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" @@ -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') + } diff --git a/PyTorchDemoApp/app/src/main/AndroidManifest.xml b/PyTorchDemoApp/app/src/main/AndroidManifest.xml index 5512046a..e2ea8dd2 100644 --- a/PyTorchDemoApp/app/src/main/AndroidManifest.xml +++ b/PyTorchDemoApp/app/src/main/AndroidManifest.xml @@ -11,7 +11,8 @@ android:theme="@style/AppTheme.NoActionBar"> + android:label="@string/app_name" + android:exported="true"> diff --git a/PyTorchDemoApp/build.gradle b/PyTorchDemoApp/build.gradle index 462b7120..ada7ce84 100644 --- a/PyTorchDemoApp/build.gradle +++ b/PyTorchDemoApp/build.gradle @@ -13,7 +13,9 @@ allprojects { repositories { google() jcenter() - + flatDir{ + dirs 'libs' + } } }