Skip to content

Commit

Permalink
- reference resources matching build 966
Browse files Browse the repository at this point in the history
  • Loading branch information
jockeeth committed Jul 11, 2023
1 parent e3ea9e6 commit 9bc04f8
Show file tree
Hide file tree
Showing 33 changed files with 2,387 additions and 2,355 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.4.2'
classpath 'com.android.tools.build:gradle:8.0.2'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10'

// NOTE: Do not place your application dependencies here; they belong
Expand Down
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ org.gradle.workers.max=16

android.defaults.buildfeatures.renderscript = false
android.defaults.buildfeatures.shaders = false
android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Fri Apr 22 21:25:44 MSK 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
7 changes: 6 additions & 1 deletion poweramp_api_example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.application'

android {
compileSdk 33
buildToolsVersion '33.0.0'
buildToolsVersion '34.0.0'

defaultConfig {
applicationId "com.maxmpz.poweramp.apiexample"
Expand All @@ -22,6 +22,11 @@ android {
targetCompatibility JavaVersion.VERSION_11
}
namespace 'com.maxmpz.poweramp.apiexample'
dependenciesInfo {
includeInApk true
includeInBundle true
}
ndkVersion ndkVersion
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,20 @@ public class APIReceiver extends BroadcastReceiver {
private static final String TAG = "APIReceiver";

@Override
public void onReceive(Context context, Intent intent) {
String action = intent.getAction();
if(action != null) {
public void onReceive(final Context context, final Intent intent) {
final String action = intent.getAction();
if(null != action) {
switch(action) {
case PowerampAPI.ACTION_STATUS_CHANGED_EXPLICIT:
MainActivity.debugDumpIntent(TAG, "ACTION_STATUS_CHANGED_EXPLICIT", intent);
MainActivity.debugDumpIntent(APIReceiver.TAG, "ACTION_STATUS_CHANGED_EXPLICIT", intent);
break;

case PowerampAPI.ACTION_TRACK_CHANGED_EXPLICIT:
MainActivity.debugDumpIntent(TAG, "ACTION_TRACK_CHANGED_EXPLICIT", intent);
MainActivity.debugDumpIntent(APIReceiver.TAG, "ACTION_TRACK_CHANGED_EXPLICIT", intent);
break;

default:
MainActivity.debugDumpIntent(TAG, "UNKNOWN", intent);
MainActivity.debugDumpIntent(APIReceiver.TAG, "UNKNOWN", intent);
break;
}
}
Expand Down
Loading

0 comments on commit 9bc04f8

Please sign in to comment.