Skip to content

Commit f84b010

Browse files
authored
feat: add support for keyword blocking (#2)
Refs: FossifyOrg/Messages#99
1 parent 0e66a73 commit f84b010

39 files changed

+543
-1115
lines changed

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
3+
updates:
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"
8+
commit-message:
9+
prefix: "chore"
10+
prefix-development: "chore"
11+
include: "scope"

.github/workflows/pr.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: PR
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
7+
jobs:
8+
call-pr-workflow:
9+
uses: FossifyOrg/.github/.github/workflows/pr.yml@main
10+
with:
11+
test_task: ":library:testDebugUnitTest"
12+
run_detekt: false

.github/workflows/release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
release:
8+
name: Create release
9+
runs-on: ubuntu-latest
10+
11+
permissions:
12+
contents: write
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Get next version
21+
id: version
22+
uses: ietf-tools/semver-action@000ddb2ebacad350ff2a15382a344dc05ea4c0a4
23+
with:
24+
token: ${{ github.token }}
25+
branch: ${{ github.event.repository.default_branch }}
26+
noNewCommitBehavior: 'warn'
27+
noVersionBumpBehavior: 'warn'
28+
patchList: fix, bugfix, perf, refactor, test, tests, chore
29+
30+
- name: Create and push tag
31+
if: ${{ steps.version.outputs.nextStrict }}
32+
run: |
33+
set -euo pipefail
34+
git config user.name "fossifybot[bot]"
35+
git config user.email "212866877+fossifybot[bot]@users.noreply.github.com"
36+
new_version="${{ steps.version.outputs.nextStrict }}"
37+
echo "Creating tag: $new_version"
38+
git tag -a "$new_version" -m "$new_version"
39+
git push origin "$new_version"
40+
echo "Created and pushed tag: $new_version"

README.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
# Android SMS/MMS Sending Library
2-
3-
![Promo](https://raw.githubusercontent.com/klinker41/android-smsmms/master/android-messaging.png)
4-
5-
These are the APIs that Google has so far left out of the Android ecosystem for easily sending any type of message without digging through source code and what not.
6-
7-
If you've got a better way to do things, send me a pull request! The library was created specifically for [Sliding Messaging Pro](https://play.google.com/store/apps/details?id=com.klinker.android.messaging_donate&hl=en) and [EvolveSMS](https://play.google.com/store/apps/details?id=com.klinker.android.evolve_sms&hl=en) and some things work the way they do specifically for those apps.
8-
9-
It's now used in [Pulse](https://play.google.com/store/apps/details?id=xyz.klinker.messenger) as well.
10-
11-
---
12-
131
## Library Overview
142

153
Sending messages is very easy to do.
@@ -110,7 +98,7 @@ For full details on how to implement, please check out the sample application. I
11098
To include in your gradle project:
11199

112100
```groovy
113-
compile 'com.klinkerapps:android-smsmms:5.2.6'
101+
compile 'org.fossify:mmslib:1.0.0'
114102
```
115103

116104
---

android-messaging.png

-150 KB
Binary file not shown.

build.gradle

Lines changed: 0 additions & 19 deletions
This file was deleted.

build.gradle.kts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
buildscript {
2+
repositories {
3+
google()
4+
mavenCentral()
5+
}
6+
dependencies {
7+
classpath("com.android.tools.build:gradle:8.11.1")
8+
}
9+
}
10+
11+
allprojects {
12+
repositories {
13+
google()
14+
mavenCentral()
15+
maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots/") }
16+
}
17+
}
18+
19+
tasks.register<Delete>("clean") {
20+
delete(rootProject.layout.buildDirectory)
21+
}

gradle.properties

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
2+
org.gradle.parallel=true
3+
org.gradle.caching=true
4+
android.useAndroidX=true
5+
android.nonTransitiveRClass=true
6+
kotlin.code.style=official

gradle/wrapper/gradle-wrapper.jar

-7.23 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
#Tue Dec 30 08:21:22 CST 2014
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
46
zipStoreBase=GRADLE_USER_HOME
57
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip

0 commit comments

Comments
 (0)