Skip to content

Commit

Permalink
add necessary configs for whatsapp_stickers package
Browse files Browse the repository at this point in the history
  • Loading branch information
AkashSDas committed Dec 6, 2020
1 parent 2cc60bd commit 3ac573e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
10 changes: 5 additions & 5 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
compileSdkVersion 29

// For whatsapp_stickers package
aaptOptions {
noCompress "webp"
}

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
Expand All @@ -54,11 +59,6 @@ android {
signingConfig signingConfigs.debug
}
}

// For flutter_whatsapp_stickers package
aaptOptions {
noCompress "webp"
}
}

flutter {
Expand Down
4 changes: 1 addition & 3 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
In most cases you can leave this as-is, but you if you want to provide
additional functionality it is fine to subclass or reimplement
FlutterApplication and put your custom class here. -->
<uses-permission android:name="android.permission.INTERNET"/>
<application
android:name="io.flutter.app.FlutterApplication"
android:label="steker"
Expand Down Expand Up @@ -43,8 +44,5 @@
<meta-data
android:name="flutterEmbedding"
android:value="2" />

<!-- For flutter_whatsapp_stickers package -->
<meta-data android:name="NonAssetContentProvider" android:value="true" />
</application>
</manifest>

0 comments on commit 3ac573e

Please sign in to comment.