Skip to content

Commit

Permalink
add graphql project
Browse files Browse the repository at this point in the history
  • Loading branch information
yyao0 committed Oct 26, 2023
1 parent e1998b1 commit 79225b2
Show file tree
Hide file tree
Showing 19 changed files with 441 additions and 1,133 deletions.
5 changes: 5 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.9.0'
implementation 'com.google.accompanist:accompanist-webview:0.31.3-beta'
implementation platform('androidx.compose:compose-bom:2023.03.00')
implementation 'androidx.compose.ui:ui-graphics'
implementation 'androidx.benchmark:benchmark-macro:1.2.0'
implementation 'com.google.android.ads:mediation-test-suite:3.0.0'


testImplementation 'junit:junit:4.13.2'
Expand All @@ -104,6 +108,7 @@ dependencies {
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
androidTestImplementation platform('androidx.compose:compose-bom:2023.03.00')
debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_version"

Expand Down
26 changes: 13 additions & 13 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.DOWNLOAD_WITHOUT_NOTIFICATION" />
<uses-permission
android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission
android:name="android.permission.READ_MEDIA_IMAGES"
android:minSdkVersion="33" />
Expand All @@ -21,7 +20,6 @@
<uses-permission android:name="android.permission.READ_CONTACTS" />

<application
android:usesCleartextTraffic="true"
android:name=".di.MainApp"
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
Expand All @@ -30,10 +28,16 @@
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/Theme.JetpackComposeAllInOne"
android:usesCleartextTraffic="true"
tools:targetApi="31">
<activity
android:name=".third_party_lib.graph_ql_country_list.view.MainActivity"
android:exported="false"
android:label="@string/title_activity_main"
android:theme="@style/Theme.JetpackComposeAllInOne" />
<activity
android:name=".lessons.lesson_11.ComposeWithOldWayActivityExample"
android:exported="false"/>
android:exported="false" />

<meta-data
android:name="com.google.android.geo.API_KEY"
Expand All @@ -49,7 +53,7 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".demos.instagram.InstagramActivity"/>
<activity android:name=".demos.instagram.InstagramActivity" />
<activity
android:name=".ui.views.quotes_ui.QuoteActivity"
android:exported="false"
Expand All @@ -67,23 +71,19 @@
android:exported="false" />

<receiver android:name=".features.alarm.AlarmBroadcastReceiver" />

<receiver
android:name=".application_components.broadcastreceiver.airplanemode.AirplaneModeReceiver"
android:enabled="true"
android:exported="true" />

<receiver android:name=".application_components.broadcastreceiver.bluetooth.BluetoothReceiver"
<receiver
android:name=".application_components.broadcastreceiver.bluetooth.BluetoothReceiver"
android:enabled="true"
android:exported="true" />

<receiver android:name=".application_components.broadcastreceiver.wifi.WifiReceiver"

<receiver
android:name=".application_components.broadcastreceiver.wifi.WifiReceiver"
android:enabled="true"
android:exported="true" />



<service
android:name=".utils.FcmRegisterService"
android:exported="false">
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
query GetContinents{
continents {
code
name
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
query FindCountriesOfAContinent($code:ID!){
continent(code: $code) {
countries {
name
native
phone
currency
emoji
}
}
}
Loading

0 comments on commit 79225b2

Please sign in to comment.