Skip to content

Commit

Permalink
update vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
codeskyblue committed May 16, 2017
1 parent 332276f commit 5439149
Show file tree
Hide file tree
Showing 118 changed files with 26,809 additions and 173 deletions.
34 changes: 19 additions & 15 deletions Godeps/Godeps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

147 changes: 0 additions & 147 deletions apk.go

This file was deleted.

12 changes: 9 additions & 3 deletions httpstaticserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,14 @@ import (

"github.com/go-yaml/yaml"
"github.com/gorilla/mux"
"github.com/shogo82148/androidbinary/apk"
)

type ApkInfo struct {
PackageName string `json:"packageName"`
MainActivity string `json:"mainActivity"`
}

type IndexFileItem struct {
Path string
Info os.FileInfo
Expand Down Expand Up @@ -206,14 +212,14 @@ func (s *HTTPStaticServer) hInfoApk(w http.ResponseWriter, r *http.Request) {
http.Error(w, "Not a file", 403)
return
}
apk, err := NewApk(relPath)
apkf, err := apk.OpenFile(relPath)
if err != nil {
http.Error(w, err.Error(), 403)
return
}
ai := ApkInfo{}
ai.MainActivity, _ = apk.MainAcitivty()
ai.PackageName = apk.PackageName()
ai.MainActivity, _ = apkf.MainAcitivty()
ai.PackageName = apkf.PackageName()
data, _ := json.Marshal(ai)
w.Header().Set("Content-Type", "application/json")
w.Write(data)
Expand Down
58 changes: 58 additions & 0 deletions vendor/github.com/DHowett/go-plist/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions vendor/github.com/DHowett/go-plist/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5439149

Please sign in to comment.