mirror of
https://github.com/bitwarden/mobile
synced 2025-12-05 23:53:33 +00:00
Compare commits
6 Commits
bugfix/hel
...
v2024.5.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
689aa80833 | ||
|
|
2014150380 | ||
|
|
0a2a635f33 | ||
|
|
f379bf59ea | ||
|
|
d9c7d543cb | ||
|
|
c8d0db9f31 |
51
.github/workflows/release.yml
vendored
51
.github/workflows/release.yml
vendored
@@ -65,7 +65,6 @@ jobs:
|
|||||||
description: 'Deployment ${{ steps.version.outputs.version }} from branch ${{ steps.branch.outputs.branch-name }}'
|
description: 'Deployment ${{ steps.version.outputs.version }} from branch ${{ steps.branch.outputs.branch-name }}'
|
||||||
task: release
|
task: release
|
||||||
|
|
||||||
|
|
||||||
- name: Download all artifacts
|
- name: Download all artifacts
|
||||||
if: ${{ inputs.release_type != 'Dry Run' }}
|
if: ${{ inputs.release_type != 'Dry Run' }}
|
||||||
uses: dawidd6/action-download-artifact@09f2f74827fd3a8607589e5ad7f9398816f540fe # v3.1.4
|
uses: dawidd6/action-download-artifact@09f2f74827fd3a8607589e5ad7f9398816f540fe # v3.1.4
|
||||||
@@ -152,9 +151,7 @@ jobs:
|
|||||||
node-version: '16.x'
|
node-version: '16.x'
|
||||||
|
|
||||||
- name: Set up F-Droid server
|
- name: Set up F-Droid server
|
||||||
run: |
|
run: pip install git+https://gitlab.com/fdroid/fdroidserver.git
|
||||||
sudo apt-get -qq update
|
|
||||||
sudo apt-get -qqy install --no-install-recommends fdroidserver wget
|
|
||||||
|
|
||||||
- name: Set up Git credentials
|
- name: Set up Git credentials
|
||||||
env:
|
env:
|
||||||
@@ -167,9 +164,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Print environment
|
- name: Print environment
|
||||||
run: |
|
run: |
|
||||||
node --version
|
echo "Node Version: $(node --version)"
|
||||||
npm --version
|
echo "NPM Version: $(npm --version)"
|
||||||
git --version
|
echo "Git Version: $(git --version)"
|
||||||
|
echo "F-Droid Server Version: $(fdroid --version)"
|
||||||
echo "GitHub ref: $GITHUB_REF"
|
echo "GitHub ref: $GITHUB_REF"
|
||||||
echo "GitHub event: $GITHUB_EVENT"
|
echo "GitHub event: $GITHUB_EVENT"
|
||||||
|
|
||||||
@@ -194,27 +192,30 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
FDROID_STORE_KEYSTORE_PASSWORD: ${{ secrets.FDROID_STORE_KEYSTORE_PASSWORD }}
|
FDROID_STORE_KEYSTORE_PASSWORD: ${{ secrets.FDROID_STORE_KEYSTORE_PASSWORD }}
|
||||||
run: |
|
run: |
|
||||||
cd $GITHUB_WORKSPACE
|
# Create required directories.
|
||||||
mkdir dist
|
mkdir dist
|
||||||
cp CNAME ./dist
|
mkdir -p store/temp/fdroid
|
||||||
cd store
|
mkdir -p store/fdroid/repo
|
||||||
chmod 600 fdroid/config.py fdroid/keystore.jks
|
|
||||||
mkdir -p temp/fdroid
|
# Configure F-Droid server.
|
||||||
|
cp CNAME dist/
|
||||||
|
chmod 600 store/fdroid/config.yml store/fdroid/keystore.jks
|
||||||
TEMP_DIR="$GITHUB_WORKSPACE/store/temp/fdroid"
|
TEMP_DIR="$GITHUB_WORKSPACE/store/temp/fdroid"
|
||||||
cd fdroid
|
echo "keypass: $FDROID_STORE_KEYSTORE_PASSWORD" >> store/fdroid/config.yml
|
||||||
echo "keypass=\"$FDROID_STORE_KEYSTORE_PASSWORD\"" >>config.py
|
echo "keystorepass: $FDROID_STORE_KEYSTORE_PASSWORD" >> store/fdroid/config.yml
|
||||||
echo "keystorepass=\"$FDROID_STORE_KEYSTORE_PASSWORD\"" >>config.py
|
echo "local_copy_dir: $TEMP_DIR" >> store/fdroid/config.yml
|
||||||
echo "local_copy_dir=\"$TEMP_DIR\"" >>config.py
|
mv $GITHUB_WORKSPACE/com.x8bit.bitwarden-fdroid.apk store/fdroid/repo/
|
||||||
mkdir -p repo
|
|
||||||
mv $GITHUB_WORKSPACE/com.x8bit.bitwarden-fdroid.apk ./repo/
|
# Run update and deploy.
|
||||||
|
cd store/fdroid
|
||||||
fdroid update
|
fdroid update
|
||||||
fdroid server update
|
fdroid deploy
|
||||||
cd ..
|
cd ../..
|
||||||
rm -rf temp/fdroid/archive
|
|
||||||
mv -v temp/fdroid ../dist
|
# Move files for distribution.
|
||||||
cd fdroid
|
rm -rf store/temp/fdroid/archive
|
||||||
cp index.html btn.png qr.png ../../dist/fdroid
|
mv -v store/temp/fdroid dist
|
||||||
cd $GITHUB_WORKSPACE
|
cp store/fdroid/index.html store/fdroid/btn.png store/fdroid/qr.png dist/fdroid
|
||||||
|
|
||||||
- name: Deploy to gh-pages
|
- name: Deploy to gh-pages
|
||||||
if: ${{ inputs.release_type != 'Dry Run' }}
|
if: ${{ inputs.release_type != 'Dry Run' }}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
<meta-data android:name="com.samsung.android.sdk.multiwindow.penwindow.enable" android:value="true" />
|
<meta-data android:name="com.samsung.android.sdk.multiwindow.penwindow.enable" android:value="true" />
|
||||||
<!-- Support for LG "Dual Window" mode (for Android < 7.0 users) -->
|
<!-- Support for LG "Dual Window" mode (for Android < 7.0 users) -->
|
||||||
<meta-data android:name="com.lge.support.SPLIT_WINDOW" android:value="true" />
|
<meta-data android:name="com.lge.support.SPLIT_WINDOW" android:value="true" />
|
||||||
<!-- Declare exported activities manually so we can set LaunchMode using API dependant resource -->
|
<!-- Declare MainActivity manually so we can set LaunchMode using API dependant resource -->
|
||||||
<activity android:name="com.x8bit.bitwarden.MainActivity" android:configChanges="keyboard|keyboardHidden|navigation|orientation|screenSize|uiMode" android:exported="true" android:icon="@mipmap/ic_launcher" android:label="Bitwarden" android:launchMode="@integer/launchModeAPIlevel" android:theme="@style/LaunchTheme">
|
<activity android:name="com.x8bit.bitwarden.MainActivity" android:configChanges="keyboard|keyboardHidden|navigation|orientation|screenSize|uiMode" android:exported="true" android:icon="@mipmap/ic_launcher" android:label="Bitwarden" android:launchMode="@integer/launchModeAPIlevel" android:theme="@style/LaunchTheme">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
@@ -39,14 +39,6 @@
|
|||||||
<data android:mimeType="text/*" />
|
<data android:mimeType="text/*" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
<activity android:name="com.x8bit.bitwarden.WebAuthCallbackActivity" android:launchMode="@integer/webAuthCallbackLaunchMode" android:noHistory="true" android:exported="true">
|
|
||||||
<intent-filter>
|
|
||||||
<action android:name="android.intent.action.VIEW" />
|
|
||||||
<category android:name="android.intent.category.DEFAULT" />
|
|
||||||
<category android:name="android.intent.category.BROWSABLE" />
|
|
||||||
<data android:scheme="bitwarden" />
|
|
||||||
</intent-filter>
|
|
||||||
</activity>
|
|
||||||
</application>
|
</application>
|
||||||
<!-- Support for Xamarin.Essentials.Browser.OpenAsync (for Android > 11) -->
|
<!-- Support for Xamarin.Essentials.Browser.OpenAsync (for Android > 11) -->
|
||||||
<!-- Related docs: https://learn.microsoft.com/en-us/xamarin/essentials/open-browser?tabs=android -->
|
<!-- Related docs: https://learn.microsoft.com/en-us/xamarin/essentials/open-browser?tabs=android -->
|
||||||
|
|||||||
@@ -10,8 +10,7 @@ namespace Bit.Droid.Autofill
|
|||||||
{
|
{
|
||||||
[Activity(
|
[Activity(
|
||||||
NoHistory = true,
|
NoHistory = true,
|
||||||
LaunchMode = LaunchMode.SingleTop,
|
LaunchMode = LaunchMode.SingleTop)]
|
||||||
Exported = false)]
|
|
||||||
public class AutofillExternalSelectionActivity : MauiAppCompatActivity
|
public class AutofillExternalSelectionActivity : MauiAppCompatActivity
|
||||||
{
|
{
|
||||||
protected override void OnCreate(Bundle bundle)
|
protected override void OnCreate(Bundle bundle)
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<resources>
|
<resources>
|
||||||
<integer name="launchModeAPIlevel">0</integer>
|
<integer name="launchModeAPIlevel">0</integer>
|
||||||
<integer name="webAuthCallbackLaunchMode">1</integer>
|
|
||||||
</resources>
|
</resources>
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<resources>
|
<resources>
|
||||||
<integer name="launchModeAPIlevel">2</integer>
|
<integer name="launchModeAPIlevel">2</integer>
|
||||||
<integer name="webAuthCallbackLaunchMode">3</integer>
|
|
||||||
</resources>
|
</resources>
|
||||||
@@ -1,12 +1,17 @@
|
|||||||
using Android.App;
|
using Android.App;
|
||||||
using Android.Content.PM;
|
using Android.Content.PM;
|
||||||
using Android.OS;
|
using Android.OS;
|
||||||
using Android.Runtime;
|
|
||||||
using Bit.App.Droid.Utilities;
|
using Bit.App.Droid.Utilities;
|
||||||
|
|
||||||
namespace Bit.Droid
|
namespace Bit.Droid
|
||||||
{
|
{
|
||||||
[Register("com.x8bit.bitwarden.WebAuthCallbackActivity")]
|
[Activity(
|
||||||
|
NoHistory = true,
|
||||||
|
LaunchMode = LaunchMode.SingleTop,
|
||||||
|
Exported = true)]
|
||||||
|
[IntentFilter(new[] { Android.Content.Intent.ActionView },
|
||||||
|
Categories = new[] { Android.Content.Intent.CategoryDefault, Android.Content.Intent.CategoryBrowsable },
|
||||||
|
DataScheme = "bitwarden")]
|
||||||
public class WebAuthCallbackActivity : WebAuthenticatorCallbackActivity
|
public class WebAuthCallbackActivity : WebAuthenticatorCallbackActivity
|
||||||
{
|
{
|
||||||
protected override void OnCreate(Bundle savedInstanceState)
|
protected override void OnCreate(Bundle savedInstanceState)
|
||||||
|
|||||||
@@ -699,7 +699,7 @@ namespace Bit.iOS.Autofill
|
|||||||
{
|
{
|
||||||
var appOptions = new AppOptions { IosExtension = true };
|
var appOptions = new AppOptions { IosExtension = true };
|
||||||
var twoFactorPage = new TwoFactorPage(authingWithSso, appOptions);
|
var twoFactorPage = new TwoFactorPage(authingWithSso, appOptions);
|
||||||
var app = new App.App();
|
var app = new App.App(appOptions);
|
||||||
ThemeManager.SetTheme(app.Resources);
|
ThemeManager.SetTheme(app.Resources);
|
||||||
ThemeManager.ApplyResourcesTo(twoFactorPage);
|
ThemeManager.ApplyResourcesTo(twoFactorPage);
|
||||||
if (twoFactorPage.BindingContext is TwoFactorPageViewModel vm)
|
if (twoFactorPage.BindingContext is TwoFactorPageViewModel vm)
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
#!/usr/bin/env python3
|
|
||||||
|
|
||||||
repo_url = "https://mobileapp.bitwarden.com/fdroid/repo"
|
|
||||||
repo_name = "Bitwarden F-Droid Repo"
|
|
||||||
repo_icon = "fdroid-icon.png"
|
|
||||||
repo_description = """
|
|
||||||
F-Droid repo for Bitwarden.
|
|
||||||
"""
|
|
||||||
|
|
||||||
archive_older = 2
|
|
||||||
archive_url = "https://does.not.exist"
|
|
||||||
archive_name = "Bitwarden Archive Repo"
|
|
||||||
archive_icon = "fdroid-icon.png"
|
|
||||||
archive_description = """
|
|
||||||
F-Droid archive repo for Bitwarden.
|
|
||||||
"""
|
|
||||||
|
|
||||||
repo_keyalias = "bitwarden-Virtual-Machine"
|
|
||||||
keystore = "keystore.jks"
|
|
||||||
keydname = "CN=bitwarden-Virtual-Machine, OU=F-Droid"
|
|
||||||
18
store/fdroid/config.yml
Normal file
18
store/fdroid/config.yml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
repo_url: https://mobileapp.bitwarden.com/fdroid/repo
|
||||||
|
repo_name: Bitwarden F-Droid Repo
|
||||||
|
repo_icon: fdroid-icon.png
|
||||||
|
repo_description: >-
|
||||||
|
F-Droid repo for Bitwarden.
|
||||||
|
|
||||||
|
archive_older: 2
|
||||||
|
archive_url: https://does.not.exist/archive
|
||||||
|
archive_name: Bitwarden Archive Repo
|
||||||
|
archive_icon: fdroid-icon.png
|
||||||
|
archive_description: >-
|
||||||
|
F-Droid archive repo for Bitwarden.
|
||||||
|
|
||||||
|
repo_keyalias: bitwarden-Virtual-Machine
|
||||||
|
keystore: keystore.jks
|
||||||
|
keydname: CN=bitwarden-Virtual-Machine, OU=F-Droid
|
||||||
Reference in New Issue
Block a user