github.com/pojntfx/hydrapp/hydrapp@v0.0.0-20240516002902-d08759d6ca9f/pkg/renderers/apk/activity.go (about)

     1  package apk
     2  
     3  import (
     4  	_ "embed"
     5  
     6  	"github.com/pojntfx/hydrapp/hydrapp/pkg/renderers"
     7  )
     8  
     9  //go:embed activity.java
    10  var activityTemplate string
    11  
    12  type activityData struct {
    13  	AppID string
    14  }
    15  
    16  func NewActivityRenderer(
    17  	appID string,
    18  ) renderers.Renderer {
    19  	return renderers.NewRenderer("MainActivity.java", activityTemplate, activityData{appID})
    20  }