Bluesky app fork with some witchin' additions 馃挮
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at cope-settings-sync 80 lines 3.1 kB view raw
1diff --git a/android/build.gradle b/android/build.gradle 2index d9460ae..10e85c9 100644 3--- a/android/build.gradle 4+++ b/android/build.gradle 5@@ -22,12 +22,12 @@ apply plugin: 'com.android.library' 6 apply plugin: 'kotlin-android' 7 8 android { 9- compileSdkVersion 32 10+ compileSdkVersion 35 11 // buildToolsVersion safeExtGet('buildToolsVersion', '30.0.3') 12 13 defaultConfig { 14 minSdkVersion safeExtGet('minSdkVersion', "23") 15- targetSdkVersion safeExtGet('targetSdkVersion', "32") 16+ targetSdkVersion safeExtGet('targetSdkVersion', "35") 17 } 18 } 19 20diff --git a/android/src/main/java/com/assembless/reactnativematerialyou/RNMaterialYouModule.kt b/android/src/main/java/com/assembless/reactnativematerialyou/RNMaterialYouModule.kt 21index 2d4cbf9..d868561 100644 22--- a/android/src/main/java/com/assembless/reactnativematerialyou/RNMaterialYouModule.kt 23+++ b/android/src/main/java/com/assembless/reactnativematerialyou/RNMaterialYouModule.kt 24@@ -132,6 +132,26 @@ class RNMaterialYouModule(val reactContext: ReactApplicationContext) : ReactCont 25 colorMap.putArray("system_neutral1", system_neutral1); 26 colorMap.putArray("system_neutral2", system_neutral2); 27 28+ if (android.os.Build.VERSION.SDK_INT >= 35) { 29+ val system_error: WritableArray? = toWritableArray(arrayOf( 30+ R.color.system_error_0, 31+ R.color.system_error_10, 32+ R.color.system_error_50, 33+ R.color.system_error_100, 34+ R.color.system_error_200, 35+ R.color.system_error_300, 36+ R.color.system_error_400, 37+ R.color.system_error_500, 38+ R.color.system_error_600, 39+ R.color.system_error_700, 40+ R.color.system_error_800, 41+ R.color.system_error_900, 42+ R.color.system_error_1000 43+ ).map { colorToHex(it) }); 44+ 45+ colorMap.putArray("system_error", system_error); 46+ } 47+ 48 return colorMap; 49 } 50 51diff --git a/lib/types.d.ts b/lib/types.d.ts 52index 91d097f..e234851 100644 53--- a/lib/types.d.ts 54+++ b/lib/types.d.ts 55@@ -19,4 +19,9 @@ export declare type MaterialYouPalette = { 56 * Android API: [system_neutral2](https://developer.android.com/reference/android/R.color#system_neutral2_0) 57 */ 58 system_neutral2: string[]; 59+ /** 60+ * Android API: [system_error](https://developer.android.com/reference/android/R.color#system_error_0) 61+ * Only available on Android 14+ / API level 35+ 62+ */ 63+ system_error?: string[]; 64 }; 65diff --git a/src/types.ts b/src/types.ts 66index 6f7ad57..f3273c6 100644 67--- a/src/types.ts 68+++ b/src/types.ts 69@@ -18,5 +18,10 @@ export type MaterialYouPalette = { 70 /** 71 * Android API: [system_neutral2](https://developer.android.com/reference/android/R.color#system_neutral2_0) 72 */ 73- system_neutral2: string[] 74+ system_neutral2: string[], 75+ /** 76+ * Android API: [system_error](https://developer.android.com/reference/android/R.color#system_error_0) 77+ * Only available on Android 14+ / API level 35+ 78+ */ 79+ system_error?: string[] 80 }