mirror of
https://github.com/android/ndk-samples
synced 2025-11-05 15:05:47 +08:00
Fix lint errors for native-audio. (#887)
`./gradlew lint` reports no issues.
This commit is contained in:
@@ -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'
|
||||
}
|
||||
|
||||
@@ -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" />
|
||||
|
||||
@@ -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;
|
||||
|
||||
2
native-audio/gradle.properties
Normal file
2
native-audio/gradle.properties
Normal file
@@ -0,0 +1,2 @@
|
||||
android.enableJetifier=true
|
||||
android.useAndroidX=true
|
||||
@@ -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'
|
||||
}
|
||||
|
||||
2
other-builds/ndkbuild/native-audio/gradle.properties
Normal file
2
other-builds/ndkbuild/native-audio/gradle.properties
Normal file
@@ -0,0 +1,2 @@
|
||||
android.enableJetifier=true
|
||||
android.useAndroidX=true
|
||||
Reference in New Issue
Block a user