Skip to content

Commit 0e20e57

Browse files
committed
🧹 Cleanup
1 parent d41dd79 commit 0e20e57

File tree

8 files changed

+29
-3
lines changed

8 files changed

+29
-3
lines changed

CheckIP.Mobile/Xamarin/._.DS_Store

-4 KB
Binary file not shown.

CheckIP.Mobile/Xamarin/._.vs

-4 KB
Binary file not shown.
-4 KB
Binary file not shown.
-4 KB
Binary file not shown.

CheckIP.Mobile/Xamarin/CheckIPApp/CheckIPApp.Android/Properties/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="dev.valnoxy.checkip" android:installLocation="auto">
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="2" android:versionName="1.0" package="dev.valnoxy.checkip" android:installLocation="auto">
33
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="31" />
44
<application android:label="CheckIP" android:theme="@style/MainTheme" android:icon="@mipmap/launcher_foreground"></application>
55
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

CheckIP.Mobile/Xamarin/CheckIPApp/CheckIPApp.Android/Resources/Resource.designer.cs

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CheckIP.Mobile/Xamarin/CheckIPApp/CheckIPApp/CheckIPApp.csproj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,11 @@
3838
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
3939
</EmbeddedResource>
4040
</ItemGroup>
41+
42+
<PropertyGroup Condition="$(TargetFramework.Contains('-android')) and '$(Configuration)' == 'Release'">
43+
<AndroidPackageFormat>aab</AndroidPackageFormat>
44+
<AndroidKeyStore>True</AndroidKeyStore>
45+
<AndroidSigningKeyStore>..\key.keystore</AndroidSigningKeyStore>
46+
<AndroidSigningKeyAlias>CheckIP</AndroidSigningKeyAlias>
47+
</PropertyGroup>
4148
</Project>

CheckIP.Mobile/Xamarin/build.bat

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
@echo off
2+
3+
:: Read content of file and write it to string
4+
set file=keystore.pw
5+
set content=
6+
for /f "delims=*" %%a in ('type %file%') do set content=%%a
7+
8+
msbuild -restore CheckIPApp\CheckIPApp.Android\CheckIPApp.Android.csproj ^
9+
-t:SignAndroidPackage ^
10+
-p:AndroidPackageFormat=aab ^
11+
-p:Configuration=Release ^
12+
-p:AndroidKeyStore=True ^
13+
-p:AndroidSigningKeyStore=C:\Users\jonas\Documents\GitHub\checkip\CheckIP.Mobile\Xamarin\key.keystore ^
14+
-p:AndroidSigningStorePass=%content% ^
15+
-p:AndroidSigningKeyAlias=CheckIP ^
16+
-p:AndroidSigningKeyPass=%content%
17+
18+
::dotnet publish -f:net6.0-android -c:Release /p:AndroidSigningKeyPass=%content% /p:AndroidSigningStorePass=%content%
19+
pause
20+

0 commit comments

Comments
 (0)