Skip to content

Commit f1655f5

Browse files
committed
Reverted AndroidX dependencies to AndroidSupport v4 again
-Alow low-level API targets to work with the plugin with the latest updates from 1.0 to 1.3.
1 parent 633954a commit f1655f5

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.

UnitySpeechRecognizer/Assets/Plugins/SpeechRecognizer/Android/libs/core-1.3.1.aar.meta renamed to UnitySpeechRecognizer/Assets/Plugins/SpeechRecognizer/Android/libs/support-v4-24.1.1.aar.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitySpeechRecognizerPlugin/SpeechRecognizer/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ android {
2222
}
2323

2424
dependencies {
25+
implementation 'com.android.support:support-annotations:28.0.0'
26+
implementation 'com.android.support:support-compat:28.0.0'
2527
compileOnly files('./libs/classes.jar') // Avoid redundant Unity Player in final application APK
26-
implementation "androidx.core:core-ktx:1.3.1"
2728
testImplementation 'junit:junit:4.12'
2829
androidTestImplementation 'com.android.support.test:runner:1.0.2'
2930
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

UnitySpeechRecognizerPlugin/SpeechRecognizer/src/main/java/com/example/eric/unityspeechrecognizerplugin/SpeechRecognizerFragment.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
import android.speech.RecognitionListener;
1010
import android.speech.RecognizerIntent;
1111
import android.speech.SpeechRecognizer;
12+
import android.support.annotation.Nullable;
13+
import android.support.v4.app.ActivityCompat;
14+
import android.support.v4.content.ContextCompat;
1215
import android.util.Log;
1316

1417
import com.unity3d.player.UnityPlayer;
@@ -17,10 +20,6 @@
1720
import java.util.IllformedLocaleException;
1821
import java.util.Locale;
1922

20-
import androidx.annotation.Nullable;
21-
import androidx.core.app.ActivityCompat;
22-
import androidx.core.content.ContextCompat;
23-
2423
/**
2524
* Created by Eric on 27/03/2020.
2625
*/

0 commit comments

Comments
 (0)