Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ dependencies {
include project(':events')
include project(':events-domain')
include project(':api')
include project(':http-domain')
include project(':http')
}

def javadocSourceProjects = providers.provider {
Expand Down
1 change: 1 addition & 0 deletions http-domain/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
5 changes: 5 additions & 0 deletions http-domain/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# HTTP Domain module

This module contains public HTTP configuration contracts exposed to consumers of the Split SDK.

Includes certificate pinning configuration, proxy settings, SSL configuration, and authenticator interfaces.
22 changes: 22 additions & 0 deletions http-domain/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
plugins {
id 'com.android.library'
}

apply from: "$rootDir/gradle/common-android-library.gradle"

android {
namespace 'io.split.android.client.network.domain'

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

dependencies {
implementation libs.annotation
implementation project(':logger')

testImplementation libs.junit4
testImplementation libs.mockitoCore
}
1 change: 1 addition & 0 deletions http-domain/consumer-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

21 changes: 21 additions & 0 deletions http-domain/proguard-rules.pro
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
4 changes: 4 additions & 0 deletions http-domain/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

</manifest>
1 change: 1 addition & 0 deletions http/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
5 changes: 5 additions & 0 deletions http/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# HTTP module

This module provides the HTTP client implementation used internally by the Split SDK.

Includes request/response lifecycle, certificate pinning runtime, proxy tunnelling, and TLS configuration. Hidden from SDK consumers.
26 changes: 26 additions & 0 deletions http/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
plugins {
id 'com.android.library'
}

apply from: "$rootDir/gradle/common-android-library.gradle"

android {
namespace 'io.split.android.client.network.http'

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

dependencies {
implementation libs.annotation
implementation project(':logger')
implementation project(':http-domain')

testImplementation libs.junit4
testImplementation libs.mockitoCore
testImplementation libs.mockitoInline
testImplementation libs.okhttpMockwebserver
testImplementation libs.okhttpTls
}
1 change: 1 addition & 0 deletions http/consumer-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

21 changes: 21 additions & 0 deletions http/proguard-rules.pro
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
4 changes: 4 additions & 0 deletions http/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

</manifest>
2 changes: 2 additions & 0 deletions main/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ dependencies {
// Public api modules
api project(':logger')
api project(':api')
api project(':http-domain')
// Internal module dependencies
implementation project(':http')
implementation project(':events-domain')

// External dependencies
Expand Down
2 changes: 2 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ rootProject.name = 'android-client'

include ':api'
include ':logger'
include ':http-domain'
include ':http'
include ':main'
include ':events'
include ':events-domain'
22 changes: 16 additions & 6 deletions sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@ sonar.projectKey=splitio_android-client
sonar.projectName=android-client

# Path to source directories (multi-module)
# Root project contains modules: main, events, logger
sonar.sources=main/src/main/java,events/src/main/java,logger/src/main/java
# Root project contains modules: main, events, logger, http-domain, http
sonar.sources=main/src/main/java,events/src/main/java,logger/src/main/java,http-domain/src/main/java,http/src/main/java

# Path to compiled classes (multi-module)
# Include binary paths for all modules: main, events, logger
# Include binary paths for all modules: main, events, logger, http-domain, http
sonar.java.binaries=\
main/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes,\
events/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes,\
logger/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes
logger/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes,\
http-domain/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes,\
http/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes

# Path to dependency/libraries jars (multi-module)
sonar.java.libraries=\
Expand All @@ -26,11 +28,19 @@ sonar.java.libraries=\
logger/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar,\
logger/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar,\
logger/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar,\
logger/build/intermediates/compile_and_runtime_r_class_jar/debugUnitTest/generateDebugUnitTestStubRFile/R.jar
logger/build/intermediates/compile_and_runtime_r_class_jar/debugUnitTest/generateDebugUnitTestStubRFile/R.jar,\
http-domain/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar,\
http-domain/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar,\
http-domain/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar,\
http-domain/build/intermediates/compile_and_runtime_r_class_jar/debugUnitTest/generateDebugUnitTestStubRFile/R.jar,\
http/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar,\
http/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar,\
http/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar,\
http/build/intermediates/compile_and_runtime_r_class_jar/debugUnitTest/generateDebugUnitTestStubRFile/R.jar

# Path to test directories (multi-module)
# Only include test source folders that are guaranteed to exist in all environments
sonar.tests=main/src/test/java,main/src/androidTest/java,main/src/sharedTest/java,events/src/test/java,logger/src/test/java
sonar.tests=main/src/test/java,main/src/androidTest/java,main/src/sharedTest/java,events/src/test/java,logger/src/test/java,http-domain/src/test/java,http/src/test/java

# Encoding of the source code
sonar.sourceEncoding=UTF-8
Expand Down
Loading