Skip to content

Commit eb567b7

Browse files
author
qwe7002
committed
添加文件
0 parents  commit eb567b7

38 files changed

+2365
-0
lines changed

.gitignore

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
.DS_Store
5+
/build
6+
/captures
7+
8+
#idea
9+
.idea/
10+
11+
#libs
12+
libs
13+
14+
*.iws
15+
16+
# Built application files
17+
18+
*.apk
19+
20+
*.ap_
21+
22+
23+
24+
# Files for the Dalvik VM
25+
26+
*.dex
27+
28+
29+
# Java class files
30+
31+
*.class
32+
33+
34+
35+
# Generated files
36+
37+
bin/
38+
39+
gen/
40+
41+
42+
43+
# Gradle files
44+
45+
.gradle/
46+
47+
build/
48+
49+
/*/build/
50+
51+
52+
53+
# Local configuration file (sdk path, etc)
54+
55+
local.properties
56+
57+
58+
59+
# Proguard folder generated by Eclipse
60+
61+
proguard/
62+
63+
64+
65+
# Log Files
66+
67+
*.log
68+
version.gradle
69+
.project
70+
app/.classpath
71+
app/.project
72+
app/.settings/

.gitlab-ci.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
stages:
2+
- push
3+
- build
4+
- deploy
5+
6+
cache:
7+
key: ${CI_PROJECT_ID}
8+
paths:
9+
- .gradle/
10+
11+
push_github:
12+
stage: push
13+
only:
14+
- develop
15+
script:
16+
- git push -f --set-upstream https://${github_key}@github.com/qwe7002/telegram-sms.git HEAD:refs/heads/$CI_COMMIT_REF_NAME
17+
18+
release_github:
19+
dependencies:
20+
- build
21+
only:
22+
- master
23+
stage: deploy
24+
script:
25+
- git push --set-upstream https://${github_key}@github.com/qwe7002/telegram-sms.git HEAD:refs/heads/$CI_COMMIT_REF_NAME
26+
- git clone https://git.reallserver.cn/qwe7002/telegram-sms.wiki.git wiki
27+
- cd wiki
28+
- git push -f --set-upstream https://${github_key}@github.com/qwe7002/telegram-sms.wiki.git HEAD:refs/heads/$CI_COMMIT_REF_NAME
29+
- /opt/github-release-upload.sh github_api_token=${github_key} owner=qwe7002 repo=telegram-sms tag=$(date "+%Y%m%d%H%M%S") filename="./app/build/outputs/apk/release/app-release.apk"
30+
31+
32+
build:
33+
image: preventis/docker-android-alpine:latest
34+
stage: build
35+
script:
36+
- echo -e "ext {\n appVersionCode = ${CI_PIPELINE_ID}\n appVersionName = \"${CI_COMMIT_REF_NAME}\"}" > ./app/version.gradle
37+
- echo -e "systemProp.http.nonProxyHosts=dl.google.com\n systemProp.http.proxyHost=192.168.3.8\n systemProp.http.proxyPort=1080\n systemProp.https.proxyHost=192.168.3.8\n systemProp.https.proxyPort=1080\n org.gradle.jvmargs=-Xmx1536m\n org.gradle.parallel=true" >> gradle.properties
38+
- export GRADLE_USER_HOME=$(pwd)/.gradle
39+
- chmod +x ./gradlew
40+
- ./gradlew assembleRelease
41+
artifacts:
42+
paths:
43+
- app/build/outputs/apk/release/app-release.apk
44+
expire_in: 1 week

LICENSE

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2018, qwe7002
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
* Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
11+
12+
* Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
* Neither the name of the copyright holder nor the names of its
17+
contributors may be used to endorse or promote products derived from
18+
this software without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

+108
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
# Telegram SMS
2+
3+
![pipeline status](https://badges.git.reallct.com/qwe7002/telegram-sms/badges/master/pipeline.svg)
4+
![Min Android Version](https://img.shields.io/badge/android-22+-orange.svg)
5+
[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://github.com/qwe7002/telegram-sms/blob/master/LICENSE)
6+
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fqwe7002%2Ftelegram-sms.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fqwe7002%2Ftelegram-sms?ref=badge_shield)
7+
8+
A robot running on your Android device.
9+
10+
[Download](https://github.com/qwe7002/telegram-sms/releases)
11+
12+
**There may be unknown bugs in the pre-release version,Please use at your own risk.**
13+
14+
## Features
15+
16+
- Forward SMS to Telegram
17+
18+
- Monitor missed calls
19+
20+
- Monitor device battery power changes
21+
22+
- Remote control via chat command \ SMS.
23+
24+
## Permission
25+
26+
This app requires the following permissions:
27+
28+
- SMS : Read and send a text message.
29+
30+
- Phone : Get whether it is a dual card phone, card status and identifier ID.
31+
32+
- Call log : Get the incoming number.
33+
34+
- Contact : Get the contact information and automatically identify the incoming caller's number.
35+
36+
You can set this app as the default SMS app, which will block all SMS notifications and automatically set the SMS to read.
37+
38+
## User manual
39+
40+
- [English](https://github.com/qwe7002/telegram-sms/wiki/User_manual)
41+
- [简体中文](https://github.com/qwe7002/telegram-sms/wiki/用户手册)
42+
- [繁體中文](https://github.com/qwe7002/telegram-sms/wiki/用戶手冊)
43+
- 日本語(WIP)
44+
45+
## License
46+
47+
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fqwe7002%2Ftelegram-sms.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fqwe7002%2Ftelegram-sms?ref=badge_large)
48+
49+
BSD 3-Clause License
50+
51+
Copyright (c) 2018, qwe7002
52+
All rights reserved.
53+
54+
Redistribution and use in source and binary forms, with or without
55+
modification, are permitted provided that the following conditions are met:
56+
57+
* Redistributions of source code must retain the above copyright notice, this
58+
list of conditions and the following disclaimer.
59+
60+
* Redistributions in binary form must reproduce the above copyright notice,
61+
this list of conditions and the following disclaimer in the documentation
62+
and/or other materials provided with the distribution.
63+
64+
* Neither the name of the copyright holder nor the names of its
65+
contributors may be used to endorse or promote products derived from
66+
this software without specific prior written permission.
67+
68+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
69+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
70+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
71+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
72+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
73+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
74+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
75+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
76+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
77+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
78+
79+
80+
## Acknowledgements
81+
82+
This software uses these open source libraries:
83+
84+
- [okhttp](https://github.com/square/okhttp)
85+
86+
- [Gson](https://github.com/google/gson)
87+
88+
The birth of this software is inseparable from their help:
89+
90+
- [@SumiMakito](https://github.com/SumiMakito)
91+
92+
- [@zsxsoft](https://github.com/zsxsoft)
93+
94+
The following organizations for providing image storage for this page:
95+
96+
- [sm.ms](https://sm.ms)
97+
98+
## Give a cup of coffee and let me better maintain this project?
99+
100+
- [Support me in Paypal](https://paypal.me/qwe7002)
101+
102+
- Support me in Payoneer ([email protected])
103+
104+
- Support me in Bitcoin (**17wmCCzy7hSSENnRBfUBMUSi7kdHYePrae**)
105+
106+
- [Support me in Cloud QuickPass](https://static.reallct.com/2019/02/21/5c6d812840bac.png)
107+
108+
Your donation will make me work better for this project.

app/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

app/build.gradle

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
apply plugin: 'com.android.application'
2+
apply from: 'version.gradle'
3+
4+
android {
5+
compileSdkVersion 28
6+
7+
defaultConfig {
8+
applicationId "com.qwe7002.telegram_sms"
9+
minSdkVersion 22
10+
targetSdkVersion 28
11+
versionCode appVersionCode
12+
versionName appVersionName
13+
}
14+
15+
compileOptions {
16+
sourceCompatibility JavaVersion.VERSION_1_8
17+
targetCompatibility JavaVersion.VERSION_1_8
18+
}
19+
20+
signingConfigs {
21+
releaseConfig {
22+
storeFile file("keys.jks")
23+
storePassword project.hasProperty("KEYSTORE_PASS") ? KEYSTORE_PASS : System.getenv("KEYSTORE_PASS")
24+
keyAlias project.hasProperty("ALIAS_NAME") ? ALIAS_NAME : System.getenv("ALIAS_NAME")
25+
keyPassword project.hasProperty("ALIAS_PASS") ? ALIAS_PASS : System.getenv("ALIAS_PASS")
26+
v1SigningEnabled true
27+
v2SigningEnabled true
28+
}
29+
}
30+
31+
buildTypes {
32+
release {
33+
minifyEnabled false
34+
signingConfig signingConfigs.releaseConfig
35+
}
36+
}
37+
}
38+
39+
dependencies {
40+
//noinspection GradleDynamicVersion
41+
implementation 'com.android.support:appcompat-v7:28+'
42+
//noinspection GradleDynamicVersion
43+
implementation 'com.android.support.constraint:constraint-layout:1+'
44+
//noinspection GradleDynamicVersion
45+
implementation 'com.android.support:design:28+'
46+
//noinspection GradleDynamicVersion
47+
implementation 'com.squareup.okhttp3:okhttp:+'
48+
//noinspection GradleDynamicVersion
49+
implementation 'com.google.code.gson:gson:+'
50+
}

0 commit comments

Comments
 (0)