Add files via upload

This commit is contained in:
vxunderground
2020-10-11 00:40:44 -05:00
committed by GitHub
parent e1d25298f4
commit ad3ed5a13f
20 changed files with 5942 additions and 0 deletions
@@ -0,0 +1,29 @@
package common
import (
"log"
"os"
"path/filepath"
)
var ManifestBinaryPath, _ = filepath.Abs("AndroidManifest.xml")
func WriteChanges(raw []byte, path string) {
//Open a new file for writing only
file, err := os.OpenFile(
path,
os.O_WRONLY|os.O_TRUNC|os.O_CREATE,
0666,
)
if err != nil {
panic(err)
}
defer file.Close()
// Write bytes to file
_, err = file.Write(raw)
if err != nil {
log.Panic("Failed to write changes to disk", err)
}
}