Class: FlutterRb::AndroidFolder

Inherits:
Object
  • Object
show all
Defined in:
lib/flutter_rb/project/specs/android/android_folder.rb

Overview

Represents an Android project folder.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ AndroidFolder

Initializes a new instance of AndroidFolder.

Parameters:

  • path (String)

    The path to the Android project folder.



11
12
13
14
15
# File 'lib/flutter_rb/project/specs/android/android_folder.rb', line 11

def initialize(path)
  @path = path
  # Parse the Gradle build file and store the parsed data.
  @gradle = GradleParser.new(@path).parse
end

Instance Attribute Details

#gradleGradleParser (readonly)

Returns the parsed Gradle build file data.

Returns:



25
26
27
# File 'lib/flutter_rb/project/specs/android/android_folder.rb', line 25

def gradle
  @gradle
end

#pathString (readonly)

Returns the path to the Android project folder.

Returns:

  • (String)

    The path to the Android project folder.



20
21
22
# File 'lib/flutter_rb/project/specs/android/android_folder.rb', line 20

def path
  @path
end