Fix lint errors for native-audio. (#887)

`./gradlew lint` reports no issues.
This commit is contained in:
James Farrell
2022-11-30 15:20:16 -06:00
committed by GitHub
parent 8b5ca037cc
commit 93b96ece77
6 changed files with 15 additions and 9 deletions

View File

@@ -9,7 +9,7 @@ android {
defaultConfig {
applicationId 'com.example.nativeaudio'
minSdkVersion 23
targetSdkVersion 28
targetSdkVersion 33
}
buildTypes {
release {
@@ -25,8 +25,9 @@ android {
path 'src/main/cpp/CMakeLists.txt'
}
}
namespace 'com.example.nativeaudio'
}
dependencies {
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'androidx.appcompat:appcompat:1.0.0'
}

View File

@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.nativeaudio"
android:versionCode="1"
android:versionCode="1"
android:versionName="1.0">
<!-- RECORD_AUDIO is needed to create an audio recorder -->
@@ -17,7 +16,8 @@
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name">
<activity android:name=".NativeAudio"
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" />

View File

@@ -25,8 +25,8 @@ import android.content.res.AssetManager;
import android.media.AudioManager;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.ActivityCompat;
import androidx.annotation.NonNull;
import androidx.core.app.ActivityCompat;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;

View File

@@ -0,0 +1,2 @@
android.enableJetifier=true
android.useAndroidX=true

View File

@@ -13,7 +13,7 @@ android {
defaultConfig {
applicationId 'com.example.nativeaudio'
minSdkVersion 14
targetSdkVersion 28
targetSdkVersion 33
}
sourceSets {
main {
@@ -36,8 +36,9 @@ android {
path 'Android.mk'
}
}
namespace 'com.example.nativeaudio'
}
dependencies {
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'androidx.appcompat:appcompat:1.0.0'
}

View File

@@ -0,0 +1,2 @@
android.enableJetifier=true
android.useAndroidX=true