diff --git a/app/build.gradle b/app/build.gradle index b42ee35..c4474ca 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -23,8 +23,8 @@ def twaManifest = [ applicationId: 'website.christine.xesite', hostName: 'christine.website', // The domain being opened in the TWA. launchUrl: '/', // The start path for the TWA. Must be relative to the domain. - name: 'christine.website', // The application name. - launcherName: 'christine.website', // The name shown on the Android Launcher. + name: "Xeblog", // The application name. + launcherName: 'Xeblog', // The name shown on the Android Launcher. themeColor: '#FFCBE4', // The color used for the status bar. navigationColor: '#FFCBE4', // The color used for the navigation bar. navigationColorDark: '#FFCBE4', // The color used for the dark navbar. @@ -54,8 +54,8 @@ android { applicationId "website.christine.xesite" minSdkVersion 21 targetSdkVersion 29 - versionCode 8 - versionName "1.1.1.1" + versionCode 9 + versionName "1.2.1.1" // The name for the application resValue "string", "appName", twaManifest.name @@ -211,4 +211,5 @@ dependencies { implementation 'androidx.constraintlayout:constraintlayout:2.0.1' implementation 'androidx.navigation:navigation-fragment-ktx:2.3.0' implementation 'androidx.navigation:navigation-ui-ktx:2.3.0' + implementation 'com.joaomgcd:taskerpluginlibrary:0.4.1' } diff --git a/app/src/main/java/website/christine/xesite/NewPostWidget.kt b/app/src/main/java/website/christine/xesite/NewPostWidget.kt index 0dc6169..67c226d 100644 --- a/app/src/main/java/website/christine/xesite/NewPostWidget.kt +++ b/app/src/main/java/website/christine/xesite/NewPostWidget.kt @@ -24,10 +24,12 @@ class NewPostWidget : AppWidgetProvider() { private lateinit var requestQueue: RequestQueue private fun userAgent(ctx: Context): String { - val pkgInfo = ctx.getPackageManager().getPackageInfo(ctx.packageName, 0) - - return ctx.packageName.plus("/").plus(pkgInfo.versionName) - .plus("(android; +https://christine.website/contact)") + return BuildConfig.APPLICATION_ID + .plus("/") + .plus(BuildConfig.VERSION_NAME) + .plus("(android; ") + .plus(BuildConfig.BUILD_TYPE) + .plus("; +https://christine.website/contact") } private fun notify(ctx: Context, newPost: NewPost) { diff --git a/app/src/main/res/raw/web_app_manifest.json b/app/src/main/res/raw/web_app_manifest.json index 09709c1..e9aa450 100644 --- a/app/src/main/res/raw/web_app_manifest.json +++ b/app/src/main/res/raw/web_app_manifest.json @@ -1,12 +1,12 @@ { - "name": "Christine Dodrill", - "short_name": "Christine", + "name": "Xe's Blog", + "short_name": "Xeblog", "theme_color": "#ffcbe4", "background_color": "#fa99ca", "display": "standalone", "scope": "/", "start_url": "/", - "description": "Blog and Resume for Christine Dodrill", + "description": "Blog and Resume for Xe", "orientation": "any", "icons": [ {