From b20ddc2cbfbe38580a1695a7bb52369e6594a8a5 Mon Sep 17 00:00:00 2001 From: lukki15 <50550773+lukki15@users.noreply.github.com> Date: Mon, 23 Dec 2024 22:19:13 +0000 Subject: [PATCH] style: :building_construction: replace generic flutter logo and integrate flutter_launcher_icons to generate the icons --- .github/workflows/android.yml | 8 +- README.md | 2 + android/.gitignore | 3 + android/app/src/main/AndroidManifest.xml | 2 +- .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin 544 -> 0 bytes .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin 442 -> 0 bytes .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 721 -> 0 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 1031 -> 0 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 1443 -> 0 bytes assets/icon/icon.png | Bin 0 -> 5499 bytes assets/icon/icon.svg | 96 ++++++++++++++++++ pubspec.lock | 48 +++++++++ pubspec.yaml | 6 ++ 13 files changed, 160 insertions(+), 5 deletions(-) delete mode 100644 android/app/src/main/res/mipmap-hdpi/ic_launcher.png delete mode 100644 android/app/src/main/res/mipmap-mdpi/ic_launcher.png delete mode 100644 android/app/src/main/res/mipmap-xhdpi/ic_launcher.png delete mode 100644 android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png delete mode 100644 android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png create mode 100644 assets/icon/icon.png create mode 100644 assets/icon/icon.svg diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index eb3276b..e402cdc 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -31,13 +31,13 @@ jobs: uses: actions/checkout@v4 - run: flutter pub get + - name: Generate launcher icons + run: dart run flutter_launcher_icons + - run: flutter build apk - - run: flutter build appbundle - name: Archive result uses: actions/upload-artifact@v4 with: name: android-target - path: | - build/app/outputs/flutter-apk/app-release.apk - build/app/outputs/bundle/release/app-release.aab + path: build/app/outputs/flutter-apk/app-release.apk diff --git a/README.md b/README.md index ea73c6a..89214cf 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Network Info App +![icon](assets/icon/icon.svg) + [![Android](https://github.com/lukki15/network_info_app/actions/workflows/android.yml/badge.svg)](https://github.com/lukki15/network_info_app/actions/workflows/android.yml) [![Linux](https://github.com/lukki15/network_info_app/actions/workflows/linux.yml/badge.svg)](https://github.com/lukki15/network_info_app/actions/workflows/linux.yml) diff --git a/android/.gitignore b/android/.gitignore index 55afd91..e44e92c 100644 --- a/android/.gitignore +++ b/android/.gitignore @@ -11,3 +11,6 @@ GeneratedPluginRegistrant.java key.properties **/*.keystore **/*.jks + +# icons are generated by flutter_launcher_icons +app/src/main/res/mipmap-* diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index f0d6ea3..bbccad7 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -2,7 +2,7 @@ + android:icon="@mipmap/launcher_icon"> P5D~Wn-+_Wa#27Xc zC?Zj|6r#X(-D3u$NCt}(Ms06KgJ4FxJVv{GM)!I~&n8Bnc94O7-Hd)cjDZswgC;Qs zO=b+9!WcT8F?0rF7!Uys2bs@gozCP?z~o%U|N3vA*22NaGQG zlg@K`O_XuxvZ&Ks^m&R!`&1=spLvfx7oGDKDwpwW`#iqdw@AL`7MR}m`rwr|mZgU`8P7SBkL78fFf!WnuYWm$5Z0 zNXhDbCv&49sM544K|?c)WrFfiZvCi9h0O)B3Pgg&ebxsLQ05GG~ AQ2+n{ diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png deleted file mode 100644 index 17987b79bb8a35cc66c3c1fd44f5a5526c1b78be..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 442 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA3?vioaBc-sk|nMYCBgY=CFO}lsSJ)O`AMk? zp1FzXsX?iUDV2pMQ*D5Xx&nMcT!A!W`0S9QKQy;}1Cl^CgaH=;G9cpY;r$Q>i*pfB zP2drbID<_#qf;rPZx^FqH)F_D#*k@@q03KywUtLX8Ua?`H+NMzkczFPK3lFz@i_kW%1NOn0|D2I9n9wzH8m|-tHjsw|9>@K=iMBhxvkv6m8Y-l zytQ?X=U+MF$@3 zt`~i=@j|6y)RWMK--}M|=T`o&^Ni>IoWKHEbBXz7?A@mgWoL>!*SXo`SZH-*HSdS+ yn*9;$7;m`l>wYBC5bq;=U}IMqLzqbYCidGC!)_gkIk_C@Uy!y&wkt5C($~2D>~)O*cj@FGjOCM)M>_ixfudOh)?xMu#Fs z#}Y=@YDTwOM)x{K_j*Q;dPdJ?Mz0n|pLRx{4n|)f>SXlmV)XB04CrSJn#dS5nK2lM zrZ9#~WelCp7&e13Y$jvaEXHskn$2V!!DN-nWS__6T*l;H&Fopn?A6HZ-6WRLFP=R` zqG+CE#d4|IbyAI+rJJ`&x9*T`+a=p|0O(+s{UBcyZdkhj=yS1>AirP+0R;mf2uMgM zC}@~JfByORAh4SyRgi&!(cja>F(l*O+nd+@4m$|6K6KDn_&uvCpV23&>G9HJp{xgg zoq1^2_p9@|WEo z*X_Uko@K)qYYv~>43eQGMdbiGbo>E~Q& zrYBH{QP^@Sti!`2)uG{irBBq@y*$B zi#&(U-*=fp74j)RyIw49+0MRPMRU)+a2r*PJ$L5roHt2$UjExCTZSbq%V!HeS7J$N zdG@vOZB4v_lF7Plrx+hxo7(fCV&}fHq)$ diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png deleted file mode 100644 index d5f1c8d34e7a88e3f88bea192c3a370d44689c3c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1031 zcmeAS@N?(olHy`uVBq!ia0vp^6F``Q8Ax83A=Cw=BuiW)N`mv#O3D+9QW+dm@{>{( zJaZG%Q-e|yQz{EjrrIztFa`(sgt!6~Yi|1%a`XoT0ojZ}lNrNjb9xjc(B0U1_% zz5^97Xt*%oq$rQy4?0GKNfJ44uvxI)gC`h-NZ|&0-7(qS@?b!5r36oQ}zyZrNO3 zMO=Or+<~>+A&uN&E!^Sl+>xE!QC-|oJv`ApDhqC^EWD|@=#J`=d#Xzxs4ah}w&Jnc z$|q_opQ^2TrnVZ0o~wh<3t%W&flvYGe#$xqda2bR_R zvPYgMcHgjZ5nSA^lJr%;<&0do;O^tDDh~=pIxA#coaCY>&N%M2^tq^U%3DB@ynvKo}b?yu-bFc-u0JHzced$sg7S3zqI(2 z#Km{dPr7I=pQ5>FuK#)QwK?Y`E`B?nP+}U)I#c1+FM*1kNvWG|a(TpksZQ3B@sD~b zpQ2)*V*TdwjFOtHvV|;OsiDqHi=6%)o4b!)x$)%9pGTsE z-JL={-Ffv+T87W(Xpooq<`r*VzWQcgBN$$`u}f>-ZQI1BB8ykN*=e4rIsJx9>z}*o zo~|9I;xof diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png deleted file mode 100644 index 4d6372eebdb28e45604e46eeda8dd24651419bc0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1443 zcmb`G{WsKk6vsdJTdFg%tJav9_E4vzrOaqkWF|A724Nly!y+?N9`YV6wZ}5(X(D_N(?!*n3`|_r0Hc?=PQw&*vnU?QTFY zB_MsH|!j$PP;I}?dppoE_gA(4uc!jV&0!l7_;&p2^pxNo>PEcNJv za5_RT$o2Mf!<+r?&EbHH6nMoTsDOa;mN(wv8RNsHpG)`^ymG-S5By8=l9iVXzN_eG%Xg2@Xeq76tTZ*dGh~Lo9vl;Zfs+W#BydUw zCkZ$o1LqWQO$FC9aKlLl*7x9^0q%0}$OMlp@Kk_jHXOjofdePND+j!A{q!8~Jn+s3 z?~~w@4?egS02}8NuulUA=L~QQfm;MzCGd)XhiftT;+zFO&JVyp2mBww?;QByS_1w! zrQlx%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git a/assets/icon/icon.png b/assets/icon/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..3e09aed246d4d4cca6859883c7ce313000a58ce2 GIT binary patch literal 5499 zcmaJ_XH-*7w?0Wo=vAbbPz=38L_z5tL+GKX0Ribvs)!_jQbUmn;=E|N&Q;G6t;+|2F|5#AH{?)WP-q<ej0nAL48@+5G#~5a71(T``5-S!xn8C``TN& zg>3Ix=FlIZp2Y&s?Fw>KByYO?M*;q}fzu{7u^X=zt#MT$ja<`^<3IO0lsfoUhO~mx~mw2i%fGaty z=B_^ejQ{uJ(fRQbAI*|t8YOICAhhhvT@JxS$HBz1i#^F$B@K2P?y*m`6pAqW`+<{< zAuk%_UkGm+ZhnirXAk|qHUDkgK4wxF7%c+CZPhe-@vKS z%xCrZS;xaynC8{kGT(ib%VV_Vi+r!uuUeJVuE+lFEsBIocHNm1s1z3G3oH4mV4~we z%PM^R`RNe8g?NHJ2rsDOba>&O_&c#<~Dc*E&2VY0Tfk{_DAIU_ox%R0oOrZ%( zxYrTC-`7sxes!!apvpW|1CQK$r%q9{g%s?SOLsnS3%C(?i@Ao(*-w{iO13F zk6cWIwGOyk&KUHYp6gsznYRm`sjd=`)`&g5yB;r7ElCG#e&~brayqlsJClN|^+7|? z7X}BQW<#ilSZLm5zdj4G)=J}<9bA^LE@RRQWr??gB3x| z=tE2JfVLu@389UVf-&RX&?IC100$=A;~*vQxV~xi2-c6^;Re`cL9ia6IW;ecxsEqq zuB#$I9YJ)aBrvAH2+;>mmHXWTX3NH%dAu!q+uT)|U2(!p4$z@rIpq%?{fSq!eOwH_ zbe~}um&4g;f>-=;6ijC zY-NWMe!kHdPMOOtioHqeoA zzjr!z0PClVj4iX-K68nF#|*pXCBWO`&O7-AvZz=3%rsi%NJyDT+l4|H`GQTWonds2 zeHnGu=iwfH1T;97fK8T~qD!;M&jtzHC;Wn2lO)|4n)enNz2M%0Mt8DRfjd^neb?+W zoiuI%dzskF9)N!2eKf>|ePwsiQ|^e5W~^G&jg(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NrVvuE)d*@^Jmw(DSNMWc!!H-hUu!V0?bHSvI-EaeSPMcMk}7J>eT5kPjLS9KP~f#m zvbB9j2So8;eiG@rZlU>xL$Bg2(mG-SIkR(;X4|< zeic6;lH^XPk;V4_*Nm8VfF$?S8YaBHjuIgH8Jtw?0yDPm{|LRFEHD9tmV4jQE-Q;- zL5n;Q`3`q3p;|)$R)iG&%-@)8&=LJbK zRqAgWXT~9u1bJ;&cut*&FHnf>!u7<~S!Nql!%G>503v!FjCg7U&ziV#vdCVZMdGO; z{H;et6N!AD-h9gv?ro6dC;bVR7+F}9%Bwa=$aed2a)9m|8^%Kjye>0=P`8!a%SDfOXh?gwUS+s&4zFMTrxE}?w;coMe0oY>w)T+wtJRkLy7 zB?;2{as$$XKr;c=PayhWLMW7gJISznv6bFNoS+FXZ-NyDO_3o1%A+>IVA@v zfR2vQL}aD2glfEKJ64+uR&!#8KB!=q^ovCUp3@VSv7OaWLbn zHE*Am5>LR%y!-t$>~joGOPpB?vvptf!ou_5EIUIP8y_fJYc{0tuENOVG4lF~RzfHK zNO3EFAfWN&tgDZPmVpv~zL3fYPod#(&oT$qDzDysAGE^w zpBt{2$v6n;IEPav4AHj#-!mPj_xHL@hjKZp`#<#mJ+Xp*=f?S8(|h23Ts1L3={M+N GWB&)^Xrt@^ literal 0 HcmV?d00001 diff --git a/assets/icon/icon.svg b/assets/icon/icon.svg new file mode 100644 index 0000000..b565aec --- /dev/null +++ b/assets/icon/icon.svg @@ -0,0 +1,96 @@ + + + + diff --git a/pubspec.lock b/pubspec.lock index e4f4f79..6bd3a46 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1,6 +1,14 @@ # Generated by pub # See https://dart.dev/tools/pub/glossary#lockfile packages: + archive: + dependency: transitive + description: + name: archive + sha256: "6199c74e3db4fbfbd04f66d739e72fe11c8a8957d5f219f1f4482dbde6420b5a" + url: "https://pub.dev" + source: hosted + version: "4.0.2" args: dependency: transitive description: @@ -33,6 +41,22 @@ packages: url: "https://pub.dev" source: hosted version: "1.3.0" + checked_yaml: + dependency: transitive + description: + name: checked_yaml + sha256: feb6bed21949061731a7a75fc5d2aa727cf160b91af9a3e464c5e3a32e28b5ff + url: "https://pub.dev" + source: hosted + version: "2.0.3" + cli_util: + dependency: transitive + description: + name: cli_util + sha256: ff6785f7e9e3c38ac98b2fb035701789de90154024a75b6cb926445e83197d1c + url: "https://pub.dev" + source: hosted + version: "0.4.2" clock: dependency: transitive description: @@ -118,6 +142,14 @@ packages: description: flutter source: sdk version: "0.0.0" + flutter_launcher_icons: + dependency: "direct dev" + description: + name: flutter_launcher_icons + sha256: "31cd0885738e87c72d6f055564d37fabcdacee743b396b78c7636c169cac64f5" + url: "https://pub.dev" + source: hosted + version: "0.14.2" flutter_lints: dependency: "direct dev" description: @@ -189,6 +221,14 @@ packages: url: "https://pub.dev" source: hosted version: "4.1.1" + image: + dependency: transitive + description: + name: image + sha256: "8346ad4b5173924b5ddddab782fc7d8a6300178c8b1dc427775405a01701c4a6" + url: "https://pub.dev" + source: hosted + version: "4.5.2" intl: dependency: transitive description: @@ -469,6 +509,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.8" + posix: + dependency: transitive + description: + name: posix + sha256: a0117dc2167805aa9125b82eee515cc891819bac2f538c83646d355b16f58b9a + url: "https://pub.dev" + source: hosted + version: "6.0.1" process_run: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 4926acf..aec2da4 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -20,6 +20,12 @@ dev_dependencies: flutter_test: sdk: flutter flutter_lints: ^5.0.0 + flutter_launcher_icons: "^0.14.2" flutter: uses-material-design: true + +flutter_launcher_icons: + android: "launcher_icon" + ios: false + image_path: "assets/icon/icon.png" \ No newline at end of file