-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ad00171
Showing
225 changed files
with
14,128 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Code of Conduct | ||
|
||
Facebook has adopted a Code of Conduct that we expect project participants to adhere to. | ||
Please read the [full text](https://code.fb.com/codeofconduct/) | ||
so that you can understand what actions will and will not be tolerated. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Contributing to WhatsApp Stickers | ||
We want to make contributing to this project as easy and transparent as | ||
possible. | ||
|
||
## Pull Requests | ||
We actively welcome your pull requests. | ||
|
||
1. Fork the repo and create your branch from `master`. | ||
2. If you've added code that should be tested, add tests. | ||
3. If you've changed APIs, update the documentation. | ||
4. Ensure the test suite passes. | ||
5. Make sure your code lints. | ||
6. If you haven't already, complete the Contributor License Agreement ("CLA"). | ||
|
||
## Contributor License Agreement ("CLA") | ||
In order to accept your pull request, we need you to submit a CLA. You only need | ||
to do this once to work on any of Facebook's open source projects. | ||
|
||
Complete your CLA here: <https://code.facebook.com/cla> | ||
|
||
## Issues | ||
We use GitHub issues to track public bugs. Please ensure your description is | ||
clear and has sufficient instructions to be able to reproduce the issue. | ||
|
||
Facebook has a [bounty program](https://www.facebook.com/whitehat/) for the safe | ||
disclosure of security bugs. In those cases, please go through the process | ||
outlined on that page and do not file a public issue. | ||
|
||
## Coding Style | ||
For Android, we follow Google Java Style Guide as the coding style: <https://google.github.io/styleguide/javaguide.html>. | ||
For iOS, we follow the Swift API Design Guidelines: <https://swift.org/documentation/api-design-guidelines/>. | ||
|
||
## License | ||
By contributing to WhatsApp Stickers, you agree that your contributions will be licensed | ||
under the LICENSE file in the root directory of this source tree. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
BSD License | ||
|
||
For WhatsApp Stickers software | ||
|
||
Copyright (c) WhatsApp Inc. and its affiliates. All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without modification, | ||
are permitted provided that the following conditions are met: | ||
|
||
* Redistributions of source code must retain the above copyright notice, this | ||
list of conditions and the following disclaimer. | ||
|
||
* Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
|
||
* Neither the name WhatsApp nor the names of its contributors may be used to | ||
endorse or promote products derived from this software without specific | ||
prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR | ||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# WhatsApp Stickers | ||
|
||
If you'd like to create your own stickers for WhatsApp, you can package them in an Android or iOS app. You can publish your sticker app like any other app to the Google Play Store or Apple App Store, and users who download and install your app will be able to start sending those stickers right away from within WhatsApp. Stickers on WhatsApp must be legal, authorized and acceptable. Learn more about acceptable uses of our services from our [Terms of Service](https://www.whatsapp.com/legal/#terms-of-service). | ||
|
||
To get started, review the README files in the [android](https://github.com/WhatsApp/stickers/tree/master/android) or [iOS](https://github.com/WhatsApp/stickers/tree/master/iOS) folders, and refer to the FAQ at https://faq.whatsapp.com/general/26000226. | ||
|
||
## License | ||
WhatsApp Stickers is BSD licensed, as found in the LICENSE file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.gradle | ||
.DS_Store | ||
.idea | ||
build/ | ||
local.properties | ||
localhost/ | ||
obj/ | ||
*.iml | ||
Gemfile.lock | ||
_site/ |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
apply plugin: 'com.android.application' | ||
|
||
android { | ||
//the compression of webp file during build causes problem with FileDescriptor in ContentProvider. | ||
aaptOptions { | ||
noCompress "webp" | ||
} | ||
signingConfigs { | ||
signing_config { | ||
keyAlias 'abc' | ||
keyPassword '123' | ||
} | ||
} | ||
compileSdkVersion 28 | ||
defaultConfig { | ||
applicationId "com.example.samplestickerapp" | ||
minSdkVersion 15 | ||
targetSdkVersion 28 | ||
versionCode 1 | ||
versionName "1.0" | ||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
def contentProviderAuthority = applicationId + ".stickercontentprovider" | ||
// Creates a placeholder property to use in the manifest. | ||
manifestPlaceholders = | ||
[contentProviderAuthority: contentProviderAuthority] | ||
// Adds a new field for the authority to the BuildConfig class. | ||
buildConfigField("String", | ||
"CONTENT_PROVIDER_AUTHORITY", | ||
"\"${contentProviderAuthority}\"") | ||
} | ||
buildTypes { | ||
debug { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
release { | ||
minifyEnabled true | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
compileOptions { | ||
sourceCompatibility JavaVersion.VERSION_1_8 | ||
targetCompatibility JavaVersion.VERSION_1_8 | ||
} | ||
} | ||
|
||
task checkDebug { | ||
doLast { | ||
println("checkDebug") | ||
if (android.defaultConfig.applicationId.startsWith("com.whatsapp")) { | ||
throw new GradleException("applicationId in defaultConfig cannot start with com.whatsapp, please change your applicationId in app/build.gradle"); | ||
} | ||
checkApplicationIdInDebug() | ||
} | ||
} | ||
|
||
private void checkApplicationIdInDebug() { | ||
Properties properties = new Properties() | ||
properties.load(project.rootProject.file('local.properties').newDataInputStream()) | ||
def ignoreApplicationIdCheck = properties.getProperty('ignoreApplicationIdCheck') | ||
if (ignoreApplicationIdCheck == null) { | ||
if (android.defaultConfig.applicationId.equals("com.example.samplestickerapp")) { | ||
throw new GradleException("Your applicationId is currently com.example.samplestickerapp, please change your applicationId to a different string in app/build.gradle"); | ||
} | ||
} else { | ||
println("application id check ignored") | ||
} | ||
} | ||
|
||
|
||
task checkRelease { | ||
doLast { | ||
println("checkRelease") | ||
if (android.defaultConfig.applicationId.startsWith("com.example")) { | ||
throw new GradleException("applicationId in defaultConfig cannot start with com.example, please change your applicationId in app/build.gradle"); | ||
} | ||
} | ||
} | ||
|
||
tasks.whenTaskAdded { task -> | ||
println(task.name) | ||
if (task.name.contains("assembleDebug")) { | ||
task.dependsOn checkDebug | ||
} | ||
if (task.name.contains("assembleRelease")) { | ||
task.dependsOn checkRelease | ||
} | ||
} | ||
|
||
|
||
dependencies { | ||
implementation fileTree(include: ['*.jar'], dir: 'libs') | ||
implementation 'com.android.support:appcompat-v7:28.0.0' | ||
implementation 'com.android.support:design:28.0.0' | ||
testImplementation 'junit:junit:4.12' | ||
androidTestImplementation 'com.android.support.test:runner:1.0.2' | ||
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' | ||
implementation 'com.android.support:recyclerview-v7:28.0.0' | ||
implementation 'com.android.support.constraint:constraint-layout:1.1.3' | ||
implementation 'com.facebook.fresco:fresco:1.10.0' | ||
implementation 'com.facebook.fresco:webpsupport:1.10.0' | ||
implementation 'com.facebook.fresco:animated-webp:1.10.0' | ||
implementation 'com.facebook.fresco:webpsupport:1.10.0' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Add project specific ProGuard rules here. | ||
# You can control the set of applied configuration files using the | ||
# proguardFiles setting in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} | ||
|
||
# Uncomment this to preserve the line number information for | ||
# debugging stack traces. | ||
#-keepattributes SourceFile,LineNumberTable | ||
|
||
# If you keep the line number information, uncomment this to | ||
# hide the original source file name. | ||
#-renamesourcefileattribute SourceFile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
package="com.example.samplestickerapp"> | ||
|
||
<application | ||
android:allowBackup="false" | ||
android:fullBackupContent="false" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:roundIcon="@mipmap/ic_launcher_round" | ||
android:supportsRtl="true" | ||
android:theme="@style/AppTheme" | ||
tools:ignore="GoogleAppIndexingWarning"> | ||
<activity android:name=".EntryActivity"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
<activity | ||
android:name=".StickerPackListActivity" | ||
android:label="@string/title_activity_sticker_packs_list" /> | ||
<activity | ||
android:name=".StickerPackDetailsActivity" | ||
android:parentActivityName=".StickerPackListActivity" | ||
tools:ignore="UnusedAttribute"> | ||
<meta-data | ||
android:name="android.support.PARENT_ACTIVITY" | ||
android:value="com.example.samplestickerapp.StickerPackListActivity" /> | ||
</activity> | ||
<activity | ||
android:name=".StickerPackInfoActivity" | ||
android:label="@string/title_activity_sticker_pack_info" | ||
android:parentActivityName=".StickerPackDetailsActivity" | ||
tools:ignore="UnusedAttribute"> | ||
<meta-data | ||
android:name="android.support.PARENT_ACTIVITY" | ||
android:value="com.example.samplestickerapp.StickerPackDetailsActivity" /> | ||
</activity> | ||
|
||
<provider | ||
android:name=".StickerContentProvider" | ||
android:authorities="${contentProviderAuthority}" | ||
android:enabled="true" | ||
android:exported="true" | ||
android:readPermission="com.whatsapp.sticker.READ" /> | ||
</application> | ||
</manifest> |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
{ | ||
"android_play_store_link": "", | ||
"ios_app_store_link": "", | ||
"sticker_packs": [ | ||
{ | ||
"identifier": "1", | ||
"name": "Cuppy", | ||
"publisher": "Jane Doe", | ||
"tray_image_file": "tray_Cuppy.png", | ||
"publisher_email":"", | ||
"publisher_website": "", | ||
"privacy_policy_website": "", | ||
"license_agreement_website": "", | ||
"stickers": [ | ||
{ | ||
"image_file": "01_Cuppy_smile.webp", | ||
"emojis": ["☕","🙂"] | ||
}, | ||
{ | ||
"image_file": "02_Cuppy_lol.webp", | ||
"emojis": ["😄","😀"] | ||
}, | ||
{ | ||
"image_file": "03_Cuppy_rofl.webp", | ||
"emojis": ["😆","😂"] | ||
}, | ||
{ | ||
"image_file": "04_Cuppy_sad.webp", | ||
"emojis": ["😩","😰"] | ||
}, | ||
{ | ||
"image_file": "05_Cuppy_cry.webp", | ||
"emojis": ["😭","💧"] | ||
}, | ||
{ | ||
"image_file": "06_Cuppy_love.webp", | ||
"emojis": ["😍","♥"] | ||
}, | ||
{ | ||
"image_file": "07_Cuppy_hate.webp", | ||
"emojis": ["💔","👎"] | ||
}, | ||
{ | ||
"image_file": "08_Cuppy_lovewithmug.webp", | ||
"emojis": ["😍","💑"] | ||
}, | ||
{ | ||
"image_file": "09_Cuppy_lovewithcookie.webp", | ||
"emojis": ["😘","🍪"] | ||
}, | ||
{ | ||
"image_file": "10_Cuppy_hmm.webp", | ||
"emojis": ["🤔","😐"] | ||
}, | ||
{ | ||
"image_file": "11_Cuppy_upset.webp", | ||
"emojis": ["😱","😵"] | ||
}, | ||
{ | ||
"image_file": "12_Cuppy_angry.webp", | ||
"emojis": ["😡","😠"] | ||
}, | ||
{ | ||
"image_file": "13_Cuppy_curious.webp", | ||
"emojis": ["❓","🤔"] | ||
}, | ||
{ | ||
"image_file": "14_Cuppy_weird.webp", | ||
"emojis": ["🌈","😜"] | ||
}, | ||
{ | ||
"image_file": "15_Cuppy_bluescreen.webp", | ||
"emojis": ["💻","😩"] | ||
}, | ||
{ | ||
"image_file": "16_Cuppy_angry.webp", | ||
"emojis": ["😡","😤"] | ||
}, | ||
{ | ||
"image_file": "17_Cuppy_tired.webp", | ||
"emojis": ["😩","😨"] | ||
}, | ||
{ | ||
"image_file": "18_Cuppy_workhard.webp", | ||
"emojis": ["💻","🌃"] | ||
}, | ||
{ | ||
"image_file": "19_Cuppy_shine.webp", | ||
"emojis": ["🎉","✨"] | ||
}, | ||
{ | ||
"image_file": "20_Cuppy_disgusting.webp", | ||
"emojis": ["🤮","👎"] | ||
}, | ||
{ | ||
"image_file": "21_Cuppy_hi.webp", | ||
"emojis": ["🖐","🙋"] | ||
}, | ||
{ | ||
"image_file": "22_Cuppy_bye.webp", | ||
"emojis": ["🖐","👋"] | ||
}, | ||
{ | ||
"image_file": "23_Cuppy_greentea.webp", | ||
"emojis": ["🍵","😌"] | ||
}, | ||
{ | ||
"image_file": "24_Cuppy_phone.webp", | ||
"emojis": ["📱","😦"] | ||
}, | ||
{ | ||
"image_file": "25_Cuppy_battery.webp", | ||
"emojis": ["🔋","😵"] | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.