This repository has been archived by the owner on Nov 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
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 c85410a
Showing
205 changed files
with
3,601 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,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.geekofia.whatsappstickers" | ||
minSdkVersion 15 | ||
targetSdkVersion 28 | ||
versionCode 1 | ||
versionName "1.2" | ||
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 in line 16"); | ||
} | ||
} 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.geekofia.whatsappstickers"> | ||
|
||
<application | ||
android:allowBackup="false" | ||
android:fullBackupContent="false" | ||
android:icon="@mipmap/ic_launcher_round" | ||
android:label="@string/app_name" | ||
android:roundIcon="@mipmap/ic_launcher_round" | ||
android:supportsRtl="true" | ||
android:theme="@style/AppTheme" | ||
tools:ignore="GoogleAppIndexingWarning"> | ||
<activity android:name="com.geekofia.whatsappstickers.EntryActivity"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
<activity | ||
android:name="com.geekofia.whatsappstickers.StickerPackListActivity" | ||
android:label="@string/title_activity_sticker_packs_list" /> | ||
<activity | ||
android:name="com.geekofia.whatsappstickers.StickerPackDetailsActivity" | ||
android:parentActivityName="com.geekofia.whatsappstickers.StickerPackListActivity" | ||
tools:ignore="UnusedAttribute"> | ||
<meta-data | ||
android:name="android.support.PARENT_ACTIVITY" | ||
android:value="com.geekofia.whatsappstickers.StickerPackListActivity" /> | ||
</activity> | ||
<activity | ||
android:name="com.geekofia.whatsappstickers.StickerPackInfoActivity" | ||
android:label="@string/title_activity_sticker_pack_info" | ||
android:parentActivityName="com.geekofia.whatsappstickers.StickerPackDetailsActivity" | ||
tools:ignore="UnusedAttribute"> | ||
<meta-data | ||
android:name="android.support.PARENT_ACTIVITY" | ||
android:value="com.geekofia.whatsappstickers.StickerPackDetailsActivity" /> | ||
</activity> | ||
|
||
<provider | ||
android:name="com.geekofia.whatsappstickers.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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.