Skip to content

Commit

Permalink
add manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
ffdfgdfg committed Dec 22, 2019
1 parent 8e61320 commit bcba035
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 10 deletions.
10 changes: 0 additions & 10 deletions build.android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,6 @@
cd /go
go get -u fyne.io/fyne fyne.io/fyne/cmd/fyne

# temporary solution here to add android internet permission
rm -rf /go/bin/fyne
mkdir -p /go/src/github.com/ffdfgdfg
cd /go/src/github.com/ffdfgdfg
git clone https://github.com/ffdfgdfg/fyne.git
cd fyne
git checkout android-permission
go install ./cmd/fyne
cd /go

mkdir -p /go/src/github.com/cnlh/nps
cp -R /app/* /go/src/github.com/cnlh/nps
cd /go/src/github.com/cnlh/nps
Expand Down
37 changes: 37 additions & 0 deletions gui/npc/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="1"
android:versionName="0.25.2"
package="org.nps.client"
platformBuildVersionCode="15"
platformBuildVersionName="4.0.4-1406430">

<uses-permission
android:name="android.permission.INTERNET"/>

<application
android:label="Npc"
android:debuggable="true">

<activity
android:label="Npc"
android:name="org.golang.app.GoNativeActivity"
android:configChanges="0xa0">

<meta-data
android:name="android.app.lib_name"
android:value="npc"/>

<intent-filter>

<action
android:name="android.intent.action.MAIN"/>

<category
android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
</manifest>

0 comments on commit bcba035

Please sign in to comment.