diff --git a/src/android/AndroidManifest.icons.json b/src/android/AndroidManifest.icons.json index 74c6736..273d680 100644 --- a/src/android/AndroidManifest.icons.json +++ b/src/android/AndroidManifest.icons.json @@ -1,9 +1,16 @@ { "icons": [ - { "path": "res/mipmap-hdpi/ic_launcher.png" , "size": "72x72" }, - { "path": "res/mipmap-mdpi/ic_launcher.png" , "size": "48x48" }, - { "path": "res/mipmap-xhdpi/ic_launcher.png" , "size": "96x96" }, - { "path": "res/mipmap-xxhdpi/ic_launcher.png" , "size": "144x144" }, - { "path": "res/mipmap-xxxhdpi/ic_launcher.png" , "size": "192x192" } + { "path": "res/mipmap-ldpi/ic_launcher.png" , "size": "36x36" }, + { "path": "res/mipmap-ldpi/ic_launcher_round.png" , "size": "36x36" }, + { "path": "res/mipmap-mdpi/ic_launcher.png" , "size": "48x48" }, + { "path": "res/mipmap-mdpi/ic_launcher_round.png" , "size": "48x48" }, + { "path": "res/mipmap-hdpi/ic_launcher.png" , "size": "72x72" }, + { "path": "res/mipmap-hdpi/ic_launcher_round.png" , "size": "72x72" }, + { "path": "res/mipmap-xhdpi/ic_launcher.png" , "size": "96x96" }, + { "path": "res/mipmap-xhdpi/ic_launcher_round.png" , "size": "96x96" }, + { "path": "res/mipmap-xxhdpi/ic_launcher.png" , "size": "144x144" }, + { "path": "res/mipmap-xxhdpi/ic_launcher_round.png" , "size": "144x144" }, + { "path": "res/mipmap-xxxhdpi/ic_launcher.png" , "size": "192x192" }, + { "path": "res/mipmap-xxxhdpi/ic_launcher_round.png" , "size": "192x192" } ] } diff --git a/src/android/generate-manifest-icons.specs.js b/src/android/generate-manifest-icons.specs.js index fdc748a..3e2bf4b 100644 --- a/src/android/generate-manifest-icons.specs.js +++ b/src/android/generate-manifest-icons.specs.js @@ -8,11 +8,18 @@ const sourceIcon = 'icon.png'; describe('generate-manifest-icons', () => { it('should be able to generate icons for the React Native manifest', () => { const files = [ + 'test/ReactNativeIconTest/android/app/src/main/res/mipmap-ldpi/ic_launcher.png', + 'test/ReactNativeIconTest/android/app/src/main/res/mipmap-ldpi/ic_launcher_round.png', 'test/ReactNativeIconTest/android/app/src/main/res/mipmap-hdpi/ic_launcher.png', + 'test/ReactNativeIconTest/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png', 'test/ReactNativeIconTest/android/app/src/main/res/mipmap-mdpi/ic_launcher.png', + 'test/ReactNativeIconTest/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png', 'test/ReactNativeIconTest/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png', + 'test/ReactNativeIconTest/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png', 'test/ReactNativeIconTest/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png', + 'test/ReactNativeIconTest/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png', 'test/ReactNativeIconTest/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png', + 'test/ReactNativeIconTest/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png', ]; // Delete all of the files we're expecting to create, then generate them. @@ -30,11 +37,18 @@ describe('generate-manifest-icons', () => { it('should be able to generate icons for the Cordova manifest', () => { const files = [ + 'test/CordovaApp/platforms/android/res/mipmap-ldpi/ic_launcher.png', + 'test/CordovaApp/platforms/android/res/mipmap-ldpi/ic_launcher_round.png', 'test/CordovaApp/platforms/android/res/mipmap-hdpi/ic_launcher.png', + 'test/CordovaApp/platforms/android/res/mipmap-hdpi/ic_launcher_round.png', 'test/CordovaApp/platforms/android/res/mipmap-mdpi/ic_launcher.png', + 'test/CordovaApp/platforms/android/res/mipmap-mdpi/ic_launcher_round.png', 'test/CordovaApp/platforms/android/res/mipmap-xhdpi/ic_launcher.png', + 'test/CordovaApp/platforms/android/res/mipmap-xhdpi/ic_launcher_round.png', 'test/CordovaApp/platforms/android/res/mipmap-xxhdpi/ic_launcher.png', + 'test/CordovaApp/platforms/android/res/mipmap-xxhdpi/ic_launcher_round.png', 'test/CordovaApp/platforms/android/res/mipmap-xxxhdpi/ic_launcher.png', + 'test/CordovaApp/platforms/android/res/mipmap-xxxhdpi/ic_launcher_round.png', ]; // Delete all of the files we're expecting to create, then generate them. @@ -52,11 +66,18 @@ describe('generate-manifest-icons', () => { it('should be able to generate icons for the Native manifest', () => { const files = [ + 'test/NativeApp/android/native_app/src/main/res/mipmap-ldpi/ic_launcher.png', + 'test/NativeApp/android/native_app/src/main/res/mipmap-ldpi/ic_launcher_round.png', 'test/NativeApp/android/native_app/src/main/res/mipmap-hdpi/ic_launcher.png', + 'test/NativeApp/android/native_app/src/main/res/mipmap-hdpi/ic_launcher_round.png', 'test/NativeApp/android/native_app/src/main/res/mipmap-mdpi/ic_launcher.png', + 'test/NativeApp/android/native_app/src/main/res/mipmap-mdpi/ic_launcher_round.png', 'test/NativeApp/android/native_app/src/main/res/mipmap-xhdpi/ic_launcher.png', + 'test/NativeApp/android/native_app/src/main/res/mipmap-xhdpi/ic_launcher_round.png', 'test/NativeApp/android/native_app/src/main/res/mipmap-xxhdpi/ic_launcher.png', + 'test/NativeApp/android/native_app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png', 'test/NativeApp/android/native_app/src/main/res/mipmap-xxxhdpi/ic_launcher.png', + 'test/NativeApp/android/native_app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png', ]; // Delete all of the files we're expecting to create, then generate them. diff --git a/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-hdpi/ic_launcher.png b/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-hdpi/ic_launcher.png index 1c5017d..d4e69f2 100644 Binary files a/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-hdpi/ic_launcher.png and b/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-hdpi/ic_launcher.png differ diff --git a/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-hdpi/ic_launcher_round.png b/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 0000000..d4e69f2 Binary files /dev/null and b/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-ldpi/ic_launcher.png b/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-ldpi/ic_launcher.png new file mode 100644 index 0000000..8635b16 Binary files /dev/null and b/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-ldpi/ic_launcher.png differ diff --git a/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-ldpi/ic_launcher_round.png b/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-ldpi/ic_launcher_round.png new file mode 100644 index 0000000..8635b16 Binary files /dev/null and b/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-ldpi/ic_launcher_round.png differ diff --git a/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-mdpi/ic_launcher.png b/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-mdpi/ic_launcher.png index 3114873..d6fb663 100644 Binary files a/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-mdpi/ic_launcher.png and b/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-mdpi/ic_launcher.png differ diff --git a/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-mdpi/ic_launcher_round.png b/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 0000000..d6fb663 Binary files /dev/null and b/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-xhdpi/ic_launcher.png b/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-xhdpi/ic_launcher.png index 798fa64..4984ebc 100644 Binary files a/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-xhdpi/ic_launcher.png and b/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-xhdpi/ic_launcher_round.png b/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 0000000..4984ebc Binary files /dev/null and b/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-xxhdpi/ic_launcher.png b/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-xxhdpi/ic_launcher.png index 45d23ed..716b591 100644 Binary files a/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-xxhdpi/ic_launcher.png and b/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-xxhdpi/ic_launcher_round.png b/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 0000000..716b591 Binary files /dev/null and b/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-xxxhdpi/ic_launcher.png b/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-xxxhdpi/ic_launcher.png index f2852e0..3d4da3d 100644 Binary files a/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-xxxhdpi/ic_launcher.png and b/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-xxxhdpi/ic_launcher_round.png b/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 0000000..3d4da3d Binary files /dev/null and b/test/CordovaApp/platforms/android/CordovaLib/res/mipmap-xxxhdpi/ic_launcher_round.png differ