Skip to content

Commit 9fc9ab4

Browse files
committed
release: SDK 1.17.0
1 parent d282512 commit 9fc9ab4

File tree

630 files changed

+133484
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

630 files changed

+133484
-0
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
name: Bug report
3+
about: Report an issue with the SDK
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
<!-- Thank you for using Batch and taking the time to file an issue!
11+
12+
Please only file issues here that you believe represent actual bugs for the Batch iOS SDK.
13+
14+
If you're having general trouble with your Batch integration, reach out to our support team at support@batch.com or via the Live-Chat, available on every page of the Batch dashboard. It’s the best way to make sure your question is handled by the right person in our team and in timely manners.
15+
16+
Otherwise, to make it easier to diagnose your issue, please fill out the following template.
17+
18+
Depending on your plan, you way benefit from a specific support level. In that case (e.g. you're an Enterprise or Business customer) and to make sure your support level is respected, send an email that links your issue to the support@batch.com address.
19+
-->
20+
21+
## Summary
22+
<!-- A summary of the problems you're having. Please state clearly expected and actual behavior. -->
23+
24+
## Reproduction steps
25+
<!-- Provide detailed reproduction steps. For example :
26+
1. Install Batch SDK with Swift Package Manager
27+
2. Start the SDK in didFinishLaunchingWithOptions:
28+
3. Send a test notification
29+
4. Open the test notification
30+
A minimal reproduction project isn’t compulsory but will reduce greatly the resolution time, and we may ask you to provide one depending on the issue.
31+
-->
32+
33+
## Logs
34+
<!-- Please don’t try filter the logs here, it’s best to provide here the rawest logs as possible. If your issue involves a crash, a stack trace is absolutely compulsory, and should be as raw as possible. If you would rather not share the logs publicly, forward them to the support@batch.com address and reference the URL of your issue. -->
35+
36+
## Specifications
37+
### SDK Version
38+
<!-- e.g. v1.17 -->
39+
### Installation method
40+
<!-- e.g. Swift Package Manager -->
41+
### Relevant development tools versions
42+
<!-- e.g. Xcode version -->
43+
44+
## Additional information
45+
<!-- Anything else you can include that'll make it easier for us to help you! -->

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Batch Support
4+
url: https://batch.com/en/support/
5+
about: Reach our support team via email or Live-Chat.

.github/pull_request_template.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!-- We don’t accept pull requests at the moment. Please reach out to our support team at support@batch.com or via the Live-Chat, or open an issue. -->

.gitignore

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,34 @@
1+
# Never uncomment this
2+
batch-maven-*gpg*
3+
maven.properties
4+
5+
# Standard ignores
6+
17
.DS_Store
8+
local.properties
9+
build
10+
.gradle
11+
javadoc
12+
public-sdk/Batch.aar
13+
public-sdk/Batch.aar.asc
14+
public-sdk/Batch.mapping.txt
15+
16+
# Recommended ignore from Gradle
17+
**/.idea/dataSources.*
18+
**/.idea/inspectionProfiles
19+
**/.idea/misc.xml
20+
**/.idea/gradle.xml
21+
**/.idea/modules.xml
22+
**/.idea/tasks.xml
23+
**/.idea/workspace.xml
24+
**/.idea/kotlinc.xml
25+
**/.idea/uiDesigner.xml
26+
27+
**/.idea/dictionaries
28+
**/.idea/libraries
29+
**/.idea/caches
30+
31+
**/*.iml
32+
**/.idea/saveactions_settings.xml
33+
**/.idea/assetWizardSettings.xml
34+
**/.idea/jarRepositories.xml

BUILDING.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Building Batch SDK
2+
3+
## Requirements
4+
5+
- Android Studio 4.x
6+
7+
8+
## Development
9+
10+
- Open `Sources` in Android Studio. Everything should work as is.
11+
12+
## Building
13+
14+
- To build the `.aar`, open a shell in the repository and run `make aar`. The SDK and the proguard mapping will be in `public-sdk`.

CONTRIBUTING.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
Batch is a project administrated by the Batch.com team. Thank you for your interest to contribute! 🙏
2+
3+
# Closed development & public releases
4+
While the Batch SDK' sources are publicly available on this repo, we develop the SDK privately, and only push releases on here. All commits from our team won’t be visible publicly for now.
5+
# Integration questions
6+
If you encounter any issue during your integrations, you are most likely to find an answer in:
7+
- Our [public documentation](https://doc.batch.com/)
8+
- Our [help center](https://help.batch.com/en/)
9+
10+
Both of these ressources are updated regularly and cover many troubleshooting options.
11+
12+
If you’re still blocked, please reach out to our support team at support@batch.com or via the Live-Chat, available on every page of the Batch dashboard. It’s the best way to make sure your question is handled by the right person in our team and in timely manners. It will also allow you to share more context you would rather not share publicly. For example, information about your account and plan, and most importantly debug information (as identifiers).
13+
14+
If you submit an issue to discuss an integration question, we will ask you to use these communication channels for these reasons.
15+
16+
# Feature & improvement requests
17+
We look at all feature requests with great interest, and they will be be balanced with our own internal roadmap.
18+
19+
More often than not, feature requests regarding Batch SDK will actually concern the Batch product as a whole (if you’re already a client, you may know our dashboard or APIs for example). We also have internal processes to qualify and process your feedbacks that can include user interview, or need broader context on your needs.
20+
21+
Even if you’re confident that your feature requests relies only in the scope of the SDK we still ask you to submit your request at the support@batch.com address for tracking purposes.
22+
23+
# Bug fixes
24+
If you think you've discovered a bug in our SDK, our support team is available at support@batch.com to make sure the issue is taken care of as quickly as possible. There is nothing like too much information in these cases so make sure you:
25+
- Describe your environment
26+
- Provide detailed reproduction steps
27+
- Provide a minimal reproduction project: this isn’t compulsory but will reduce greatly the resolution time
28+
- Include detailed logs: Please don’t try filter the logs here, it’s best to provide here the rawest logs as possible
29+
- Includes a Stack Trace: If your issue involves a crash, this is absolutely compulsory, and should be as raw as possible
30+
31+
You can also open an issue for it, using the appropriate template and respecting the same rules. However, we do have a longer response time here than by email or the Live Chat.
32+
33+
# Pull requests
34+
We don’t accept pull requests at the moment.

LICENSE

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Batch SDK use in source and binary forms, with or without modification, is permitted only to allow use of the Batch platform by Batch customers.
2+
3+
Batch SDK can be embedded in Batch customers mobile apps, but redistribution of Batch SDK in source and binary forms, with or without modification is prohibited without the prior written permission of Batch.
4+
5+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

LICENSE.thirdparty

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
-------------
2+
3+
FlexboxLayout license:
4+
5+
Copyright (C) 2015 The Android Open Source Project
6+
7+
Licensed under the Apache License, Version 2.0 (the "License");
8+
you may not use this file except in compliance with the License.
9+
You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing, software
14+
distributed under the License is distributed on an "AS IS" BASIS,
15+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
See the License for the specific language governing permissions and
17+
limitations under the License.
18+
19+
--------------------
20+
21+
PercentRelativeLayout license:
22+
23+
Copyright (C) 2015 The Android Open Source Project
24+
25+
Licensed under the Apache License, Version 2.0 (the "License");
26+
you may not use this file except in compliance with the License.
27+
You may obtain a copy of the License at
28+
29+
http://www.apache.org/licenses/LICENSE-2.0
30+
31+
Unless required by applicable law or agreed to in writing, software
32+
distributed under the License is distributed on an "AS IS" BASIS,
33+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
34+
See the License for the specific language governing permissions and
35+
limitations under the License.
36+
37+
--------------------
38+
39+
Gif support comes from bumptech/glide in third_party/gif_decoder
40+
41+
glide license:
42+
43+
Copyright 2014 Google, Inc. All rights reserved.
44+
45+
Redistribution and use in source and binary forms, with or without modification, are
46+
permitted provided that the following conditions are met:
47+
48+
1. Redistributions of source code must retain the above copyright notice, this list of
49+
conditions and the following disclaimer.
50+
51+
2. Redistributions in binary form must reproduce the above copyright notice, this list
52+
of conditions and the following disclaimer in the documentation and/or other materials
53+
provided with the distribution.
54+
55+
THIS SOFTWARE IS PROVIDED BY GOOGLE, INC. ``AS IS'' AND ANY EXPRESS OR IMPLIED
56+
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
57+
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GOOGLE, INC. OR
58+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
59+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
60+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
61+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
62+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
63+
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
64+
65+
The views and conclusions contained in the software and documentation are those of the
66+
authors and should not be interpreted as representing official policies, either expressed
67+
or implied, of Google, Inc.
68+
69+
--------------------
70+
71+
gif_decoder license:
72+
73+
Copyright (c) 2013 Xcellent Creations, Inc.
74+
75+
Permission is hereby granted, free of charge, to any person obtaining
76+
a copy of this software and associated documentation files (the
77+
"Software"), to deal in the Software without restriction, including
78+
without limitation the rights to use, copy, modify, merge, publish,
79+
distribute, sublicense, and/or sell copies of the Software, and to
80+
permit persons to whom the Software is furnished to do so, subject to
81+
the following conditions:
82+
83+
The above copyright notice and this permission notice shall be
84+
included in all copies or substantial portions of the Software.
85+
86+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
87+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
88+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
89+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
90+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
91+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
92+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
93+
94+
--------------------
95+
96+
Rounded image drawable:
97+
98+
Copyright (C) 2015 Vincent Mi
99+
100+
Licensed under the Apache License, Version 2.0 (the "License");
101+
you may not use this file except in compliance with the License.
102+
You may obtain a copy of the License at
103+
104+
http://www.apache.org/licenses/LICENSE-2.0
105+
106+
Unless required by applicable law or agreed to in writing, software
107+
distributed under the License is distributed on an "AS IS" BASIS,
108+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
109+
See the License for the specific language governing permissions and
110+
limitations under the License.
111+
112+
--------------------
113+
114+
Core library of the MessagePack for Java:
115+
116+
Copyright (C) 2008-2020 Sadayuki Furuhashi
117+
118+
Licensed under the Apache License, Version 2.0 (the "License");
119+
you may not use this file except in compliance with the License.
120+
You may obtain a copy of the License at
121+
122+
http://www.apache.org/licenses/LICENSE-2.0
123+
124+
Unless required by applicable law or agreed to in writing, software
125+
distributed under the License is distributed on an "AS IS" BASIS,
126+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
127+
See the License for the specific language governing permissions and
128+
limitations under the License.
129+
130+
--------------------
131+
132+
Guava: Google Core Libraries for Java:
133+
134+
Copyright (C) 2020 Guava
135+
136+
Licensed under the Apache License, Version 2.0 (the "License");
137+
you may not use this file except in compliance with the License.
138+
You may obtain a copy of the License at
139+
140+
http://www.apache.org/licenses/LICENSE-2.0
141+
142+
Unless required by applicable law or agreed to in writing, software
143+
distributed under the License is distributed on an "AS IS" BASIS,
144+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
145+
See the License for the specific language governing permissions and
146+
limitations under the License.

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.PHONY: clean aar
2+
3+
aar:
4+
cd Sources/ && ./gradlew clean
5+
cd Sources/ && ./gradlew :sdk:assembleRelease --no-build-cache
6+
cp Sources/sdk/build/outputs/aar/Batch-release.aar public-sdk/Batch.aar
7+
cp Sources/sdk/build/outputs/mapping/release/mapping.txt public-sdk/Batch.mapping.txt
8+
sh ./copy_release_mapping.sh
9+
10+
clean:
11+
rm -f public-sdk/Batch.aar
12+
cd Sources && ./gradlew clean

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<img src="https://static.batch.com/documentation/Readmes/logo_batch_full_178@2x.png" srcset="https://static.batch.com/documentation/Readmes/logo_batch_full_178.png 1x" width="178" height="68" alt="Batch Logo" />
2+
3+
# Batch Android SDK
4+
5+
The Batch Android SDK allows you to build meaningful communication experience in your Android app through highly personalized push notifications & In-App messages.
6+
7+
Our [📕 setup documentation](https://doc.batch.com/ios/prerequisites) details the steps to take for an easy and successful integration.
8+
9+
# Prerequisites
10+
The Batch iOS SDK requires Android Studio 4 and Android API 14.
11+
12+
# Documentation
13+
- [Setup guide](https://doc.batch.com/android/prerequisites): start your implementation here!
14+
- [Help center](https://help.batch.com/en/): answers to most questions you may have during the integration
15+
- [API reference](https://doc.batch.com/android-api-reference/index.html): this documents each of the classes and methods in the Batch Android SDK
16+
17+
You may also find this guide useful to review after integration to make sure you're ready to go live: [How can I test the integration on Android?](https://help.batch.com/en/articles/2672749-how-can-i-test-the-integration-on-android)
18+
19+
# Releases
20+
Batch is available in Maven Central
21+
You can also integrate the Batch Android SDK manually by [downloading the `.aar`](https://doc.batch.com/download/android).
22+
23+
# Building
24+
25+
Build instructions are detailed in [BUILDING.md](BUILDING.md).
26+
27+
# Contributing
28+
Please refer to our [contributing guidelines](CONTRIBUTING.md).

Sources/.gitignore

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
.gradle
2+
/local.properties
3+
/maven.properties
4+
/.idea/workspace.xml
5+
/.idea/libraries
6+
.DS_Store
7+
/build
8+
/captures
9+
10+
# Recommended ignore from Gradle
11+
**/.idea/dataSources.*
12+
**/.idea/inspectionProfiles
13+
**/.idea/misc.xml
14+
**/.idea/gradle.xml
15+
**/.idea/modules.xml
16+
**/.idea/tasks.xml
17+
**/.idea/workspace.xml
18+
**/.idea/kotlinc.xml
19+
**/.idea/uiDesigner.xml
20+
21+
**/.idea/dictionaries
22+
**/.idea/libraries
23+
**/.idea/caches
24+
25+
**/*.iml
26+
**/.idea/saveactions_settings.xml
27+
**/.idea/assetWizardSettings.xml
28+
**/.idea/jarRepositories.xml

Sources/.idea/.name

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)