feat!: add partial night & day theme support (#1818)

* feat!: partial night & day theme support
* feat!: prefix core resource values files with cdv_
This commit is contained in:
エリス
2025-07-07 22:31:54 +09:00
committed by GitHub
parent cab5c5b7ec
commit 60d2842024
12 changed files with 108 additions and 47 deletions
+4 -4
View File
@@ -276,17 +276,17 @@ describe('create', function () {
});
});
it('should interpolate the project name into strings.xml', () => {
it('should interpolate the project name into cdv_strings.xml', () => {
config_mock.name.and.returnValue('IncredibleApp');
return create.create(project_path, config_mock, {}, events_mock).then(() => {
expect(utils.replaceFileContents).toHaveBeenCalledWith(path.join(app_path, 'res', 'values', 'strings.xml'), /__NAME__/, 'IncredibleApp');
expect(utils.replaceFileContents).toHaveBeenCalledWith(path.join(app_path, 'res', 'values', 'cdv_strings.xml'), /__NAME__/, 'IncredibleApp');
});
});
it('should interpolate the escaped project name into strings.xml', () => {
it('should interpolate the escaped project name into cdv_strings.xml', () => {
config_mock.name.and.returnValue('<Incredible&App>');
return create.create(project_path, config_mock, {}, events_mock).then(() => {
expect(utils.replaceFileContents).toHaveBeenCalledWith(path.join(app_path, 'res', 'values', 'strings.xml'), /__NAME__/, '&lt;Incredible&amp;App&gt;');
expect(utils.replaceFileContents).toHaveBeenCalledWith(path.join(app_path, 'res', 'values', 'cdv_strings.xml'), /__NAME__/, '&lt;Incredible&amp;App&gt;');
});
});
+1 -1
View File
@@ -930,7 +930,7 @@ describe('prepare', () => {
locations: {
plugins: '/mock/plugins',
www: '/mock/www',
strings: '/mock/res/values/strings.xml'
strings: '/mock/res/values/cdv_strings.xml'
}
};