Compare commits

...

55 Commits
1.3 ... master

Author SHA1 Message Date
Michel Roux f6aea60ced Merge pull request 'chore(deps): update dependency com.android.tools.build:gradle to v8.4.0' (#24) from renovate/com.android.tools.build-gradle-8.x into master
apk / build (push) Successful in 1m24s Details
Reviewed-on: #24
2024-05-01 18:18:22 +00:00
Renovate Bot e2853c84f0 chore(deps): update dependency com.android.tools.build:gradle to v8.4.0
apk / build (push) Successful in 1m18s Details
2024-05-01 06:43:25 +00:00
Michel Roux 2fde435b96 Merge pull request 'chore(deps): update dependency com.android.tools.build:gradle to v8.3.2' (#23) from renovate/com.android.tools.build-gradle-8.x into master
apk / build (push) Successful in 1m30s Details
Reviewed-on: #23
2024-04-10 11:36:44 +00:00
Renovate Bot 50ac28aa34 chore(deps): update dependency com.android.tools.build:gradle to v8.3.2
apk / build (push) Successful in 1m36s Details
2024-04-10 06:40:58 +00:00
Michel Roux cce7e08fa9 Merge pull request 'chore(deps): update dependency gradle to v8.7' (#22) from renovate/gradle-8.x into master
apk / build (push) Successful in 1m47s Details
Reviewed-on: #22
2024-03-24 19:47:13 +00:00
Renovate Bot 211771d5df chore(deps): update dependency gradle to v8.7
apk / build (push) Successful in 1m31s Details
2024-03-23 06:53:56 +00:00
Michel Roux 8458b9cd7a Merge pull request 'chore(deps): update dependency com.android.tools.build:gradle to v8.3.1' (#21) from renovate/com.android.tools.build-gradle-8.x into master
apk / build (push) Successful in 1m18s Details
Reviewed-on: #21
2024-03-19 14:23:56 +00:00
Renovate Bot 740ec4cf27 chore(deps): update dependency com.android.tools.build:gradle to v8.3.1
apk / build (push) Successful in 1m34s Details
2024-03-19 06:34:17 +00:00
Michel Roux eb8a5bfd62 fix: 🩹 remove useless import
apk / build (push) Successful in 1m35s Details
2024-03-01 21:15:49 +01:00
Michel Roux cd939d2373 Merge pull request 'chore(deps): update dependency com.android.tools.build:gradle to v8.3.0' (#20) from renovate/com.android.tools.build-gradle-8.x into master
apk / build (push) Successful in 1m20s Details
Reviewed-on: #20
2024-03-01 08:25:19 +00:00
Renovate Bot 63f4ff2cdd chore(deps): update dependency com.android.tools.build:gradle to v8.3.0
apk / build (push) Successful in 1m20s Details
2024-03-01 06:59:37 +00:00
Michel Roux b5a17cee49 docs: 📈 add privacy policy to please Google
apk / build (push) Successful in 9m49s Details
2024-02-28 10:55:44 +01:00
Michel Roux d06ee09d25 fix: 🔖 wrong publication on appstore
apk / build (push) Successful in 1m30s Details
2024-02-28 09:58:41 +01:00
Michel Roux d274ad34f6 ci: 👷 migrate to akkuman release action
apk / build (push) Successful in 1m34s Details
2024-02-28 09:45:23 +01:00
Michel Roux 172b52240e chore: 🔖 update version
apk / build (push) Successful in 11m22s Details
2024-02-28 09:31:07 +01:00
Michel Roux d01bf358b4 chore: 🔥 this should be ignored
apk / build (push) Has been cancelled Details
2024-02-28 09:28:34 +01:00
Michel Roux 9b2a65312a refactor: 🔥 remove X support 2024-02-28 09:27:56 +01:00
Michel Roux 1c9dc4cca7 Merge pull request 'Update dependency gradle to v8.6' (#19) from renovate/gradle-8.x into master
apk / build (push) Successful in 15m4s Details
Reviewed-on: #19
2024-02-03 08:26:31 +00:00
Renovate Bot 79de9e20c1 Update dependency gradle to v8.6
apk / build (push) Successful in 13m45s Details
2024-02-03 06:56:15 +00:00
Michel Roux 90488e2ccf Merge pull request 'Update dependency com.android.tools.build:gradle to v8.2.2' (#18) from renovate/com.android.tools.build-gradle-8.x into master
apk / build (push) Successful in 2m21s Details
Reviewed-on: #18
2024-01-24 09:16:38 +00:00
Renovate Bot 6b7eec7c5e Update dependency com.android.tools.build:gradle to v8.2.2
apk / build (push) Successful in 2m5s Details
2024-01-24 06:50:12 +00:00
Michel Roux 1b64fdc4c8 Merge pull request 'Update dependency com.android.tools.build:gradle to v8.2.1' (#17) from renovate/com.android.tools.build-gradle-8.x into master
apk / build (push) Successful in 2m7s Details
Reviewed-on: #17
2024-01-04 07:48:35 +00:00
Renovate Bot 6ad72b0fe1 Update dependency com.android.tools.build:gradle to v8.2.1
apk / build (push) Successful in 2m40s Details
2024-01-04 06:46:15 +00:00
Michel Roux cb24bb3485 Merge pull request 'Update dependency org.jsoup:jsoup to v1.17.2' (#16) from renovate/org.jsoup-jsoup-1.x into master
apk / build (push) Successful in 2m44s Details
Reviewed-on: #16
2023-12-29 09:01:51 +00:00
Renovate Bot 24ef4333a3 Update dependency org.jsoup:jsoup to v1.17.2
apk / build (push) Successful in 12m1s Details
2023-12-29 06:53:12 +00:00
Michel Roux 42ad6be20b Merge pull request 'Update actions/setup-go action to v5' (#15) from renovate/actions-setup-go-5.x into master
apk / build (push) Successful in 1m42s Details
Reviewed-on: #15
2023-12-09 13:16:59 +00:00
Renovate Bot 08ff5b0f24 Update actions/setup-go action to v5
apk / build (push) Successful in 2m28s Details
2023-12-07 06:43:15 +00:00
Michel Roux 2ebbb35566 Merge pull request 'Update dependency com.android.tools.build:gradle to v8.2.0' (#14) from renovate/com.android.tools.build-gradle-8.x into master
apk / build (push) Successful in 5m53s Details
Reviewed-on: #14
2023-12-01 14:39:27 +00:00
Michel Roux 63dc17c91e Merge pull request 'Update dependency gradle to v8.5' (#13) from renovate/gradle-8.x into master
apk / build (push) Waiting to run Details
Reviewed-on: #13
2023-12-01 14:39:17 +00:00
Renovate Bot 36304b94a2 Update dependency com.android.tools.build:gradle to v8.2.0
apk / build (push) Successful in 1m52s Details
2023-12-01 06:31:39 +00:00
Renovate Bot 78180643c7 Update dependency gradle to v8.5
apk / build (push) Successful in 2m17s Details
2023-11-30 06:35:09 +00:00
Michel Roux 04b08a3cd9 Merge pull request 'Update dependency org.jsoup:jsoup to v1.17.1' (#12) from renovate/org.jsoup-jsoup-1.x into master
apk / build (push) Successful in 2m44s Details
Reviewed-on: #12
2023-11-27 19:30:49 +00:00
Renovate Bot 6f92687c69 Update dependency org.jsoup:jsoup to v1.17.1
apk / build (push) Successful in 13m8s Details
2023-11-27 06:50:10 +00:00
Michel Roux 7a68a1a5cd Merge pull request 'Update dependency com.android.tools.build:gradle to v8.1.4' (#11) from renovate/com.android.tools.build-gradle-8.x into master
apk / build (push) Successful in 2m41s Details
Reviewed-on: #11
2023-11-18 09:44:20 +00:00
Renovate Bot 447e6ad6e2 Update dependency com.android.tools.build:gradle to v8.1.4
apk / build (push) Successful in 2m34s Details
2023-11-17 06:29:47 +00:00
Michel Roux 8365f31c91 Merge pull request 'Update dependency com.android.tools.build:gradle to v8.1.3' (#10) from renovate/com.android.tools.build-gradle-8.x into master
apk / build (push) Successful in 2m5s Details
Reviewed-on: #10
2023-11-08 07:26:44 +00:00
Renovate Bot f90dc8da9d Update dependency com.android.tools.build:gradle to v8.1.3
apk / build (push) Successful in 2m1s Details
2023-11-08 06:39:00 +00:00
Michel Roux bdb95c008f Merge pull request 'Update dependency org.jsoup:jsoup to v1.16.2' (#9) from renovate/org.jsoup-jsoup-1.x into master
apk / build (push) Successful in 2m1s Details
Reviewed-on: #9
2023-10-22 08:01:22 +00:00
Renovate Bot 257044ad5f Update dependency org.jsoup:jsoup to v1.16.2
apk / build (push) Successful in 9m16s Details
2023-10-20 06:28:22 +00:00
Michel Roux 02b03bf95e Merge pull request 'Update dependency gradle to v8.4' (#8) from renovate/gradle-8.x into master
apk / build (push) Successful in 1m43s Details
Reviewed-on: #8
2023-10-05 07:22:06 +00:00
Renovate Bot bc7a6245c9 Update dependency gradle to v8.4
apk / build (push) Successful in 1m29s Details
2023-10-05 07:00:02 +00:00
Michel Roux 71d3dc48fb Merge pull request 'Update dependency com.android.tools.build:gradle to v8.1.2' (#7) from renovate/com.android.tools.build-gradle-8.x into master
apk / build (push) Successful in 2m39s Details
Reviewed-on: #7
2023-09-29 19:58:16 +00:00
Renovate Bot efbc9425d9 Update dependency com.android.tools.build:gradle to v8.1.2
apk / build (push) Successful in 1m35s Details
2023-09-29 06:43:16 +00:00
Michel Roux 10bde53b23 Update actions
apk / build (push) Successful in 1m51s Details
2023-09-29 00:29:15 +02:00
Michel Roux e6ba0e5d42 Merge pull request 'Update actions/setup-go action to v4' (#6) from renovate/actions-setup-go-4.x into master
apk / build (push) Successful in 1m38s Details
Reviewed-on: #6
2023-09-11 07:17:44 +00:00
Renovate Bot 3ae6dacba9 Update actions/setup-go action to v4
apk / build (push) Successful in 1m38s Details
2023-09-11 06:54:32 +00:00
Michel Roux 6eaceed5a9 Merge pull request 'Update dependency com.android.tools.build:gradle to v8.1.1' (#4) from renovate/com.android.tools.build-gradle-8.x into master
apk / build (push) Successful in 1m43s Details
Reviewed-on: #4
2023-08-22 07:33:47 +00:00
Renovate Bot 663a87f413 Update dependency com.android.tools.build:gradle to v8.1.1
apk / build (push) Successful in 1m35s Details
2023-08-22 06:41:22 +00:00
Michel Roux fe67eb4a87 Merge pull request 'Update dependency gradle to v8.3' (#3) from renovate/gradle-8.x into master
apk / build (push) Successful in 1m35s Details
Reviewed-on: #3
2023-08-18 07:03:31 +00:00
Renovate Bot accd971d5c Update dependency gradle to v8.3
apk / build (push) Successful in 1m42s Details
2023-08-18 06:57:14 +00:00
Michel Roux 778d7410df Small typos
apk / build (push) Successful in 1m45s Details
2023-07-31 22:59:11 +02:00
Michel Roux 485a6123d4 Increase versions
apk / build (push) Successful in 1m41s Details
2023-07-31 08:49:45 +02:00
Michel Roux 804c2a174c Fix twitter again 2023-07-31 08:49:17 +02:00
Michel Roux 1db3ad91cf Increase versions
apk / build (push) Successful in 1m49s Details
2023-07-30 23:45:18 +02:00
Michel Roux 3d421629d9 Fix twitter and pixiv
apk / build (push) Successful in 1m33s Details
2023-07-30 23:44:46 +02:00
12 changed files with 99 additions and 49 deletions

View File

@ -1,25 +1,21 @@
name: apk
on: [push]
on: [ push ]
jobs:
build:
runs-on: ubuntu-latest
container: mingc/android-build-box
steps:
- uses: actions/setup-go@v3
with:
go-version: '>=1.20.1'
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: curl -sSL -u "$USERNAME:$PASSWORD" -o ShareWithTitle/$STORE_FILE https://cloud.crystalyx.net/remote.php/dav/files/$USERNAME/Bordel/$STORE_FILE
- run: sh gradlew build bundleRelease assembleRelease --no-daemon
- uses: https://gitea.com/actions/release-action@main
if: startsWith(gitea.ref, 'refs/tags')
- run: sh gradlew lint build bundle assemble --no-daemon
- uses: akkuman/gitea-release-action@v1
if: gitea.ref_type == 'tag'
with:
files: |
ShareWithTitle/build/outputs/apk/debug/ShareWithTitle-debug.apk
ShareWithTitle/build/outputs/apk/release/ShareWithTitle-release.apk
ShareWithTitle/build/outputs/bundle/release/ShareWithTitle-release.aab
api_key: ${{ secrets.RELEASE_TOKEN }}
env:
USERNAME: ${{ secrets.USERNAME }}
PASSWORD: ${{ secrets.PASSWORD }}

39
POLICY.md Normal file
View File

@ -0,0 +1,39 @@
**Privacy Policy**
I built the Share with title app as an Open Source app. This is provided by me at no cost and is intended for use as is.
This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my app.
If you choose to use my app, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the app. I will not use or share your information with anyone except as described in this Privacy Policy.
The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which are accessible at Share with title unless otherwise defined in this Privacy Policy.
**Information Collection and Use**
For a better experience, while using our app, I may require you to provide us with certain personally identifiable information. The information that I request will be retained on your device and is not collected by me in any way.
**Log Data**
I want to inform you that whenever you use my app, in a case of an error in the app I collect data and information (through third-party products) on your phone called Log Data. This Log Data may include information such as your device Internet Protocol (“IP”) address, device name, operating system version, the configuration of the app when utilizing my app, the time and date of your use of the app, and other statistics.
**Security**
I value your trust in providing us your Personal Information, thus we are striving to use commercially acceptable means of protecting it. But remember that no method of transmission over the internet, or method of electronic storage is 100% secure and reliable, and I cannot guarantee its absolute security.
**Links to Other Sites**
This app may contain links to other sites. If you click on a third-party link, you will be directed to that site. Note that these external sites are not operated by me. Therefore, I strongly advise you to review the Privacy Policy of these websites. I have no control over and assume no responsibility for the content, privacy policies, or practices of any third-party sites or services.
**Childrens Privacy**
I do not knowingly collect personally identifiable information from children. I encourage all children to never submit any personally identifiable information through the Application and/or Services. I encourage parents and legal guardians to monitor their children's Internet usage and to help enforce this Policy by instructing their children never to provide personally identifiable information through the Application and/or Services without their permission. If you have reason to believe that a child has provided personally identifiable information to us through the Application and/or Services, please contact us. You must also be at least 16 years of age to consent to the processing of your personally identifiable information in your country (in some countries we may allow your parent or guardian to do so on your behalf).
**Changes to This Privacy Policy**
I may update our Privacy Policy from time to time. Thus, you are advised to review this page periodically for any changes. I will notify you of any changes by posting the new Privacy Policy on this page.
This policy is effective as of 2024-02-28
**Contact Us**
If you have any questions or suggestions about my Privacy Policy, do not hesitate to contact me at https://blog.crystalyx.net/contact/.

View File

@ -2,13 +2,13 @@ apply plugin: 'com.android.application'
android {
namespace 'net.crystalyx.sharewithtitle'
compileSdk 33
compileSdk 34
defaultConfig {
applicationId "net.crystalyx.sharewithtitle"
minSdkVersion 11
targetSdkVersion 33
versionCode 4
versionName "1.3"
targetSdkVersion 34
versionCode 9
versionName "1.7"
}
signingConfigs {
release {
@ -32,5 +32,5 @@ android {
}
dependencies {
implementation 'org.jsoup:jsoup:1.16.1'
implementation 'org.jsoup:jsoup:1.17.2'
}

View File

@ -1,4 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET" />
<application
android:icon="@mipmap/ic_launcher"
@ -14,4 +15,5 @@
</intent-filter>
</activity>
</application>
</manifest>

View File

@ -1,6 +1,8 @@
package net.crystalyx.sharewithtitle;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import java.io.IOException;
import java.net.URL;
@ -17,7 +19,25 @@ public class HttpThreadHandler implements Runnable {
@Override
public void run() {
try {
title = Jsoup.connect(url.toString()).get().title();
Document doc = Jsoup.connect(url.toString()).get();
String titleMeta = doc.title();
Element descriptionMeta = doc.select("meta[name=description]").first();
Element titleElement = doc.select("meta[property=og:title]").first();
Element descriptionElement = doc.select("meta[property=og:description]").first();
if (titleElement != null) {
title = titleElement.attr("content");
if (descriptionElement != null) {
title += "\n" + descriptionElement.attr("content");
} else if (descriptionMeta != null) {
title += "\n" + descriptionMeta.attr("content");
}
} else {
title = titleMeta;
if (descriptionMeta != null) {
title += "\n" + descriptionMeta.attr("content");
}
}
} catch (IOException e) {
errorMessage = e.getMessage();
}

View File

@ -5,7 +5,7 @@ import android.content.Intent;
import android.os.Bundle;
import android.widget.Toast;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URL;
public class MainActivity extends Activity {
@ -25,16 +25,16 @@ public class MainActivity extends Activity {
}
private void handleUrl(String textUrl) {
URL url;
URL originalUrl;
try {
url = new URL(textUrl);
} catch (MalformedURLException e) {
originalUrl = new URI(textUrl).toURL();
} catch (Exception e) {
Toast.makeText(this, e.getMessage(), Toast.LENGTH_SHORT).show();
return;
}
HttpThreadHandler handler = new HttpThreadHandler(url);
HttpThreadHandler handler = new HttpThreadHandler(originalUrl);
Thread job = new Thread(handler);
job.start();
@ -50,7 +50,7 @@ public class MainActivity extends Activity {
if (title != null) {
Intent sharingIntent = new Intent(Intent.ACTION_SEND);
sharingIntent.setType("text/plain");
sharingIntent.putExtra(Intent.EXTRA_TEXT, title + "\n\n" + url);
sharingIntent.putExtra(Intent.EXTRA_TEXT, title + "\n\n" + originalUrl);
startActivity(Intent.createChooser(sharingIntent, "Share via"));
} else if (errorMessage != null) {
Toast.makeText(this, errorMessage, Toast.LENGTH_SHORT).show();

View File

@ -4,7 +4,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:8.1.0")
classpath("com.android.tools.build:gradle:8.4.0")
}
}

Binary file not shown.

View File

@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME

17
gradlew vendored
View File

@ -83,7 +83,8 @@ done
# This is normally unused
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
@ -144,7 +145,7 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
# shellcheck disable=SC2039,SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
@ -152,7 +153,7 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
# shellcheck disable=SC2039,SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
@ -201,11 +202,11 @@ fi
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Collect all arguments for the java command;
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
# shell script including quotes and variable substitutions, so put them in
# double quotes to make sure that they get re-expanded; and
# * put everything else in single quotes, so that it's not re-expanded.
# Collect all arguments for the java command:
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# and any embedded shellness will be escaped.
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
# treated as '${Hostname}' itself on the command line.
set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \

20
gradlew.bat vendored
View File

@ -43,11 +43,11 @@ set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
echo. 1>&2
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
@ -57,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto execute
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
echo. 1>&2
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail

View File

@ -1,8 +0,0 @@
## This file must *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.
#
# Location of the SDK. This is only used by Gradle.
# For customization when using a Version Control System, please read the
# header note.
#Sun Jul 30 19:06:21 CEST 2023
sdk.dir=/mnt/Eternia/AndroidSdk