Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Commit

Permalink
Added support for portrait layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Mayer committed Jan 19, 2022
1 parent 1def18d commit f25be74
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
6 changes: 0 additions & 6 deletions Macro Deck Client.Android/Assets/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,6 @@ function autoSize() {
var width = window.screen.width, height = window.screen.height;
var buttonSizeX, buttonSizeY;

if (rowsCount > columnsCount)
{
rowsCount = (divs.length / rows.length);
columnsCount = rows.length;

}
buttonSizeX = width / columnsCount;
buttonSizeY = height / rowsCount;
buttonSize = Math.min(buttonSizeX, buttonSizeY);
Expand Down
2 changes: 1 addition & 1 deletion Macro Deck Client.Android/Macro Deck Client.Android.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<AndroidSigningKeyAlias>SuchByte</AndroidSigningKeyAlias>
<AndroidSigningKeyPass>hugo1930</AndroidSigningKeyPass>
<EmbedAssembliesIntoApk>true</EmbedAssembliesIntoApk>
<AndroidPackageFormat>apk</AndroidPackageFormat>
<AndroidPackageFormat>aab</AndroidPackageFormat>
<AndroidUseAapt2>true</AndroidUseAapt2>
<AndroidCreatePackagePerAbi>false</AndroidCreatePackagePerAbi>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion Macro Deck Client.Android/Properties/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="210" android:versionName="2.1.0-beta" package="com.suchbyte.macrodeck" android:installLocation="auto">
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="211" android:versionName="2.1.1-beta" package="com.suchbyte.macrodeck" android:installLocation="auto">
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="30" />
<application android:label="Macro Deck" android:theme="@style/MainTheme" android:usesCleartextTraffic="true" android:icon="@mipmap/launcher_foreground"></application>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Expand Down
4 changes: 2 additions & 2 deletions Macro Deck Client/Macro Deck Client.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
<Version>2.1.0-beta</Version>
<Version>2.1.1-beta</Version>
<Authors>Manuel Mayer</Authors>
<ApplicationIcon>Macro Deck 2021.ico</ApplicationIcon>
<RootNamespace>SuchByte.MacroDeck</RootNamespace>
Expand Down

0 comments on commit f25be74

Please sign in to comment.