Skip to content

Commit

Permalink
- reference resources matching build 966
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmpz authored and jockeeth committed Jul 11, 2023
1 parent 882fd04 commit c5a1c65
Show file tree
Hide file tree
Showing 169 changed files with 3,304 additions and 780 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.2.1'
classpath 'com.android.tools.build:gradle:7.4.2'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10'

// NOTE: Do not place your application dependencies here; they belong
Expand Down
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.4.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
1 change: 1 addition & 0 deletions poweramp_api_example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ android {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
namespace 'com.maxmpz.poweramp.apiexample'
}


Expand Down
3 changes: 1 addition & 2 deletions poweramp_api_example/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.maxmpz.poweramp.apiexample"
android:versionCode="1"
android:versionCode="1"
android:versionName="1.0">

<application
Expand Down
1 change: 1 addition & 0 deletions poweramp_lyrics_plugin_example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
namespace 'com.maxmpz.poweramplyricspluginexample'
}

dependencies {
Expand Down
4 changes: 1 addition & 3 deletions poweramp_lyrics_plugin_example/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.maxmpz.poweramplyricspluginexample"
>
xmlns:tools="http://schemas.android.com/tools">

<application
android:allowBackup="false"
Expand Down
1 change: 1 addition & 0 deletions poweramp_provider_example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
namespace 'com.maxmpz.powerampproviderexample'
}

dependencies {
Expand Down
3 changes: 1 addition & 2 deletions poweramp_provider_example/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.maxmpz.powerampproviderexample">
xmlns:tools="http://schemas.android.com/tools">

<application
android:allowBackup="false"
Expand Down
29 changes: 8 additions & 21 deletions poweramp_skin_sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,33 +18,20 @@ android {
}
}

lintOptions {
disable "ResAuto", "MissingTranslation", "OnClick", "ExtraTranslation"

}

aaptOptions {
def localProps = new Properties()
localProps.load(rootProject.file("local.properties").newDataInputStream())
def paResources = localProps['poweramp.apk'] ?: "Poweramp-build-953-resources.zip"
println "Using $paResources PA resources"

additionalParameters "--emit-ids", "${projectDir}/stable-ids.txt",
"--package-id", "0x80",
"-I", "${projectDir}/../${paResources}"
if(project.file("stable-ids.txt").exists()) {
println "Got stable-ids OK"
additionalParameters "--stable-ids", "${projectDir}/stable-ids.txt"
} else {
println "WARNING: no stable-ids.txt specified"
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
namespace 'com.poweramp.v3.sampleskin'
androidResources {
additionalParameters '--emit-ids', "$projectDir/stable-ids.txt", '--package-id', '0x80', '-I', "$projectDir/../$aaptOptions.paResources"
}
lint {
disable 'ResAuto', 'MissingTranslation', 'OnClick', 'ExtraTranslation'
}
}

dependencies {
implementation "androidx.appcompat:appcompat-resources:1.4.1"
implementation "androidx.appcompat:appcompat-resources:1.6.1"
}
3 changes: 1 addition & 2 deletions poweramp_skin_sample/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.poweramp.v3.sampleskin">
xmlns:tools="http://schemas.android.com/tools">

<!-- Queries element to support new package visibility rules for target sdk=30 and Android 11:
https://developer.android.com/about/versions/11/privacy/package-visibility -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>

<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" android:color="?colorTextDisabled" />
<item android:state_enabled="false" android:color="?colorTextDisabledSecondary" />
<item android:color="?android:textColorPrimary" />
</selector>

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>

<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" android:color="#0000" />
<item android:color="?android:textColorSecondary" />
<item android:state_enabled="false" android:color="?colorTextDisabled" />
<item android:color="?android:textColorSecondary" /><!-- Also for state_locked -->
</selector>

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
<selector android:exitFadeDuration="250">
<item android:state_activated="true">
<bitmap android:src="@drawable/check_16dp" android:gravity="right|center_vertical" android:tint="?colorIconPrimary"/>
</item>
</item>
<item android:state_checked="true">
<bitmap android:src="@drawable/check_16dp" android:gravity="right|center_vertical" android:tint="?colorIconPrimary"/>
</item>
</selector>
</item>
</ripple>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>

<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="?colorInverse"
android:color="?colorPlaybackRipple"
>
<item>
<shape android:shape="oval">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>

<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="?colorInverse"
android:color="?colorPlaybackRipple"
>
<item>
<shape android:shape="oval">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>

<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="?colorInverse"
android:color="?colorPlaybackRipple"
>
<item>
<shape android:shape="oval">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!-- NOTE: not using fill scaling for the buttons, they pretty much never scaled and size is defined
by the appropriate style (e.g. TopSmallButton_size) -->
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="?colorInverse"
android:color="?colorPlaybackRipple"
>
<item>
<shape android:shape="oval">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>

<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="?colorInverse"
android:color="?colorPlaybackRipple"
android:effectColor="#0000"
>
<item>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>

<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="?colorInverse"
android:color="?colorPlaybackRipple"
android:effectColor="#0000"
>
<item>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!-- NOTE: not using fill scaling for the buttons, they pretty much never scaled and size is defined
by the appropriate style (e.g. TopSmallButton_size) -->
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="?colorInverse"
android:color="?colorPlaybackRipple"
>
<item>
<shape android:shape="oval">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>

<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="?colorInverse"
android:color="?colorPlaybackRipple"
>
<item>
<shape android:shape="oval">
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>

<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="?corners_large"/>
<solid android:color="?colorBgPrimaryStrictAlpha"/>
</shape>
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>

<!-- This one has non-transparent popup background -->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true">
<ripple android:color="?colorInverse">
<item android:id="@android:id/mask" android:drawable="@drawable/rounded_large" />
<item>
<shape>
<corners android:radius="?corners_large"/>
<solid android:color="?colorBgCheckedLight"/>
</shape>
</item>
</ripple>
</item>

<item>
<ripple android:color="?colorPrimary">
<item android:id="@android:id/mask" android:drawable="@drawable/rounded_large" />
<item>
<shape>
<corners android:radius="?corners_large"/>
<stroke android:color="?colorStroke" android:width="1.25dp"/>
<solid android:color="?colorBgPrimary"/>
</shape>
</item>
</ripple>
</item>
</selector>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2010-2022 Maksim Petrov
Copyright (C) 2010-2023 Maksim Petrov
Redistribution and use in source and binary forms, with or without
modification, are permitted for themes, skins, widgets, plugins, applications and other software
Expand All @@ -21,7 +21,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

<!-- NOTE: can't change size of drawable, thus, emulating bolder hole when pressed with invisile (#0000) stroke.
Also, width/height=3dp defines min size for appropriate axis. -->
<selector xmlns:android="http://schemas.android.com/apk/res/android"
<selector xmlns:android="http://schemas.android.com/apk/res/android" xmlns:w="http://schemas.android.com/apk/res-auto"
android:exitFadeDuration="300"
>
<item android:state_enabled="false">
Expand All @@ -33,7 +33,17 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
<stroke android:color="#0000" android:width="0dp"/>
</shape>
</item>


<item w:state_locked="true">
<shape>
<size android:width="3dp" android:height="3dp"/>
<padding android:left="18dp" android:right="18dp" android:top="20dp" android:bottom="20dp"/>
<corners android:radius="3dp"/>
<solid android:color="?colorKnobHoleDisabled"/>
<stroke android:color="#0000" android:width="0dp"/>
</shape>
</item>

<item android:state_pressed="true">
<shape>
<size android:width="3dp" android:height="3dp"/>
Expand Down
Loading

0 comments on commit c5a1c65

Please sign in to comment.