Skip to content

Commit 8cbf68d

Browse files
committed
First commit of play billing snippets 30111656
1 parent 95aeebd commit 8cbf68d

File tree

10 files changed

+731
-0
lines changed

10 files changed

+731
-0
lines changed
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
/* Copyright 2022 Google LLC
2+
*
3+
* Licensed under the Apache License, Version 2.0 (the "License");
4+
* you may not use this file except in compliance with the License.
5+
* You may obtain a copy of the License at
6+
*
7+
* https://www.apache.org/licenses/LICENSE-2.0
8+
*
9+
* Unless required by applicable law or agreed to in writing, software
10+
* distributed under the License is distributed on an "AS IS" BASIS,
11+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
* See the License for the specific language governing permissions and
13+
* limitations under the License.
14+
*/
15+
apply plugin: 'com.android.application'
16+
apply plugin: 'com.google.android.gms.strict-version-matcher-plugin'
17+
// OSS Plugin
18+
apply plugin: 'com.google.android.gms.oss-licenses-plugin'
19+
20+
21+
android {
22+
compileSdk 36
23+
namespace="com.google.play.billing.samples.managedcatalogue"
24+
25+
defaultConfig {
26+
applicationId "com.google.play.billing.samples.managedcatalogue"
27+
minSdk 23
28+
targetSdk 36
29+
versionCode 1
30+
versionName "1.0"
31+
32+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
33+
}
34+
35+
buildTypes {
36+
release {
37+
minifyEnabled false
38+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
39+
}
40+
all {
41+
proguardFiles 'proguard-rules.pro'
42+
}
43+
}
44+
compileOptions {
45+
sourceCompatibility JavaVersion.VERSION_17
46+
targetCompatibility JavaVersion.VERSION_17
47+
coreLibraryDesugaringEnabled true
48+
}
49+
50+
}
51+
52+
53+
54+
dependencies {
55+
56+
// OSS Plugin
57+
implementation 'com.google.android.gms:play-services-oss-licenses:17.1.0'
58+
59+
// Play Billing Library
60+
implementation "com.android.billingclient:billing:8.1.0"
61+
62+
implementation 'androidx.appcompat:appcompat:1.7.0'
63+
// Align kotlin versions
64+
implementation(platform("org.jetbrains.kotlin:kotlin-bom:2.1.10"))
65+
implementation 'com.google.android.material:material:1.13.0'
66+
implementation 'androidx.constraintlayout:constraintlayout:2.2.1'
67+
implementation 'com.google.guava:guava:31.1-android'
68+
69+
testImplementation 'junit:junit:4.13.2'
70+
testImplementation 'org.mockito:mockito-core:5.15.2'
71+
testImplementation 'org.mockito:mockito-android:5.15.2'
72+
androidTestImplementation 'androidx.test.ext:junit:1.3.0'
73+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
74+
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.5'
75+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Copyright 2022 Google LLC
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
https://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
-->
16+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
17+
xmlns:tools="http://schemas.android.com/tools"
18+
android:versionCode="6"
19+
android:versionName="5.0.0"
20+
package="com.google.play.billing.samples.managedcatalogue">
21+
22+
<uses-sdk android:minSdkVersion="23" android:targetSdkVersion="36"/>
23+
<uses-permission android:name="android.permission.INTERNET" />
24+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
25+
<uses-permission android:name="com.android.vending.BILLING" />
26+
27+
</manifest>
6.22 KB
Loading

0 commit comments

Comments
 (0)