labt 0.2.8

Lab-t Lightweight Android build tool
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use sailfish::TemplateOnce;

#[derive(TemplateOnce)]
#[template(path = "strings.xml", delimiter = '#')]
pub struct StringsRes {
    pub app_name: String,
    pub main_activity_title: String,
}

impl StringsRes {
    pub fn new(app_name: &str, main_activity_title: &str) -> StringsRes {
        StringsRes {
            app_name: String::from(app_name),
            main_activity_title: String::from(main_activity_title),
        }
    }
}