Start phase 02 on Android security implementation
This commit is contained in:
@@ -9,6 +9,8 @@ const mailUi = fs.readFileSync(path.join(root, 'mail-ui.js'), 'utf8');
|
||||
const app = fs.readFileSync(path.join(root, 'app.js'), 'utf8');
|
||||
const transport = fs.readFileSync(path.join(root, 'android', 'app', 'src', 'main', 'java', 'studio', 'daybreak', 'mail', 'AndroidMailTransport.kt'), 'utf8');
|
||||
const mainActivity = fs.readFileSync(path.join(root, 'android', 'app', 'src', 'main', 'java', 'studio', 'daybreak', 'mail', 'MainActivity.java'), 'utf8');
|
||||
const packageJson = JSON.parse(fs.readFileSync(path.join(root, 'package.json'), 'utf8'));
|
||||
const packageLock = JSON.parse(fs.readFileSync(path.join(root, 'package-lock.json'), 'utf8'));
|
||||
|
||||
test('mobile layout removes desktop minimum width and provides a compact reader flow', () => {
|
||||
assert.match(styles, /min-width:320px/);
|
||||
@@ -44,3 +46,8 @@ test('Android mail transport supports verified implicit TLS and required STARTTL
|
||||
test('Capacitor mail plugin is registered before BridgeActivity creates the bridge', () => {
|
||||
assert.ok(mainActivity.indexOf('registerPlugin(EpMailPlugin.class)') < mainActivity.indexOf('super.onCreate(savedInstanceState)'));
|
||||
});
|
||||
|
||||
test('OpenPGP.js is pinned to the exact version in the lockfile pending security review', () => {
|
||||
assert.equal(packageJson.dependencies.openpgp, packageLock.packages['node_modules/openpgp'].version);
|
||||
assert.match(packageJson.dependencies.openpgp, /^\d+\.\d+\.\d+$/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user