Reduce Manifest duplication

bzip2
Graham 5 years ago
parent 11ef4b0227
commit 40702d9c35
  1. 5
      bundler/src/main/java/dev/openrs2/bundler/Bundler.kt

@ -136,7 +136,7 @@ class Bundler @Inject constructor(publicKeyTransformer: PublicKeyTransformer) {
) )
private val unsignedManifest = Manifest() private val unsignedManifest = Manifest()
private val signedManifest = Manifest() private val signedManifest: Manifest
private val APPLICATION_NAME = Attributes.Name("Application-Name") private val APPLICATION_NAME = Attributes.Name("Application-Name")
private val PERMISSIONS = Attributes.Name("Permissions") private val PERMISSIONS = Attributes.Name("Permissions")
@ -145,8 +145,7 @@ class Bundler @Inject constructor(publicKeyTransformer: PublicKeyTransformer) {
unsignedManifest.mainAttributes[APPLICATION_NAME] = "OpenRS2" unsignedManifest.mainAttributes[APPLICATION_NAME] = "OpenRS2"
unsignedManifest.mainAttributes[PERMISSIONS] = "sandbox" unsignedManifest.mainAttributes[PERMISSIONS] = "sandbox"
signedManifest.mainAttributes[MANIFEST_VERSION] = "1.0" signedManifest = Manifest(unsignedManifest)
signedManifest.mainAttributes[APPLICATION_NAME] = "OpenRS2"
signedManifest.mainAttributes[PERMISSIONS] = "all-permissions" signedManifest.mainAttributes[PERMISSIONS] = "all-permissions"
} }
} }

Loading…
Cancel
Save