Skip to content

Commit

Permalink
chore: Refactor android to remove 24 from file name and create code i…
Browse files Browse the repository at this point in the history
…n formatted state
  • Loading branch information
github-actions committed Oct 21, 2024
1 parent c6128ef commit 853691a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scripts/fetch-icons/generators/generateAndroidIcons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const generateAndroidIcons = (outputDir: string, iconManifest: IconManife
* @param iconName The name of the icon.
* @returns The file name for the Android icon.
*/
export const getAndroidIconFileName = (iconName: string) => `ic_${toSnakeCase(iconName)}_24.xml`;
export const getAndroidIconFileName = (iconName: string) => `ic_${toSnakeCase(iconName)}.xml`;

/**
* Creates the contents of an xml file for an Android icon.
Expand Down
12 changes: 8 additions & 4 deletions scripts/fetch-icons/templates/android-icon.xml.template
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<vector android:height="24dp"
android:viewportHeight="1200" android:viewportWidth="1200"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="@android:color/black" android:pathData="{{svgPath}}"/>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="1200"
android:viewportHeight="1200">
<path
android:fillColor="@android:color/black"
android:pathData="{{svgPath}}" />
</vector>

0 comments on commit 853691a

Please sign in to comment.