-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
358 changed files
with
9,082 additions
and
3,990 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
. "$PSScriptRoot/../Common.ps1" | ||
|
||
Write-Host ""; | ||
Write-Host "*** Publishing Android of GooglePlay ..." -BackgroundColor Blue -ForegroundColor White; | ||
|
||
$projectDir = $PSScriptRoot | ||
|
||
|
||
#find the apk in current folder | ||
$apkFileData = Get-ChildItem -Path $projectDir -Filter *.apk | Select-Object -First 1; | ||
if ($apkFileData -eq $null) | ||
{ | ||
Write-Host "No apk file found in $projectDir" -ForegroundColor Red; | ||
exit; | ||
} | ||
$apkFile = $apkFileData.FullName; | ||
$apkVersionCode = (Get-Item $apkFile).Basename; | ||
$version = [version]::new($version.Major, $version.Minor, $apkVersionCode); | ||
$versionParam = $version.ToString(3); | ||
$versionTag="v$versionParam"; | ||
|
||
# prepare module folders | ||
$moduleDir = "$projectDir/apk/$versionTag"; | ||
$moduleDirLatest = "$projectDir/apk/latest"; | ||
$module_infoFile = "$moduleDir/VpnHoodClient-android.json"; | ||
$module_packageFile = "$moduleDir/VpnHoodClient-android.apk"; | ||
PrepareModuleFolder $moduleDir $moduleDirLatest; | ||
|
||
# Calcualted Path | ||
$module_infoFileName = $(Split-Path "$module_infoFile" -leaf); | ||
$module_packageFileName = $(Split-Path "$module_packageFile" -leaf); | ||
|
||
# publish info | ||
$json = @{ | ||
Version = $versionParam; | ||
UpdateInfoUrl = "https://github.com/vpnhood/VpnHood/releases/latest/download/$module_infoFileName"; | ||
PackageUrl = "https://github.com/vpnhood/VpnHood/releases/download/$versionTag/$module_packageFileName"; | ||
InstallationPageUrl = "https://github.com/vpnhood/VpnHood/wiki/Install-VpnHood-Client"; | ||
ReleaseDate = "$releaseDate"; | ||
DeprecatedVersion = "$deprecatedVersion"; | ||
NotificationDelay = "14.00:00:00"; | ||
}; | ||
$json | ConvertTo-Json | Out-File "$module_infoFile" -Encoding ASCII; | ||
|
||
# move the apk | ||
Move-Item -Path $apkFile -Destination $module_packageFile -Force; | ||
Copy-Item -path "$moduleDir/*" -Destination "$moduleDirLatest/" -Force -Recurse; | ||
|
||
# apk | ||
# Write-Host; | ||
# Write-Host "*** Updating Android apk of GooglePlay to $versionTag ..." -BackgroundColor Blue -ForegroundColor White; | ||
$latestVersion = (gh release list -R "vpnhood/vpnhood" --limit 1 --exclude-drafts --exclude-pre-releases | ForEach-Object { $_.Split()[0] }); | ||
gh release upload $versionTag $module_infoFile $module_packageFile --clobber | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"Version": "3.0.416", | ||
"BumpTime": "2023-08-19T22:56:27.8892522Z", | ||
"Version": "3.0.423", | ||
"BumpTime": "2023-09-28T00:25:33.5679063Z", | ||
"Prerelease": false, | ||
"DeprecatedVersion": "3.0.400" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 15 additions & 2 deletions
17
Samples/VpnHood.Samples.SimpleClient.Droid/Properties/AndroidManifest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,20 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.vpnhood.samples.simpleclient.droid" android:installLocation="auto"> | ||
<uses-sdk android:minSdkVersion="23" android:targetSdkVersion="33" /> | ||
<application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true"></application> | ||
<uses-feature android:name="android.software.leanback" android:required="false" /> | ||
<uses-feature android:name="android.hardware.touchscreen" android:required="false" /> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | ||
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" /> | ||
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" /> | ||
<application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true"></application> | ||
<queries> | ||
<intent> | ||
<action android:name="android.intent.action.VIEW" /> | ||
<data android:scheme="http" /> | ||
</intent> | ||
<intent> | ||
<action android:name="android.intent.action.VIEW" /> | ||
<data android:scheme="https" /> | ||
</intent> | ||
</queries> | ||
</manifest> |
2 changes: 1 addition & 1 deletion
2
Samples/VpnHood.Samples.SimpleClient.Droid/Resources/Resource.designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
using VpnHood.Client.App; | ||
using VpnHood.Client.Device; | ||
|
||
namespace VpnHood.Test; | ||
|
||
internal class TestAppProvider : IAppProvider | ||
{ | ||
public TestAppProvider(TestDeviceOptions? testDeviceOptions, Uri? updateInfoUrl = null) | ||
{ | ||
UpdateInfoUrl = updateInfoUrl; | ||
Device = TestHelper.CreateDevice(testDeviceOptions); | ||
UpdateInfoUrl = updateInfoUrl; | ||
} | ||
|
||
public IDevice Device { get; } | ||
public bool IsLogToConsoleSupported => true; | ||
public Uri? AdditionalUiUrl => null; | ||
public Uri? UpdateInfoUrl { get; } | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.