mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2025-05-18 06:56:16 +08:00
Compare commits
7 Commits
v1.19.0-de
...
v1.19.0-de
Author | SHA1 | Date | |
---|---|---|---|
9bf5153e6b | |||
eb6d3cd64e | |||
8cda2c164d | |||
c900d09cf8 | |||
edc8ef4f44 | |||
9aeb156d92 | |||
8be07de373 |
2
.github/workflows/release-build.yml
vendored
2
.github/workflows/release-build.yml
vendored
@ -31,7 +31,7 @@ jobs:
|
||||
channel: "stable"
|
||||
|
||||
- name: Cache Node modules
|
||||
uses: actions/cache@v3
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
node_modules
|
||||
|
@ -18,9 +18,42 @@ module.exports = {
|
||||
[
|
||||
"@semantic-release/release-notes-generator",
|
||||
{
|
||||
"preset": "conventionalcommits",
|
||||
preset: "conventionalcommits",
|
||||
presetConfig: {
|
||||
types: [
|
||||
{ type: "feat", section: "Features" },
|
||||
{ type: "fix", section: "Bug Fixes" },
|
||||
{ type: "docs", section: "Documentation" },
|
||||
{ type: "style", section: "Styles" },
|
||||
{ type: "refactor", section: "Code Refactoring" },
|
||||
{ type: "perf", section: "Performance Improvements" },
|
||||
{ type: "test", section: "Tests" },
|
||||
{ type: "build", section: "Build System" },
|
||||
{ type: "ci", section: "Continuous Integration" },
|
||||
{ type: "chore", section: "Chores" },
|
||||
{ type: "revert", section: "Reverts" },
|
||||
]
|
||||
},
|
||||
writerOpts: {
|
||||
commitPartial: "* {{subject}} ([{{author.name}}]({{~@root.host}}/{{~@root.owner}}/{{~@root.repository}}/commit/{{hash}}))\n",
|
||||
transform: (commit, context) => {
|
||||
if (commit.author.name === "semantic-release-bot") return;
|
||||
const types = {
|
||||
feat: "Features",
|
||||
fix: "Bug Fixes",
|
||||
docs: "Documentation",
|
||||
style: "Styles",
|
||||
refactor: "Code Refactoring",
|
||||
perf: "Performance Improvements",
|
||||
test: "Tests",
|
||||
build: "Build System",
|
||||
ci: "Continuous Integration",
|
||||
chore: "Chores",
|
||||
revert: "Reverts",
|
||||
}
|
||||
commit.type = types[commit.type];
|
||||
return commit;
|
||||
},
|
||||
commitPartial: "* {{#if scope}}**{{scope}}:** {{/if}}{{subject}} ([{{author.name}}]({{~@root.host}}/{{~@root.owner}}/{{~@root.repository}}/commit/{{hash}}))\n",
|
||||
mainTemplate: `
|
||||
{{#each commitGroups}}
|
||||
{{#if title}}
|
||||
|
@ -36,6 +36,7 @@ class ManagerAPI {
|
||||
Patch? selectedPatch;
|
||||
BuildContext? ctx;
|
||||
bool isRooted = false;
|
||||
bool releaseBuild = false;
|
||||
bool suggestedAppVersionSelected = true;
|
||||
bool isDynamicThemeAvailable = false;
|
||||
String storedPatchesFile = '/selected-patches.json';
|
||||
@ -68,6 +69,9 @@ class ManagerAPI {
|
||||
(await getSdkVersion()) >= 31; // ANDROID_12_SDK_VERSION = 31
|
||||
storedPatchesFile =
|
||||
(await getApplicationDocumentsDirectory()).path + storedPatchesFile;
|
||||
if (kReleaseMode) {
|
||||
releaseBuild = !(await getCurrentManagerVersion()).contains('-dev');
|
||||
}
|
||||
|
||||
// Migrate to new API URL if not done yet as the old one is sunset.
|
||||
final bool hasMigrated = _prefs.getBool('migratedToNewApiUrl') ?? false;
|
||||
|
@ -34,6 +34,7 @@ class HomeViewModel extends BaseViewModel {
|
||||
final Toast _toast = locator<Toast>();
|
||||
final flutterLocalNotificationsPlugin = FlutterLocalNotificationsPlugin();
|
||||
bool showUpdatableApps = false;
|
||||
bool releaseBuild = false;
|
||||
List<PatchedApplication> patchedInstalledApps = [];
|
||||
String _currentManagerVersion = '';
|
||||
String _currentPatchesVersion = '';
|
||||
@ -127,6 +128,9 @@ class HomeViewModel extends BaseViewModel {
|
||||
}
|
||||
|
||||
Future<bool> hasManagerUpdates() async {
|
||||
if (!_managerAPI.releaseBuild) {
|
||||
return false;
|
||||
}
|
||||
_latestManagerVersion =
|
||||
await _managerAPI.getLatestManagerVersion() ?? _currentManagerVersion;
|
||||
|
||||
|
@ -17,6 +17,8 @@ class InstallerView extends StatelessWidget {
|
||||
onViewModelReady: (model) => model.initialize(context),
|
||||
viewModelBuilder: () => InstallerViewModel(),
|
||||
builder: (context, model, child) => PopScope(
|
||||
onPopInvoked: (bool didPop) => model.onWillPop(context),
|
||||
canPop: false,
|
||||
child: SafeArea(
|
||||
top: false,
|
||||
bottom: model.isPatching,
|
||||
@ -112,7 +114,6 @@ class InstallerView extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
onPopInvoked: (bool didPop) => model.onWillPop(context),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ class UpdateConfirmationSheet extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(left: 24.0, bottom: 12.0),
|
||||
padding: const EdgeInsets.only(top: 12.0, left: 24.0, bottom: 12.0),
|
||||
child: I18nText(
|
||||
'homeView.updateChangelogTitle',
|
||||
child: Text(
|
||||
|
@ -4,7 +4,7 @@ homepage: https://github.com/ReVanced/revanced-manager
|
||||
|
||||
publish_to: 'none'
|
||||
|
||||
version: 1.19.0-dev.4+101900004
|
||||
version: 1.19.0-dev.6+101900006
|
||||
|
||||
environment:
|
||||
sdk: '>=3.0.0 <4.0.0'
|
||||
|
Reference in New Issue
Block a user